Browse Source

优化swagger

zhou-hao 7 years ago
parent
commit
002846207f

+ 1 - 1
hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ClientController.java

@@ -44,7 +44,7 @@ import java.net.URLEncoder;
  */
 @Controller
 @RequestMapping("${hsweb.web.mappings.oauth2-client-callback:oauth2}")
-@Api(tags = "OAuth2.0-客户端", value = "OAuth2.0客户端")
+@Api(tags = "OAuth2.0-客户端-请求服务", value = "OAuth2.0客户端请求服务")
 public class OAuth2ClientController {
 
     private OAuth2RequestService oAuth2RequestService;

+ 1 - 1
hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ServerConfigController.java

@@ -37,7 +37,7 @@ import org.springframework.web.bind.annotation.RestController;
 @RestController
 @RequestMapping("${hsweb.web.mappings.oauth2-server-config:oauth2-server-config}")
 @Authorize(permission = "oauth2-server-config")
-@Api(tags = "OAuth2.0-服务配置")
+@Api(tags = "OAuth2.0-客户端-服务配置",value = "OAuth2.0-客户端-服务配置")
 public class OAuth2ServerConfigController implements GenericEntityController<OAuth2ServerConfigEntity, String, QueryParamEntity, OAuth2ServerConfigEntity> {
 
     private OAuth2ServerConfigService oAuth2ServerConfigService;

+ 1 - 1
hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2UserTokenController.java

@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.RestController;
 @RestController
 @RequestMapping("${hsweb.web.mappings.oauth2-user-token:oauth2-user-token}")
 @Authorize(permission = "oauth2-user-token")
-@Api(tags = "OAuth2.0-客户端用token信息",value = "OAuth2.0客户端token信息")
+@Api(tags = "OAuth2.0-客户端-token",value = "OAuth2.0-客户端-token")
 public class OAuth2UserTokenController
         implements QueryController<OAuth2UserTokenEntity, String, QueryParamEntity> {
 

+ 1 - 1
hsweb-system/hsweb-system-oauth2-server/hsweb-system-oauth2-server-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2AuthorizeController.java

@@ -44,7 +44,7 @@ import javax.servlet.http.HttpServletRequest;
  * @author zhouhao
  */
 @RestController
-@Api(tags = "OAuth2.0-授权", value = "OAuth2.0")
+@Api(tags = "OAuth2.0-服务-授权", value = "OAuth2.0-服务-授权")
 @RequestMapping("${hsweb.web.mappings.authorize-oauth2:oauth2/authorize}")
 public class OAuth2AuthorizeController {
 

+ 1 - 1
hsweb-system/hsweb-system-oauth2-server/hsweb-system-oauth2-server-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ClientConfigController.java

@@ -16,7 +16,7 @@ import java.util.List;
 
 @RestController
 @RequestMapping("/oauth2/client/config")
-@Api(tags = "OAuth2.0-客户端管理", value = "OAuth2.0客户端管理")
+@Api(tags = "OAuth2.0-服务-客户端管理", value = "OAuth2.0-服务-客户端管理")
 @Authorize(permission = "oauth2-client-config", description = "OAuth2.0客户端管理")
 public class OAuth2ClientConfigController {
 

+ 1 - 1
hsweb-system/hsweb-system-oauth2-server/hsweb-system-oauth2-server-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2TokenController.java

@@ -44,7 +44,7 @@ import java.util.Map;
  * @author zhouhao
  */
 @RestController
-@Api(tags = "OAuth2.0-申请token", value = "OAuth2.0")
+@Api(tags = "OAuth2.0-服务-申请token", value = "OAuth2.0-服务-申请token")
 @RequestMapping("${hsweb.web.mappings.authorize-oauth2:oauth2/token}")
 public class OAuth2TokenController {
 

+ 1 - 1
hsweb-system/hsweb-system-oauth2-server/hsweb-system-oauth2-server-controller/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2UserInfoController.java

@@ -37,7 +37,7 @@ import javax.annotation.Resource;
  * @author zhouhao
  */
 @RestController
-@Api(tags = "OAuth2.0-获取用户信息", value = "OAuth2.0")
+@Api(tags = "OAuth2.0-服务-获取用户信息", value = "OAuth2.0-服务-获取用户信息")
 @RequestMapping("${hsweb.web.mappings.oauth2-auth-info:oauth2/user-auth-info}")
 public class OAuth2UserInfoController {