Update README.md

This commit is contained in:
oppofind 2021-04-09 23:16:08 +08:00
parent 061238fb93
commit c1cca12b42
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ When you need to use smart-doc to generate more API document information, you ca
"desc": "Response code", // Override field comment of response code
"value": "00000" // Set the value of the response code
}],
"customRequestFields":[{
"customRequestFields": [{//@since 2.1.3
"name":"code", //Override the request code field
"desc":"request code", //Override field comment of response code
"ownerClassName":"com.xxx.constant.entity.Result",

View File

@ -157,7 +157,7 @@ smart-doc官方目前已经开发完成[Maven插件](https://gitee.com/smart-doc
"ownerClassName": "org.springframework.data.domain.Pageable", //指定你要添加注释的类名
"value": "00000"//设置响应码的值
}],
"customRequestFields": [{
"customRequestFields": [{ //自定义请求体的注释,@since 2.1.3
"name":"code", //属性名
"desc":"状态码", //描述
"ownerClassName":"com.xxx.constant.entity.Result", //属性对应的类全路径