Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] dubbo项目不支持tag? #1124

Open
1 task
touxinzei opened this issue Apr 12, 2024 · 3 comments
Open
1 task

[Bug] dubbo项目不支持tag? #1124

touxinzei opened this issue Apr 12, 2024 · 3 comments
Labels
status: feedback required feedback required type: question&discussion Further information is requested

Comments

@touxinzei
Copy link

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Detailed Steps to reproduce the behavior:

  1. Open '...'
  2. Click on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Logs

  1. Add config:

    http.call.before=groovy:logger.info("call:"+request.url())
    http.call.after=groovy:logger.info("response:"+response.string())
    api.class.parse.before=groovy:logger.info("[api] before parse class:"+it)
    api.class.parse.after=groovy:logger.info("[api] after parse class:"+it)
    api.method.parse.before=groovy:logger.info("[api] before parse method:"+it)
    api.method.parse.after=groovy:logger.info("[api] after parse method:"+it)
    api.param.parse.before=groovy:logger.info("[api] before parse param:"+it)
    api.param.parse.after=groovy:logger.info("[api] after parse param:"+it)
    json.class.parse.before=groovy:logger.info("[json] before parse class:"+it)
    json.class.parse.after=groovy:logger.info("[json] after parse class:"+it)
    json.method.parse.before=groovy:logger.info("[json] before parse method:"+it)
    json.method.parse.after=groovy:logger.info("[json] after parse method:"+it)
    json.field.parse.before=groovy:logger.info("[json] before parse field:"+it)
    json.field.parse.after=groovy:logger.info("[json] after parse field:"+it)
  2. Console output easy_api

    • Please set Preferences(Settings) > Other Settings > EasyApi > Common > log to `LOW```
  3. Logs of IDEA:

    The easiest way to find the product log file is the Help menu, the item name would depend on the IDE version and OS:- Show Log in Explorer

    • Show Log in Finder
    • Show Log in Konqueror/Nautilus
    • Reveal Log in Explorer
    • Reveal Log in Finder/Finder/Nautilus

Environment (please complete the following information):

  • OS: [e.g. Windows]
  • IDEA version [e.g. 2021.2.3]
  • Plugin version [e.g. 2.2.9]
  • Yapi version [e.g. 1.9.1]

Demo Code

  1. Fork https://github.com/Earth-1610/spring-demo
  2. Write some code to reproduce this error
  3. Now paste the forked repository hear: https://github.com/xxxx/spring-demo

CheckList

  • Preferences(Settings) > Other Settings > EasyApi > Intelligent > enable infer

Additional context

Add any other context about the problem here.

@touxinzei touxinzei added the type: bug Something isn't working label Apr 12, 2024
@tangcent
Copy link
Owner

支持的,只要是导出到yapi就会尝试处理tag.

public interface UserClient {

    /**
     * 打个招呼
     *
     * @tag greeting
     * @deprecated
     */
    public String greeting();
}

我配置了dubbo.config, 还额外配了

api.tag=#tag
image

@tangcent tangcent added type: question&discussion Further information is requested status: feedback required feedback required and removed type: bug Something isn't working labels Apr 13, 2024
@touxinzei
Copy link
Author

支持的,只要是导出到yapi就会尝试处理tag.

public interface UserClient {

    /**
     * 打个招呼
     *
     * @tag greeting
     * @deprecated
     */
    public String greeting();
}

我配置了dubbo.config, 还额外配了

api.tag=#tag
image

我是通过改配置实现的,但是接口路径还是不是我想要的样子,不过这样也能用了
generic.class.has.api=groovy:it.name().startsWith("xxx.xxx.service")&&it.name().endsWith("Service")

generic.path=groovy:it.name().replace("xxx.xxx.service.","")
api.method.parse.before=groovy:```
logger.info("api:"+it.name()+"解析开始")

api.method.parse.after=groovy:```
    logger.info("api:"+it.name()+"解析完成")

folder.name=#folder

@tangcent
Copy link
Owner

tag加上了没?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback required feedback required type: question&discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants