fixschame

This commit is contained in:
wenjiarui 2023-08-22 17:21:30 +08:00
parent dc44e4f5a0
commit bd9a4ba71f
5 changed files with 47 additions and 38 deletions

View File

@ -314,11 +314,11 @@ var i18ns = [
}
},
{
id: "bcef8b0d14c15026960f496b9aa08e7f",
namespace: "oak-general-business-l-common",
id: "c92ab50ae7c0980c7a8cde78031a9ca9",
namespace: "oak-general-business-l-Common",
language: "zh-CN",
module: "oak-general-business",
position: "locales/common",
position: "locales/Common",
data: {
"noData": "暂无数据",
"areYouSure": "请确认",

View File

@ -1,20 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
var locale = {
zh_CN: {
name: '密码修改记录',
attr: {
user: '用户',
prevPassword: '原密码',
newPassword: '新密码',
result: "修改结果",
var entityDesc = {
locales: {
zh_CN: {
name: '密码修改记录',
attr: {
user: '用户',
prevPassword: '原密码',
newPassword: '新密码',
result: "修改结果",
},
v: {
result: {
success: '成功',
fail: '失败'
}
},
},
v: {
result: {
success: '成功',
fail: '失败'
}
},
},
}
};

View File

@ -314,11 +314,11 @@ const i18ns: I18n[] = [
}
},
{
id: "bcef8b0d14c15026960f496b9aa08e7f",
namespace: "oak-general-business-l-common",
id: "c92ab50ae7c0980c7a8cde78031a9ca9",
namespace: "oak-general-business-l-Common",
language: "zh-CN",
module: "oak-general-business",
position: "locales/common",
position: "locales/Common",
data: {
"noData": "暂无数据",
"areYouSure": "请确认",

View File

@ -3,6 +3,7 @@ import { String, Text, Boolean, Datetime } from 'oak-domain/lib/types/DataType';
import { LocaleDef } from 'oak-domain/lib/types/Locale';
import { ActionDef, Index } from 'oak-domain/lib/types';
import { Schema as User } from './User';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
export interface Schema extends EntityShape {
user: User;
@ -12,22 +13,27 @@ export interface Schema extends EntityShape {
};
const locale: LocaleDef<Schema, '', '', {
result: Schema['result']
}> = {
zh_CN: {
name: '密码修改记录',
attr: {
user: '用户',
prevPassword: '原密码',
newPassword: '新密码',
result: "修改结果",
const entityDesc: EntityDesc<Schema,
'',
'',
{
result: Schema['result'];
}> = {
locales: {
zh_CN: {
name: '密码修改记录',
attr: {
user: '用户',
prevPassword: '原密码',
newPassword: '新密码',
result: "修改结果",
},
v: {
result: {
success: '成功',
fail: '失败'
}
},
},
v: {
result: {
success: '成功',
fail: '失败'
}
},
},
}
};

View File

@ -7,6 +7,7 @@ import { ActionType, EntityShape } from "oak-domain/lib/types/Entity";
import { String, Text, Boolean, Datetime } from "oak-domain/lib/types/DataType";
import { LocaleDef } from "oak-domain/lib/types/Locale";
import { ActionDef, Index } from "oak-domain/lib/types";
import { EntityDesc } from "oak-domain/lib/types/EntityDesc";
import * as User from "../User/Schema";
export type OpSchema = EntityShape & {
userId: ForeignKey<"user">;