easy-yapi
easy-yapi copied to clipboard
子类如何重写父类的注释?
class A { /**
- 父类的注释 **/ private String name; }
class B extend A {
/**
- 重写的注释 */ public String getName(){
} }
我用这种方式上传到yapi上,是没有作用的,我应该怎么做?
没有做这样的支持,不过你可以自定义配置来试试:
json.class.parse.before=groovy:```
it.methods().each {
def name = it.name()
if(!name.startsWith("get")){
return
}
logger.debug("name:"+name)
def doc = it.doc()
if(tool.isNullOrEmpty(doc)){
return
}
logger.debug("doc:"+doc)
session[tool.uncapitalize(name.substring(3))] = doc
}
```
field.doc=groovy:session[it.name()]
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.