From 13936b39aa3508e40a1e790d7b29b0e71c502a09 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 3 Jun 2022 19:04:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20system=20=E7=9A=84=20rpc?= =?UTF-8?q?=20=E6=9C=8D=E5=8A=A1=E7=9A=84=20swagger=20=E4=B8=8D=E5=88=86?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=8D=E5=B1=95=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/system/api/oauth2/OAuth2TokenApi.java | 8 ++++---- .../api/oauth2/dto/OAuth2AccessTokenCheckRespDTO.java | 2 +- .../api/oauth2/dto/OAuth2AccessTokenCreateReqDTO.java | 2 +- .../system/api/oauth2/dto/OAuth2AccessTokenRespDTO.java | 2 +- .../module/system/api/oauth2/OAuth2TokenApiImpl.java | 2 +- .../admin/oauth2/vo/user/OAuth2UserInfoRespVO.java | 2 +- .../admin/oauth2/vo/user/OAuth2UserUpdateReqVO.java | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApi.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApi.java index 2763441fb..1da3958b9 100644 --- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApi.java +++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApi.java @@ -26,19 +26,19 @@ public interface OAuth2TokenApi { @GetMapping(API_PREFIX + "/check") @ApiOperation("校验访问令牌") - @ApiImplicitParam(name = "accessToken", value = "访问令牌", required = true, example = "tudou") + @ApiImplicitParam(name = "accessToken", value = "访问令牌", required = true, dataTypeClass = String.class, example = "tudou") CommonResult checkAccessToken(@RequestParam("accessToken") String accessToken); @DeleteMapping(API_PREFIX + "/remove") @ApiOperation("移除访问令牌") - @ApiImplicitParam(name = "accessToken", value = "访问令牌", required = true, example = "tudou") + @ApiImplicitParam(name = "accessToken", value = "访问令牌", required = true, dataTypeClass = String.class, example = "tudou") CommonResult removeAccessToken(@RequestParam("accessToken") String accessToken); @PutMapping(API_PREFIX + "/refresh") @ApiOperation("刷新访问令牌") @ApiImplicitParams({ - @ApiImplicitParam(name = "refreshToken", value = "刷新令牌", required = true, example = "haha"), - @ApiImplicitParam(name = "clientId", value = "客户端编号", required = true, example = "yudaoyuanma") + @ApiImplicitParam(name = "refreshToken", value = "刷新令牌", required = true, dataTypeClass = String.class, example = "haha"), + @ApiImplicitParam(name = "clientId", value = "客户端编号", required = true, dataTypeClass = String.class, example = "yudaoyuanma") }) CommonResult refreshAccessToken(@RequestParam("refreshToken") String refreshToken, @RequestParam("clientId") String clientId); diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCheckRespDTO.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCheckRespDTO.java index 4cb3f860e..7d500293d 100644 --- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCheckRespDTO.java +++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCheckRespDTO.java @@ -7,7 +7,7 @@ import lombok.Data; import java.io.Serializable; import java.util.List; -@ApiModel("RPC 服务 - OAuth2.0 访问令牌的校验 Response DTO") +@ApiModel("RPC 服务 - OAuth2 访问令牌的校验 Response DTO") @Data public class OAuth2AccessTokenCheckRespDTO implements Serializable { diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCreateReqDTO.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCreateReqDTO.java index 2fde8a273..17b9ba456 100644 --- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCreateReqDTO.java +++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenCreateReqDTO.java @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; import java.io.Serializable; import java.util.List; -@ApiModel("RPC 服务 - OAuth2.0 访问令牌创建 Request DTO") +@ApiModel("RPC 服务 - OAuth2 访问令牌创建 Request DTO") @Data public class OAuth2AccessTokenCreateReqDTO implements Serializable { diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenRespDTO.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenRespDTO.java index 118506571..eaff09539 100644 --- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenRespDTO.java +++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/dto/OAuth2AccessTokenRespDTO.java @@ -8,7 +8,7 @@ import lombok.experimental.Accessors; import java.io.Serializable; import java.util.Date; -@ApiModel("RPC 服务 - OAuth2.0 访问令牌的信息 Response DTO") +@ApiModel("RPC 服务 - OAuth2 访问令牌的信息 Response DTO") @Data @Accessors(chain = true) public class OAuth2AccessTokenRespDTO implements Serializable { diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApiImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApiImpl.java index c2b536370..1450428b5 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApiImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/oauth2/OAuth2TokenApiImpl.java @@ -26,7 +26,7 @@ public class OAuth2TokenApiImpl implements OAuth2TokenApi { @Override @ApiOperation("创建访问令牌") - public CommonResult createAccessToken(@RequestBody OAuth2AccessTokenCreateReqDTO reqDTO) { + public CommonResult createAccessToken(OAuth2AccessTokenCreateReqDTO reqDTO) { OAuth2AccessTokenDO accessTokenDO = oauth2TokenService.createAccessToken( reqDTO.getUserId(), reqDTO.getUserType(), reqDTO.getClientId(), reqDTO.getScopes()); return success(OAuth2TokenConvert.INSTANCE.convert2(accessTokenDO)); diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserInfoRespVO.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserInfoRespVO.java index b513fc3da..ddd7aecc7 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserInfoRespVO.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserInfoRespVO.java @@ -8,7 +8,7 @@ import lombok.NoArgsConstructor; import java.util.List; -@ApiModel("管理后台 - OAuth2.0 获得用户基本信息 Response VO") +@ApiModel("管理后台 - OAuth2 获得用户基本信息 Response VO") @Data @NoArgsConstructor @AllArgsConstructor diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserUpdateReqVO.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserUpdateReqVO.java index 991c88a99..16082a75e 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserUpdateReqVO.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserUpdateReqVO.java @@ -10,7 +10,7 @@ import org.hibernate.validator.constraints.Length; import javax.validation.constraints.Email; import javax.validation.constraints.Size; -@ApiModel("管理后台 - OAuth2.0 更新用户基本信息 Request VO") +@ApiModel("管理后台 - OAuth2 更新用户基本信息 Request VO") @Data @NoArgsConstructor @AllArgsConstructor