Skip to content

Commit 5350ec0

Browse files
committed
加入swagger
1 parent 2c2b609 commit 5350ec0

File tree

4 files changed

+7
-231
lines changed

4 files changed

+7
-231
lines changed

Api/src/main/java/com/java110/api/ApiApplicationStart.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public Docket swaggerSpringMvcPlugin() {
108108
*/
109109
private ApiInfo apiInfo() {
110110
return new ApiInfoBuilder()
111-
.title("Swagger2构建RESTful APIs")
112-
.description("api信息")
111+
.title("HC小区管理系统 APIs")
112+
.description("HC小区管理系统提供的所有能力")
113113
.termsOfServiceUrl("https://github.com/java110/MicroCommunity")
114-
.contact("sunf")
114+
.contact("吴学文")
115115
.version("1.0")
116116
.build();
117117
}

Api/src/main/java/com/java110/api/listener/app/ListAppsListener.java

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import com.java110.event.service.api.ServiceDataFlowEvent;
1212
import com.java110.vo.api.app.ApiAppDataVo;
1313
import com.java110.vo.api.app.ApiAppVo;
14+
import io.swagger.annotations.Api;
15+
import io.swagger.annotations.ApiOperation;
1416
import org.springframework.beans.factory.annotation.Autowired;
1517
import org.springframework.http.HttpMethod;
1618
import org.springframework.http.HttpStatus;
@@ -24,6 +26,7 @@
2426
* 查询小区侦听类
2527
*/
2628
@Java110Listener("listAppsListener")
29+
@Api(value = "查询应用服务")
2730
public class ListAppsListener extends AbstractServiceApiListener {
2831

2932
@Autowired
@@ -59,6 +62,7 @@ protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
5962
super.validatePageInfo(reqJson);
6063
}
6164

65+
@ApiOperation(value = "查询应用信息", notes = "test: 返回 2XX 表示服务正常", httpMethod = "GET", response = ApiAppVo.class)
6266
@Override
6367
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
6468

Api/src/main/java/com/java110/api/rest/GetPhotoByInst.java

-94
This file was deleted.

Api/src/main/java/com/java110/api/rest/PicTest.java

-134
This file was deleted.

0 commit comments

Comments
 (0)