SysRole.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. package com.ctsi.SysRole.entity;
  2. import com.baomidou.mybatisplus.annotation.TableId;
  3. import com.baomidou.mybatisplus.annotation.TableName;
  4. import com.ctsi.utils.LongtoStringSerialize;
  5. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  6. import io.swagger.annotations.ApiModel;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import java.io.Serializable;
  9. import java.util.Date;
  10. /**
  11. * 角色表;
  12. * @author : machaoyi
  13. * @date : 2024-1-11
  14. */
  15. @ApiModel(value = "角色表",description = "")
  16. @TableName("sys_role")
  17. public class SysRole implements Serializable,Cloneable{
  18. /** 主键id */
  19. @ApiModelProperty(value = "主键id",notes = "")
  20. @TableId
  21. @JsonSerialize(using = LongtoStringSerialize.class)
  22. private Long id ;
  23. /** 创建人userid */
  24. @ApiModelProperty(value = "创建人userid",notes = "")
  25. private Long createdBy ;
  26. /** 创建时间 */
  27. @ApiModelProperty(value = "创建时间",notes = "")
  28. private Date createdTime ;
  29. /** 逻辑删除 */
  30. @ApiModelProperty(value = "逻辑删除",notes = "")
  31. private Integer delFlag ;
  32. /** 角色名称 */
  33. @ApiModelProperty(value = "角色名称",notes = "")
  34. private String roleName ;
  35. /** 主键id */
  36. public Long getId(){
  37. return this.id;
  38. }
  39. /** 主键id */
  40. public void setId(Long id){
  41. this.id=id;
  42. }
  43. /** 创建人userid */
  44. public Long getCreatedBy(){
  45. return this.createdBy;
  46. }
  47. /** 创建人userid */
  48. public void setCreatedBy(Long createdBy){
  49. this.createdBy=createdBy;
  50. }
  51. /** 创建时间 */
  52. public Date getCreatedTime(){
  53. return this.createdTime;
  54. }
  55. /** 创建时间 */
  56. public void setCreatedTime(Date createdTime){
  57. this.createdTime=createdTime;
  58. }
  59. /** 逻辑删除 */
  60. public Integer getDelFlag(){
  61. return this.delFlag;
  62. }
  63. /** 逻辑删除 */
  64. public void setDelFlag(Integer delFlag){
  65. this.delFlag=delFlag;
  66. }
  67. /** 角色名称 */
  68. public String getRoleName(){
  69. return this.roleName;
  70. }
  71. /** 角色名称 */
  72. public void setRoleName(String roleName){
  73. this.roleName=roleName;
  74. }
  75. }