easy-yapi
easy-yapi copied to clipboard
加了method.return这个配置后,void方法也能生成统一返回体
返回类型为void能不能做到不生成统一返回呀
method.return[groovy: it.returnType().name()!="void"]=xxxxxxxxxxx
或者
method.return=groovy:```
if(it.returnType().name()=="void"){
return null
} else {
return xxxxxxxx
}
```
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.