模板中增加了System对象,删除了SystemProvider对象

This commit is contained in:
Xu Chang 2025-04-12 13:46:02 +08:00
parent 1e2a44523c
commit 021fd49b7d
2 changed files with 31 additions and 36 deletions

View File

@ -0,0 +1,31 @@
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';
export const entityDesc: EntityDesc<Schema, '', Relation> = {
locales: {
zh_CN: {
name: '系统',
attr: {
name: '名称',
description: '描述',
config: '设置',
platform: '平台',
super: '超级系统',
folder: '代码目录名',
style: '样式',
entity: '关联对象',
entityId: '关联对象id',
oldestVersion: '最早支持版本',
},
r: {
owner: '所有者',
manager: '管理员',
},
},
},
};

View File

@ -1,36 +0,0 @@
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: '管理员',
},
},
}
}