jetplugins / apidocx

Generate API documents to any place: YApi, RAP2, Eolink, etc.
https://plugins.jetbrains.com/plugin/17425-apidocx/
Apache License 2.0
177 stars 39 forks source link

feat: 希望能支持组合注解的场景 #29

Closed xyohn closed 2 years ago

xyohn commented 2 years ago

作者好 目前业务上,可能会对@Controller(@RestController)在进一步包装 举个例子 定义一个@ValidController的注解 它是 @Valid 和 @Controller 的组合注解 例如

@Validated
@RestController
public @interface ValidController {

    @AliasFor(annotation = Controller.class) String value() default "";
}

这时候 对于加上了这个注解的Controller类 yapix会认为他不是合法的controller 因此不进行接口的上传 想问一下可否加入对这种场景的支持呢 谢谢

lkqm commented 2 years ago

这个倒好实现,只是感觉这样自己组合一个注解必要性不大

xyohn commented 2 years ago

这个倒好实现,只是感觉这样自己组合一个注解必要性不大

标志性的注解在做组合感觉还是挺常用的 😂 就像 @ResponseBody和@Controller做组合得到@RestController 一样 目前我们开发上会把一些基本每个类都会标识的注解做一些组合 一是简化开发 二也减少遗漏😂

lkqm commented 2 years ago

好的,最近会支持这个功能

xyohn commented 2 years ago

好的 感谢