修改swagger和系统常量
This commit is contained in:
parent
f4210cd6de
commit
12fc61234a
@ -67,7 +67,7 @@ public interface ISystemConstant {
|
||||
/**
|
||||
* 微信小程序接口分组
|
||||
*/
|
||||
String API_GROUP_WECHAT_MINI_APP = "WXMINIAPP";
|
||||
String API_GROUP_WECHAT_MINI_APP = "WECHAT-MINIAPP";
|
||||
/**
|
||||
* api前缀
|
||||
*/
|
||||
@ -107,7 +107,7 @@ public interface ISystemConstant {
|
||||
/**
|
||||
* 微信小程序前缀
|
||||
*/
|
||||
String WECHAT_MINI_APP_PREFIX = "/wechat/miniapp";
|
||||
String WECHAT_MINI_APP_PREFIX = "/wechat-miniapp";
|
||||
/**
|
||||
* true
|
||||
*/
|
||||
|
@ -88,7 +88,7 @@ public class SwaggerConfig {
|
||||
.apiInfo(apiInfo())
|
||||
.select()
|
||||
.apis(Predicates.or(basePackages))
|
||||
.paths(PathSelectors.ant("/api/**"))
|
||||
.paths(PathSelectors.ant(ISystemConstant.API_PREFIX + "/**"))
|
||||
.build();
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ public class SwaggerConfig {
|
||||
.apiInfo(apiInfo())
|
||||
.select()
|
||||
.apis(Predicates.or(basePackages))
|
||||
.paths(PathSelectors.ant("/resource/**"))
|
||||
.paths(PathSelectors.ant(ISystemConstant.RESOURCE_PREFIX + "/**"))
|
||||
.build();
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ public class SwaggerConfig {
|
||||
.apiInfo(apiInfo())
|
||||
.select()
|
||||
.apis(Predicates.or(basePackages))
|
||||
.paths(PathSelectors.ant("/app/**"))
|
||||
.paths(PathSelectors.ant(ISystemConstant.APP_PREFIX + "/**"))
|
||||
.build();
|
||||
}
|
||||
|
||||
@ -152,12 +152,12 @@ public class SwaggerConfig {
|
||||
.apiInfo(apiInfo())
|
||||
.select()
|
||||
.apis(Predicates.or(basePackages))
|
||||
.paths(PathSelectors.ant("/wechat/**"))
|
||||
.paths(PathSelectors.ant(ISystemConstant.WECHAT_PREFIX + "/**"))
|
||||
.build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Docket createRestApiWechatMiniApp() {
|
||||
public Docket createRestApiWechatMiniapp() {
|
||||
List<ResponseMessage> responseMessageList = responseMessageList();
|
||||
return new Docket(DocumentationType.SWAGGER_2)
|
||||
.globalResponseMessage(RequestMethod.POST, responseMessageList)
|
||||
@ -168,7 +168,7 @@ public class SwaggerConfig {
|
||||
.apiInfo(apiInfo())
|
||||
.select()
|
||||
.apis(Predicates.or(basePackages))
|
||||
.paths(PathSelectors.ant("/wxminiapp/**"))
|
||||
.paths(PathSelectors.ant(ISystemConstant.WECHAT_MINI_APP_PREFIX + "/**"))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
* @Date: 2021/8/2 4:47 下午
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Api(tags = ISystemConstant.API_TAGS_WECHAT_MINI_APP_PREFIX + "小程序用户")
|
||||
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "小程序用户")
|
||||
@RestController
|
||||
@RequestMapping(ISystemConstant.APP_PREFIX + "/miniapp/user")
|
||||
public class MiniappUserAppController {
|
||||
|
Loading…
Reference in New Issue
Block a user