Skip to content

Commit 28d4257

Browse files
committed
release 2.1.4
1 parent b719b52 commit 28d4257

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ When you need to use smart-doc to generate more API document information, you ca
180180
"responseBodyAdvice":{ //Support ResponseBodyAdvice
181181
"className":"com.power.common.model.CommonResult" // Standard POJO for Response
182182
},
183+
"requestBodyAdvice":{ //Support ResponseBodyAdvice
184+
"className":"com.power.common.model.CommonResult" // Standard POJO for Request
185+
},
183186
"rpcConsumerConfig": "src/main/resources/consumer-example.conf",//dubbo consumer config example
184187
"requestHeaders": [{// Set global request headers, no need to set
185188
"name": "token",

README_CN.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ subprojects{
183183
"responseBodyAdvice":{ //自smart-doc 1.9.8起,ResponseBodyAdvice统一返回设置,可用ignoreResponseBodyAdvice tag来忽略
184184
"className":"com.power.common.model.CommonResult" //通用响应体
185185
},
186+
"requestBodyAdvice":{ ////自smart-doc 2.1.4 起,支持设置RequestBodyAdvice统一请求包装类
187+
"className":"com.power.common.model.CommonResult"
188+
},
186189
"sourceCodePaths": [{//设置代码路径,默认加载src/main/java, 没有需求可以不设置
187190
"path": "src/main/java",
188191
"desc": "测试"

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
}
2020

2121
group 'com.github.shalousun'
22-
version '2.1.3'
22+
version '2.1.4'
2323

2424
sourceCompatibility = 1.8
2525

@@ -31,7 +31,7 @@ repositories {
3131

3232
dependencies {
3333
testCompile group: 'junit', name: 'junit', version: '4.13.1'
34-
compile 'com.github.shalousun:smart-doc:2.1.3'
34+
compile 'com.github.shalousun:smart-doc:2.1.4'
3535
}
3636
tasks.withType(JavaCompile) {
3737
options.encoding = "UTF-8"

src/main/java/com/smartdoc/gradle/util/GradleUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static ApiConfig buildConfig(File configFile, Project project, Logger log
7272
List<ApiDataDictionary> apiDataDictionaries = apiConfig.getDataDictionaries();
7373
List<ApiErrorCodeDictionary> apiErrorCodes = apiConfig.getErrorCodeDictionaries();
7474
List<ApiConstant> apiConstants = apiConfig.getApiConstants();
75-
ResponseBodyAdvice responseBodyAdvice = apiConfig.getResponseBodyAdvice();
75+
BodyAdvice responseBodyAdvice = apiConfig.getResponseBodyAdvice();
7676
if (Objects.nonNull(apiErrorCodes)) {
7777
apiErrorCodes.forEach(
7878
apiErrorCode -> {

0 commit comments

Comments
 (0)