From 58ae594d5ef0f9339d0fb7ee7e5d1077942df058 Mon Sep 17 00:00:00 2001 From: tikkhun Date: Wed, 31 Dec 2025 15:05:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=AE=9E=E4=BD=93):=20=E5=9C=A8=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E9=A1=B9=E5=AE=9E=E4=BD=93=E4=B8=AD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=AD=97=E6=AE=B5=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 description 字段以支持字典项描述信息 将 shortName 字段调整至与其他字段更合理的顺序 --- src/entity/dict_item.entity.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/entity/dict_item.entity.ts b/src/entity/dict_item.entity.ts index ffa6896..544c625 100644 --- a/src/entity/dict_item.entity.ts +++ b/src/entity/dict_item.entity.ts @@ -34,16 +34,19 @@ 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; @Column({ nullable: true, comment: '图片' }) image: string; - - @Column({ nullable: true, comment: '简称' }) - shortName: string; - + // 排序 @Column({ default: 0, comment: '排序' }) sort: number;