| /** | 
|  * Copyright (c) 2018 人人开源 All rights reserved. | 
|  * | 
|  * https://www.renren.io | 
|  * | 
|  * 版权所有,侵权必究! | 
|  */ | 
|   | 
| package com.zt.modules.sys.model; | 
|   | 
| import com.baomidou.mybatisplus.annotation.TableName; | 
| import com.zt.common.entity.CompanyEntity; | 
| import com.zt.common.entity.TenantEntity; | 
| import com.zt.common.validator.group.DefaultGroup; | 
| import io.swagger.annotations.ApiModel; | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import lombok.EqualsAndHashCode; | 
|   | 
| import javax.validation.constraints.Min; | 
| import javax.validation.constraints.NotBlank; | 
| import javax.validation.constraints.NotNull; | 
|   | 
| /** | 
|  * 数据字典 | 
|  * | 
|  * @author hehz | 
|  */ | 
| @Data | 
| @ApiModel(value = "字典数据") | 
| @EqualsAndHashCode(callSuper = false) | 
| @TableName("SYS_DICT_DATA") | 
| public class SysDictData extends TenantEntity { | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     @ApiModelProperty(value = "字典类型ID") | 
|     @NotNull(message = "字典类型不能为空", groups = DefaultGroup.class) | 
|     private Long dictTypeId; | 
|   | 
|     @ApiModelProperty(value = "字典标签") | 
|     @NotBlank(message = "字典标签不能为空", groups = DefaultGroup.class) | 
|     private String dictLabel; | 
|   | 
|     @ApiModelProperty(value = "字典值") | 
|     private Integer dictValue; | 
|   | 
|     @ApiModelProperty(value = "备注") | 
|     private String remark; | 
|   | 
|     @ApiModelProperty(value = "字典编码") | 
|     private String dictCode; | 
|   | 
|     @ApiModelProperty(value = "排序") | 
|     @Min(value = 0, message = "排序值不能小于0", groups = DefaultGroup.class) | 
|     private Integer sort; | 
| } |