easy-yapi icon indicating copy to clipboard operation
easy-yapi copied to clipboard

[Feature] 一个工程里面,有多个项目,如何配置idea ,可以使上传接口的时候,能够传到对应的项目去?

Open dongft opened this issue 3 years ago • 3 comments

[Feature] 一个工程里面,有多个项目,如何配置idea ,可以使上传接口的时候,能够传到对应的项目去?

dongft avatar Aug 15 '22 10:08 dongft

Other Settings - EasyYapi 的 Yapi 配置中的tokens配置多个项目对应的token即可:

{工程名}.{模块名}[.{子模块}...].main={token1}
{工程名}.{模块名2}[.{子模块}...].main={token2}

dongft avatar Aug 15 '22 10:08 dongft

插件解析时有个module的概念, 没有做额外配置时,默认直接使用maven/gradle的module。 所以对于使用maven/gradle的项目来说,默认会对每一个module弹窗输入对应的项目token。 如果此种module划分方式不满足需求,则可以通过module规则自定义。

tangcent avatar Aug 15 '22 15:08 tangcent

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 24 '22 14:09 stale[bot]