调整了i18n的结构

This commit is contained in:
Xu Chang 2023-08-12 17:28:20 +08:00
parent 100c8e541c
commit 4ff005a011
5 changed files with 31 additions and 14 deletions

View File

@ -8,15 +8,17 @@ import * as ModiEntity from "../ModiEntity/Schema";
import * as OperEntity from "../OperEntity/Schema";
export declare type OpSchema = EntityShape & {
module: String<64>;
position: String<256>;
languange: String<32>;
position: String<188>;
namespace: String<256>;
language: String<32>;
data: Object;
};
export declare type OpAttr = keyof OpSchema;
export declare type Schema = EntityShape & {
module: String<64>;
position: String<256>;
languange: String<32>;
position: String<188>;
namespace: String<256>;
language: String<32>;
data: Object;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
@ -32,7 +34,8 @@ declare type AttrFilter = {
$$updateAt$$: Q_DateValue;
module: Q_StringValue;
position: Q_StringValue;
languange: Q_StringValue;
namespace: Q_StringValue;
language: Q_StringValue;
data: Object;
modiEntity$entity: ModiEntity.Filter & SubQueryPredicateMetadata;
operEntity$entity: OperEntity.Filter & SubQueryPredicateMetadata;
@ -47,7 +50,8 @@ export declare type Projection = {
$$seq$$?: number;
module?: number;
position?: number;
languange?: number;
namespace?: number;
language?: number;
data?: number | Object;
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
@ -78,7 +82,9 @@ export declare type SortAttr = {
} | {
position: number;
} | {
languange: number;
namespace: number;
} | {
language: number;
} | {
[k: string]: any;
} | OneOf<ExprOp<OpAttr | string>>;

View File

@ -12,13 +12,20 @@ exports.desc = {
}
},
position: {
notNull: true,
type: "varchar",
params: {
length: 188
}
},
namespace: {
notNull: true,
type: "varchar",
params: {
length: 256
}
},
languange: {
language: {
notNull: true,
type: "varchar",
params: {

View File

@ -2,7 +2,8 @@ import { String } from '../types/DataType';
import { EntityShape } from '../types/Entity';
export interface Schema extends EntityShape {
module: String<64>;
position: String<256>;
languange: String<32>;
position: String<188>;
namespace: String<256>;
language: String<32>;
data: Object;
}

View File

@ -8,7 +8,8 @@ var entityDesc = {
attr: {
module: '模块',
position: '文件位置',
languange: '语言',
namespace: '命名空间',
language: '语言',
data: '数据'
},
},

View File

@ -4,8 +4,9 @@ import { EntityDesc } from '../types/EntityDesc';
export interface Schema extends EntityShape {
module: String<64>;
position: String<256>;
languange: String<32>;
position: String<188>;
namespace: String<256>;
language: String<32>;
data: Object;
};
@ -16,7 +17,8 @@ const entityDesc: EntityDesc<Schema> = {
attr: {
module: '模块',
position: '文件位置',
languange: '语言',
namespace: '命名空间',
language: '语言',
data: '数据'
},
},