User.java 806 字节
Newer Older
Q
qinyingjie 已提交
1
package com.kwan.springbootkwan.entity;
Q
qinyingjie 已提交
2

Q
qinyingjie 已提交
3 4 5
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
Q
qinyingjie 已提交
6 7
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
Q
qinyingjie 已提交
8 9 10 11 12
import lombok.Builder;
import lombok.Data;

@Data
@Builder
Q
qinyingjie 已提交
13
@TableName(value = "user")
Q
qinyingjie 已提交
14 15 16
@ApiModel(value = "用户基本信息")
public class User {
    @ApiModelProperty(value = "主键id")
Q
qinyingjie 已提交
17
    @TableId(value = "id", type = IdType.AUTO)
Q
qinyingjie 已提交
18
    private Integer id;
Q
qinyingjie 已提交
19
    @ApiModelProperty(value = "姓名")
Q
qinyingjie 已提交
20
    private String name;
Q
qinyingjie 已提交
21
    @ApiModelProperty(value = "性别")
Q
qinyingjie 已提交
22
    private String sex;
Q
qinyingjie 已提交
23
    @ApiModelProperty(value = "密码")
Q
qinyingjie 已提交
24
    private String pwd;
Q
qinyingjie 已提交
25
    @ApiModelProperty(value = "邮箱")
Q
qinyingjie 已提交
26 27
    private String email;
}