forked from yoone/API
1
0
Fork 0

feat(实体): 在字典项实体中新增描述字段并调整字段顺序

添加 description 字段以支持字典项描述信息
将 shortName 字段调整至与其他字段更合理的顺序
This commit is contained in:
tikkhun 2025-12-31 15:05:50 +08:00
parent 28fb8e4ce6
commit 58ae594d5e
1 changed files with 7 additions and 4 deletions

View File

@ -34,6 +34,12 @@ export class DictItem {
@Column({ comment: '字典唯一标识名称' })
name: string;
@Column({ nullable: true, comment: '简称' })
shortName: string;
@Column({ nullable: true, comment: '字典项描述' })
description?: string
// 字典项值
@Column({ nullable: true, comment: '字典项值' })
value?: string;
@ -41,9 +47,6 @@ export class DictItem {
@Column({ nullable: true, comment: '图片' })
image: string;
@Column({ nullable: true, comment: '简称' })
shortName: string;
// 排序
@Column({ default: 0, comment: '排序' })
sort: number;