SysPost.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.kxs.system.biz.model;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.baomidou.mybatisplus.extension.activerecord.Model;
  4. import io.swagger.v3.oas.annotations.media.Schema;
  5. import jakarta.validation.constraints.NotBlank;
  6. import jakarta.validation.constraints.NotNull;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. import java.io.Serial;
  10. import java.time.LocalDateTime;
  11. /**
  12. * 岗位信息表
  13. *
  14. * @author fxz
  15. * @date 2022-03-26 12:50:43
  16. */
  17. @Data
  18. @TableName("sys_post")
  19. @EqualsAndHashCode(callSuper = true)
  20. @Schema(description = "岗位信息表")
  21. public class SysPost extends Model<SysPost> {
  22. @Serial
  23. private static final long serialVersionUID = 1L;
  24. /**
  25. * 岗位ID
  26. */
  27. @TableId(value = "post_id", type = IdType.AUTO)
  28. @Schema(description = "岗位ID")
  29. private Long postId;
  30. /**
  31. * 岗位编码
  32. */
  33. @NotBlank(message = "岗位编码不能为空")
  34. @Schema(description = "岗位编码")
  35. private String postCode;
  36. /**
  37. * 岗位名称
  38. */
  39. @NotBlank(message = "岗位名称不能为空")
  40. @Schema(description = "岗位名称")
  41. private String postName;
  42. /**
  43. * 岗位排序
  44. */
  45. @NotNull(message = "排序值不能为空")
  46. @Schema(description = "岗位排序")
  47. private Integer postSort;
  48. /**
  49. * 岗位描述
  50. */
  51. @Schema(description = "岗位描述")
  52. private String remark;
  53. /**
  54. * 创建人
  55. */
  56. @TableField(fill = FieldFill.INSERT)
  57. @Schema(description = "创建人")
  58. private String createBy;
  59. /**
  60. * 修改人
  61. */
  62. @TableField(fill = FieldFill.UPDATE)
  63. @Schema(description = "修改人")
  64. private String updateBy;
  65. /**
  66. * 是否删除 -1:已删除 0:正常
  67. */
  68. @TableField(fill = FieldFill.INSERT)
  69. @Schema(description = "是否删除 -1:已删除 0:正常")
  70. private String delFlag;
  71. /**
  72. * 创建时间
  73. */
  74. @Schema(description = "创建时间")
  75. @TableField(fill = FieldFill.INSERT)
  76. private LocalDateTime createTime;
  77. /**
  78. * 更新时间
  79. */
  80. @Schema(description = "更新时间")
  81. @TableField(fill = FieldFill.UPDATE)
  82. private LocalDateTime updateTime;
  83. }