oak-cli/template/src/entities/System.ts

36 lines
973 B
TypeScript

import {
String,
Text,
Price
} from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { Schema as System } from 'oak-general-business/lib/entities/System';
import { EntityDesc } from 'oak-domain/lib/types';
export interface Schema extends System {
};
export type Relation = 'owner' | 'manager';
const entityDesc: EntityDesc<Schema, '', Relation> = {
locales: {
zh_CN: {
name: '系统',
attr: {
name: '名称',
description: '描述',
config: '设置',
platform: '平台',
super: '超级系统',
folder: '代码目录名',
style: '样式',
entity: '关联对象',
entityId: '关联对象id',
},
r: {
owner: '所有者',
manager: '管理员',
},
},
}
}