From ca7c66ca998586fa537534f4da5d815c9e68c5f9 Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 1 Jul 2026 17:56:00 +0800 Subject: [PATCH] chore: src/modules/base/entity/sys/param.ts --- src/modules/base/entity/sys/param.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/modules/base/entity/sys/param.ts diff --git a/src/modules/base/entity/sys/param.ts b/src/modules/base/entity/sys/param.ts new file mode 100644 index 0000000..1c7cf1c --- /dev/null +++ b/src/modules/base/entity/sys/param.ts @@ -0,0 +1,27 @@ +import { BaseEntity } from '../base'; +import { Column, Index, Entity } from 'typeorm'; + +/** + * 参数配置 + */ +@Entity('base_sys_param') +export class BaseSysParamEntity extends BaseEntity { + @Index({ unique: true }) + @Column({ comment: '键' }) + keyName: string; + + @Column({ comment: '名称' }) + name: string; + + @Column({ comment: '数据', type: 'text' }) + data: string; + + @Column({ + comment: '数据类型 0-字符串 1-富文本 2-文件 ', + default: 0, + }) + dataType: number; + + @Column({ comment: '备注', nullable: true }) + remark: string; +}