新增entity模板
This commit is contained in:
parent
33289392f5
commit
6475c53dc4
|
|
@ -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: '名称',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Loading…
Reference in New Issue