Dict.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 io.swagger.annotations.ApiModel;
  22. import io.swagger.annotations.ApiModelProperty;
  23. import lombok.Data;
  24. import java.io.Serializable;
  25. /**
  26. * 实体类
  27. *
  28. * @author Chill
  29. * @since 2018-12-24
  30. */
  31. @Data
  32. @TableName("blade_dict")
  33. @ApiModel(value = "Dict对象", description = "Dict对象")
  34. public class Dict implements Serializable {
  35. private static final long serialVersionUID = 1L;
  36. /**
  37. * 主键
  38. */
  39. @ApiModelProperty(value = "主键")
  40. @TableId(value = "id", type = IdType.AUTO)
  41. private Integer id;
  42. /**
  43. * 父主键
  44. */
  45. @ApiModelProperty(value = "父主键")
  46. private Integer parentId;
  47. /**
  48. * 字典码
  49. */
  50. @ApiModelProperty(value = "字典码")
  51. private String code;
  52. /**
  53. * 字典值
  54. */
  55. @ApiModelProperty(value = "字典值")
  56. private Integer dictKey;
  57. /**
  58. * 字典名称
  59. */
  60. @ApiModelProperty(value = "字典名称")
  61. private String dictValue;
  62. /**
  63. * 排序
  64. */
  65. @ApiModelProperty(value = "排序")
  66. private Integer sort;
  67. /**
  68. * 字典备注
  69. */
  70. @ApiModelProperty(value = "字典备注")
  71. private String remark;
  72. /**
  73. * 是否已删除
  74. */
  75. @TableLogic
  76. @ApiModelProperty(value = "是否已删除")
  77. private Integer isDeleted;
  78. }