tangcent

Results 108 comments of tangcent

@zhangyiteng 你的图裂了。另外官方提交记录里似乎没有关于支持二级分类的commit。 https://github.com/YMFE/yapi/commits/master/

完全不用spring的注解?还是说只是不用`RequestBody `?

不是很能完全理解你目前的情况,你有配置`generic.class.has.api`吗? 是不是需要设置`generic.http.method=POST`? ref: https://easyyapi.com/documents/generic.html

我试了一下,导出的文档看起来是正常的。 code: ```java @ThriftService(group = "xxx", service = "invoice") public class InvoiceServiceImpl implements InvoiceService { /** * 发票记录列表 * * @param request 请求参数 * @return 发票记录列表 */ @Override public RecordDTO...

> 大佬,还是想请教个问题, 我设置成了 generic.param.as.json.body=true 在方法的参数上加@requestbody注解,就可以完美的导出,但是如果不加这个注解,导出接口的请求参数json显示为空 想问下,在生成api,生成json请求参数的时候,是怎么处理的 https://github.com/tangcent/easy-yapi/blob/a6fd9033f16f39f7dd2d5b419e0770a7360549be/idea-plugin/src/main/kotlin/com/itangcent/idea/plugin/api/export/generic/GenericRequestClassExporter.kt#L70-L87 他们那个插件好像没开源,不知道改成啥样了。

没有做这样的支持,不过你可以自定义配置来试试: ``````properties 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()] ``````

@zhuangjiaju 我上次试了一下: https://github.com/tangcent/easy-yapi/issues/1124#issuecomment-2053645620 和你的情况有什么不一样吗?