Skip to content

Commit

Permalink
release 2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
shalousun committed Apr 25, 2021
1 parent b719b52 commit 28d4257
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ When you need to use smart-doc to generate more API document information, you ca
"responseBodyAdvice":{ //Support ResponseBodyAdvice
"className":"com.power.common.model.CommonResult" // Standard POJO for Response
},
"requestBodyAdvice":{ //Support ResponseBodyAdvice
"className":"com.power.common.model.CommonResult" // Standard POJO for Request
},
"rpcConsumerConfig": "src/main/resources/consumer-example.conf",//dubbo consumer config example
"requestHeaders": [{// Set global request headers, no need to set
"name": "token",
Expand Down
3 changes: 3 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ subprojects{
"responseBodyAdvice":{ //自smart-doc 1.9.8起,ResponseBodyAdvice统一返回设置,可用ignoreResponseBodyAdvice tag来忽略
"className":"com.power.common.model.CommonResult" //通用响应体
},
"requestBodyAdvice":{ ////自smart-doc 2.1.4 起,支持设置RequestBodyAdvice统一请求包装类
"className":"com.power.common.model.CommonResult"
},
"sourceCodePaths": [{//设置代码路径,默认加载src/main/java, 没有需求可以不设置
"path": "src/main/java",
"desc": "测试"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
}

group 'com.github.shalousun'
version '2.1.3'
version '2.1.4'

sourceCompatibility = 1.8

Expand All @@ -31,7 +31,7 @@ repositories {

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.13.1'
compile 'com.github.shalousun:smart-doc:2.1.3'
compile 'com.github.shalousun:smart-doc:2.1.4'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/smartdoc/gradle/util/GradleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static ApiConfig buildConfig(File configFile, Project project, Logger log
List<ApiDataDictionary> apiDataDictionaries = apiConfig.getDataDictionaries();
List<ApiErrorCodeDictionary> apiErrorCodes = apiConfig.getErrorCodeDictionaries();
List<ApiConstant> apiConstants = apiConfig.getApiConstants();
ResponseBodyAdvice responseBodyAdvice = apiConfig.getResponseBodyAdvice();
BodyAdvice responseBodyAdvice = apiConfig.getResponseBodyAdvice();
if (Objects.nonNull(apiErrorCodes)) {
apiErrorCodes.forEach(
apiErrorCode -> {
Expand Down

0 comments on commit 28d4257

Please sign in to comment.