Dict.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.springblade.modules.system.entity;
  17. import com.baomidou.mybatisplus.annotation.IdType;
  18. import com.baomidou.mybatisplus.annotation.TableId;
  19. import com.baomidou.mybatisplus.annotation.TableLogic;
  20. import com.baomidou.mybatisplus.annotation.TableName;
  21. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  22. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  23. import io.swagger.annotations.ApiModel;
  24. import io.swagger.annotations.ApiModelProperty;
  25. import lombok.Data;
  26. import java.io.Serializable;
  27. /**
  28. * 实体类
  29. *
  30. * @author Chill
  31. */
  32. @Data
  33. @TableName("blade_dict")
  34. @ApiModel(value = "Dict对象", description = "Dict对象")
  35. public class Dict implements Serializable {
  36. private static final long serialVersionUID = 1L;
  37. /**
  38. * 主键
  39. */
  40. @ApiModelProperty(value = "主键")
  41. @TableId(value = "id", type = IdType.ASSIGN_ID)
  42. @JsonSerialize(using = ToStringSerializer.class)
  43. private Long id;
  44. /**
  45. * 父主键
  46. */
  47. @ApiModelProperty(value = "父主键")
  48. @JsonSerialize(using = ToStringSerializer.class)
  49. private Long parentId;
  50. /**
  51. * 字典码
  52. */
  53. @ApiModelProperty(value = "字典码")
  54. private String code;
  55. /**
  56. * 字典值
  57. */
  58. @ApiModelProperty(value = "字典值")
  59. private Integer dictKey;
  60. /**
  61. * 字典名称
  62. */
  63. @ApiModelProperty(value = "字典名称")
  64. private String dictValue;
  65. /**
  66. * 排序
  67. */
  68. @ApiModelProperty(value = "排序")
  69. private Integer sort;
  70. /**
  71. * 字典备注
  72. */
  73. @ApiModelProperty(value = "字典备注")
  74. private String remark;
  75. /**
  76. * 是否已删除
  77. */
  78. @TableLogic
  79. @ApiModelProperty(value = "是否已删除")
  80. private Integer isDeleted;
  81. }