From e597d23808b8382799e29ff216bb762c7096cc0a Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 24 Mar 2023 11:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=98=AF=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E6=88=96=E8=80=85=E8=B6=85=E7=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java | 1 + pmapi/src/main/java/com/ningdatech/pmapi/user/model/vo/UserRoleVO.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java index 9b82d84..e2d42cf 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java @@ -331,6 +331,7 @@ public class UserInfoManage { UserRoleVO userRoleVO = new UserRoleVO(); userRoleVO.setId(r.getId()); userRoleVO.setName(r.getName()); + userRoleVO.setCode(r.getCode()); return userRoleVO; }).collect(Collectors.toList()); } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/model/vo/UserRoleVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/model/vo/UserRoleVO.java index ec9844a..e13a6a2 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/model/vo/UserRoleVO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/model/vo/UserRoleVO.java @@ -21,5 +21,5 @@ public class UserRoleVO { private String name; @ApiModelProperty(value = "角色code") - private RoleEnum code; + private String code; }