1. package com.wzy.serviceedu.entity;
    2. import com.baomidou.mybatisplus.annotation.IdType;
    3. import java.util.Date;
    4. import com.baomidou.mybatisplus.annotation.TableId;
    5. import java.io.Serializable;
    6. import io.swagger.annotations.ApiModel;
    7. import io.swagger.annotations.ApiModelProperty;
    8. import lombok.Data;
    9. import lombok.EqualsAndHashCode;
    10. /**
    11. * <p>
    12. * 讲师
    13. * </p>
    14. *
    15. * @author wzy
    16. * @since 2021-09-10
    17. */
    18. @Data
    19. @EqualsAndHashCode(callSuper = false)//生成equals、hashCode方法,生成的方法不调用父类方法
    20. @ApiModel(value="EduTeacher对象", description="讲师")
    21. public class EduTeacher implements Serializable {
    22. private static final long serialVersionUID = 1L;
    23. @ApiModelProperty(value = "讲师ID")
    24. @TableId(value = "id", type = IdType.ID_WORKER_STR)
    25. private String id;
    26. @ApiModelProperty(value = "讲师姓名")
    27. private String name;
    28. @ApiModelProperty(value = "讲师简介")//用于方法,字段; 表示对model属性的说明或者数据操作更改
    29. private String intro;
    30. @ApiModelProperty(value = "讲师资历,一句话说明讲师")
    31. private String career;
    32. @ApiModelProperty(value = "头衔 1高级讲师 2首席讲师")
    33. private Integer level;
    34. @ApiModelProperty(value = "讲师头像")
    35. private String avatar;
    36. @ApiModelProperty(value = "排序")
    37. private Integer sort;
    38. @ApiModelProperty(value = "逻辑删除 1(true)已删除, 0(false)未删除")
    39. private Boolean isDeleted;
    40. @ApiModelProperty(value = "创建时间")
    41. private Date gmtCreate;
    42. @ApiModelProperty(value = "更新时间")
    43. private Date gmtModified;
    44. }