package com.kwan.springbootkwan.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Builder; import lombok.Data; @Data @Builder @TableName(value = "user") @ApiModel(value = "用户基本信息") public class User { @ApiModelProperty(value = "主键id") @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty(value = "姓名") private String name; @ApiModelProperty(value = "性别") private String sex; @ApiModelProperty(value = "密码") private String pwd; @ApiModelProperty(value = "邮箱") private String email; }