新增entity模板

This commit is contained in:
Pan Qiancheng 2024-12-01 16:56:36 +08:00
parent 33289392f5
commit 6475c53dc4
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import { String, Boolean } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
export interface Schema extends EntityShape {
name: String<32>;
}
const entityDesc: EntityDesc<Schema, '', '', {}> = {
locales: {
zh_CN: {
name: '实体',
attr: {
name: '名称',
},
},
},
};