36 lines
981 B
TypeScript
36 lines
981 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 { Schema as ArticleMenu } from 'oak-general-business/lib/entities/ArticleMenu';
|
|
import { EntityDesc } from 'oak-domain/lib/types';
|
|
|
|
export interface Schema extends EntityShape {
|
|
name: String<32>;
|
|
system: System;
|
|
systems?: System[];
|
|
articleMenus?: ArticleMenu[];
|
|
};
|
|
|
|
export type Relation = 'owner' | 'manager';
|
|
|
|
const entityDesc: EntityDesc<Schema, '', Relation> = {
|
|
locales: {
|
|
zh_CN: {
|
|
name: '系统供应商',
|
|
attr: {
|
|
name: '名称',
|
|
system: '系统',
|
|
systems: '系统',
|
|
articleMenus: '文章分类',
|
|
},
|
|
r: {
|
|
owner: '所有者',
|
|
manager: '管理员',
|
|
},
|
|
},
|
|
}
|
|
} |