优化代码

This commit is contained in:
阿沐 2022-12-10 14:45:12 +08:00
parent ab8c373d8d
commit 0e152e2ac7
4 changed files with 143 additions and 143 deletions

View File

@ -27,9 +27,9 @@ public class SysDictDataEntity extends BaseEntity {
*/
private String dictValue;
/**
* 字典tag类型
* 标签样式
*/
private String tagType;
private String labelClass;
/**
* 备注
*/

View File

@ -106,7 +106,7 @@ public class SysDictTypeServiceImpl extends BaseServiceImpl<SysDictTypeDao, SysD
for (SysDictDataEntity data : dataList) {
if (type.getId().equals(data.getDictTypeId())) {
dict.getDataList().add(new SysDictVO.DictData(data.getDictLabel(), data.getDictValue(), data.getTagType()));
dict.getDataList().add(new SysDictVO.DictData(data.getDictLabel(), data.getDictValue(), data.getLabelClass()));
}
}

View File

@ -32,8 +32,8 @@ public class SysDictDataVO implements Serializable {
@NotBlank(message = "字典标签不能为空")
private String dictLabel;
@Schema(description = "字典tag类型")
private String tagType;
@Schema(description = "标签样式")
private String labelClass;
@Schema(description = "字典值")
private String dictValue;

View File

@ -31,7 +31,7 @@ public class SysDictVO {
@Schema(description = "字典值")
private String dictValue;
@Schema(description = "字典tag类型")
private String tagType;
@Schema(description = "标签样式")
private String labelClass;
}
}