|
|
@ -1,15 +1,13 @@
|
|
|
|
package org.dromara.system.domain.bo;
|
|
|
|
package org.dromara.system.domain.bo;
|
|
|
|
|
|
|
|
|
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
|
|
|
import org.dromara.common.core.validate.EditGroup;
|
|
|
|
|
|
|
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
|
|
|
|
|
|
|
import org.dromara.system.domain.SysDictData;
|
|
|
|
|
|
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
|
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
|
|
|
|
|
|
|
import org.dromara.system.domain.SysDictData;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 字典数据业务对象 sys_dict_data
|
|
|
|
* 字典数据业务对象 sys_dict_data
|
|
|
@ -25,7 +23,7 @@ public class SysDictDataBo extends BaseEntity {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 字典编码
|
|
|
|
* 字典编码
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@NotNull(message = "字典编码不能为空", groups = { EditGroup.class })
|
|
|
|
@NotNull(message = "字典编码不能为空")
|
|
|
|
private Long dictCode;
|
|
|
|
private Long dictCode;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -36,21 +34,21 @@ public class SysDictDataBo extends BaseEntity {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 字典标签
|
|
|
|
* 字典标签
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@NotBlank(message = "字典标签不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
|
|
@NotBlank(message = "字典标签不能为空")
|
|
|
|
@Size(min = 0, max = 100, message = "字典标签长度不能超过{max}个字符")
|
|
|
|
@Size(min = 0, max = 100, message = "字典标签长度不能超过{max}个字符")
|
|
|
|
private String dictLabel;
|
|
|
|
private String dictLabel;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 字典键值
|
|
|
|
* 字典键值
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@NotBlank(message = "字典键值不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
|
|
@NotBlank(message = "字典键值不能为空")
|
|
|
|
@Size(min = 0, max = 100, message = "字典键值长度不能超过{max}个字符")
|
|
|
|
@Size(min = 0, max = 100, message = "字典键值长度不能超过{max}个字符")
|
|
|
|
private String dictValue;
|
|
|
|
private String dictValue;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 字典类型
|
|
|
|
* 字典类型
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@NotBlank(message = "字典类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
|
|
@NotBlank(message = "字典类型不能为空")
|
|
|
|
@Size(min = 0, max = 100, message = "字典类型长度不能超过{max}个字符")
|
|
|
|
@Size(min = 0, max = 100, message = "字典类型长度不能超过{max}个字符")
|
|
|
|
private String dictType;
|
|
|
|
private String dictType;
|
|
|
|
|
|
|
|
|
|
|
|