25 lines
791 B
TypeScript
25 lines
791 B
TypeScript
import { String, Int, Datetime, Image, Boolean, Text } 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>;
|
||
description?: Text;
|
||
entity?: String<32>; // System是抽象对象,应用上级与之一对一的对象可以使用双向指针,以方便编程
|
||
entityId?: String<64>;
|
||
};
|
||
|
||
export const entityDesc: EntityDesc<Schema> = {
|
||
locales: {
|
||
zh_CN: {
|
||
name: '平台',
|
||
attr: {
|
||
name: '名称',
|
||
description: '描述',
|
||
entity: '关联对象',
|
||
entityId: '关联对象id',
|
||
},
|
||
},
|
||
}
|
||
};
|