旗开得胜

This commit is contained in:
2025-04-27 12:24:08 +08:00
parent 1bad62e831
commit 8c557aa0fd
18 changed files with 65 additions and 927 deletions

View File

@ -1,62 +0,0 @@
package com.greenorange.promotion.model.dto.user;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
/**
* 用户表添加请求体
*/
@Data
@Schema(description = "用户表添加请求体", requiredProperties =
{"userAccount", "userPassword", "miniOpenId", "userName", "userAvatar", "points", "userRole"})
public class UserAddRequest implements Serializable {
/**
* 账号
*/
@Schema(description = "账号", example = "qingcheng")
private String userAccount;
/**
* 密码
*/
@Schema(description = "密码", example = "123456")
private String userPassword;
/**
* 小程序openId
*/
@Schema(description = "小程序openId", example = "324324")
private String miniOpenId;
/**
* 用户昵称
*/
@Schema(description = "用户昵称", example = "Jack")
private String userName;
/**
* 用户头像
*/
@Schema(description = "用户头像", example = "https://www.com")
private String userAvatar;
/**
* 积分
*/
@Schema(description = "积分", example = "1200")
private Integer points;
/**
* 用户角色
*/
@Schema(description = "用户角色", example = "user")
private String userRole;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -1,38 +0,0 @@
package com.greenorange.promotion.model.dto.user;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import com.greenorange.promotion.common.PageRequest;
/**
* 用户表查询请求体,继承自分页请求 PageRequest
*/
@Data
@Schema(description = "用户表查询请求体", requiredProperties = {"current", "pageSize"})
public class UserQueryRequest extends PageRequest implements Serializable {
/**
* 用户id
*/
@Schema(description = "用户id", example = "1")
private Long id;
/**
* 用户昵称
*/
@Schema(description = "用户昵称", example = "Jack")
private String userName;
/**
* 用户角色
*/
@Schema(description = "用户角色", example = "user")
private String userRole;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -1,68 +0,0 @@
package com.greenorange.promotion.model.dto.user;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
/**
* 用户表更新请求体
*/
@Data
@Schema(description = "用户表更新请求体", requiredProperties =
{"id", "userAccount", "userPassword", "miniOpenId", "userName", "userAvatar", "points", "userRole"})
public class UserUpdateRequest implements Serializable {
/**
* 用户id
*/
@Schema(description = "用户id", example = "1")
private Long id;
/**
* 账号
*/
@Schema(description = "账号", example = "qingcheng")
private String userAccount;
/**
* 密码
*/
@Schema(description = "密码", example = "123456")
private String userPassword;
/**
* 小程序openId
*/
@Schema(description = "小程序openId", example = "fdsafdfasd")
private String miniOpenId;
/**
* 用户昵称
*/
@Schema(description = "用户昵称", example = "Jack")
private String userName;
/**
* 用户头像
*/
@Schema(description = "用户头像", example = "https://www.com")
private String userAvatar;
/**
* 积分
*/
@Schema(description = "积分", example = "12000")
private Integer points;
/**
* 用户角色
*/
@Schema(description = "用户角色", example = "admin")
private String userRole;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -1,76 +0,0 @@
package com.greenorange.promotion.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 用户表
* @TableName user
*/
@TableName(value ="user")
@Data
public class User implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 账号
*/
private String userAccount;
/**
* 密码
*/
private String userPassword;
/**
* 小程序openId
*/
private String miniOpenId;
/**
* 用户昵称
*/
private String userName;
/**
* 用户头像
*/
private String userAvatar;
/**
* 积分
*/
private Integer points;
/**
* 用户角色
*/
private String userRole;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 是否删除
*/
private Integer isDelete;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@ -49,7 +49,7 @@ public class UserInfo implements Serializable {
/**
* 用户角色
*/
private Object userRole;
private String userRole;
/**
* 上级用户id

View File

@ -1,67 +0,0 @@
package com.greenorange.promotion.model.vo.user;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
/**
* 用户表 视图对象
*/
@Data
@Schema(description = "用户表 视图对象")
public class UserVO implements Serializable {
/**
* 用户id
*/
@Schema(description = "用户id", example = "1")
private Long id;
/**
* 账号
*/
@Schema(description = "账号", example = "${field.example}")
private String userAccount;
/**
* 密码
*/
@Schema(description = "密码", example = "${field.example}")
private String userPassword;
/**
* 小程序openId
*/
@Schema(description = "小程序openId", example = "${field.example}")
private String miniOpenId;
/**
* 用户昵称
*/
@Schema(description = "用户昵称", example = "${field.example}")
private String userName;
/**
* 用户头像
*/
@Schema(description = "用户头像", example = "${field.example}")
private String userAvatar;
/**
* 积分
*/
@Schema(description = "积分", example = "${field.example}")
private Integer points;
/**
* 用户角色
*/
@Schema(description = "用户角色", example = "${field.example}")
private String userRole;
@Serial
private static final long serialVersionUID = 1L;
}