完成了Web端用户登录和退出登录的功能
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
package com.greenorange.promotion.model.dto.user;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@ -19,59 +18,60 @@ public class UserInfoAddRequest implements Serializable {
|
||||
* 用户昵称
|
||||
*/
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@Schema(description = "用户昵称", example = "${field.example}")
|
||||
@Schema(description = "用户昵称", example = "chenxinzhi")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 用户头像URL
|
||||
*/
|
||||
@Schema(description = "用户头像URL", example = "${field.example}")
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@Schema(description = "用户头像URL", example = "http://xxx.png")
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@Schema(description = "手机号", example = "${field.example}")
|
||||
@Schema(description = "手机号", example = "15888610253")
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@Schema(description = "账号", example = "${field.example}")
|
||||
@Schema(description = "账号", example = "qingcheng_account")
|
||||
private String userAccount;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@Schema(description = "密码", example = "${field.example}")
|
||||
@Schema(description = "密码", example = "qingcheng_password")
|
||||
private String userPassword;
|
||||
|
||||
/**
|
||||
* 邀请码
|
||||
*/
|
||||
@Schema(description = "邀请码", example = "${field.example}")
|
||||
@Schema(description = "邀请码", example = "666999")
|
||||
private String invitationCode;
|
||||
|
||||
/**
|
||||
* 用户角色
|
||||
*/
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@Schema(description = "用户角色", example = "${field.example}")
|
||||
@Schema(description = "用户角色", example = "user")
|
||||
private String userRole;
|
||||
|
||||
/**
|
||||
* 上级用户id
|
||||
*/
|
||||
@Schema(description = "上级用户id", example = "${field.example}")
|
||||
@Schema(description = "上级用户id", example = "1")
|
||||
private Long parentUserId;
|
||||
|
||||
/**
|
||||
* 上级用户列表(1,2,3)
|
||||
*/
|
||||
@Schema(description = "上级用户列表(1,2,3)", example = "${field.example}")
|
||||
@Schema(description = "上级用户列表(1,2,3)", example = "1, 2, 3")
|
||||
private String superUserList;
|
||||
|
||||
|
||||
|
@ -8,6 +8,8 @@ import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 用户基本信息表
|
||||
* @TableName user_info
|
||||
|
Reference in New Issue
Block a user