1.app角色升级功能
2.sys_user表新增字段
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.njcn.user.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/6/25 20:50
|
||||
*/
|
||||
@Getter
|
||||
public enum AppRoleEnum {
|
||||
|
||||
TOURIST("tourist","游客"),
|
||||
APP_VIP_USER("app_vip_user","移动端正式用户"),
|
||||
MARKET_USER("market_user","营销角色"),
|
||||
ENGINEERING_USER("engineering_user","工程角色"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
private final String message;
|
||||
|
||||
AppRoleEnum(String code, String message) {
|
||||
this.code=code;
|
||||
this.message=message;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -95,6 +95,9 @@ public enum UserResponseEnum {
|
||||
|
||||
ROLE_NAME_REPEAT("A0117","角色名称重复"),
|
||||
DEPT_PID_EXCEPTION("A0118","新增部门父节点信息异常"),
|
||||
|
||||
REFERRAL_CODE_LAPSE("A0119","角色推荐码失效,请联系管理员"),
|
||||
REFERRAL_CODE_ERROR("A0119","角色推荐码错误,请联系管理员"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
@@ -79,6 +79,12 @@ public class UserParam {
|
||||
@NotEmpty(message = UserValidMessage.ROLE_NOT_BLANK)
|
||||
private List<String> role;
|
||||
|
||||
@ApiModelProperty("手机识别码")
|
||||
private String devCode;
|
||||
|
||||
@ApiModelProperty("移动端用户头像")
|
||||
private String headSculpture;
|
||||
|
||||
/**
|
||||
* 用户新增操作实体
|
||||
*
|
||||
|
||||
@@ -143,4 +143,7 @@ public class User extends BaseEntity {
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private LocalDateTime lockTime;
|
||||
|
||||
private String devCode;
|
||||
|
||||
private String headSculpture;
|
||||
}
|
||||
|
||||
@@ -46,4 +46,7 @@ public class UserVO extends UserParam implements Serializable {
|
||||
@ApiModelProperty("角色id")
|
||||
private List<String> roleList;
|
||||
|
||||
@ApiModelProperty("头像")
|
||||
private String headSculpture;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.user.pojo.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/6/25 18:40
|
||||
*/
|
||||
@Data
|
||||
public class RoleReferralCodeVO {
|
||||
|
||||
@ApiModelProperty("角色名称")
|
||||
private String roleName;
|
||||
|
||||
@ApiModelProperty("角色推荐码")
|
||||
private String roleReferralCode;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user