我用nutz-plugins-apidoc插件进行api文档生成,注释这样写的:
@Api(name="绑定",description = "绑定设备",
params = {
@ApiParam(name = "uid",description = "用户标识",type = "String",requestData = "u_123445678"),
@ApiParam(name = "sn",description = "设备序列号",type = "String",requestData = "aabbccddee"),
@ApiParam(name = "token",description = "Token字符串",type = "String",requestData = "eyJhbGciOiJIUzUxMiJ9.eyJzd......GeSgVGlw")
},
ok={
@ReturnKey(key="code",description="返回码"),
@ReturnKey(key="message",description="返回描述"),
@ReturnKey(key="data",description="绑定结果。0:成功;1:已经被其他用户绑定"),
}
)
看了源码中注释,requestData字段就是示例的值,但是运行后示例列的值中,uid和sn显示为“S",token的值倒是正常的。
请问哪里出问题了?