issue fixed
This commit is contained in:
parent
afacb6f958
commit
b4c10ed21d
|
|
@ -1,33 +0,0 @@
|
|||
import { EntityDict } from '@oak-app-domain';
|
||||
import { Checker } from 'oak-domain/lib/types';
|
||||
import { RuntimeCxt } from '../types/RuntimeCxt';
|
||||
import { checkAttributesNotNull } from 'oak-domain/lib/utils/validator';
|
||||
import { CreateOperationData as CreateStoreData } from '@oak-app-domain/Store/Schema';
|
||||
|
||||
export const checkers: Checker<EntityDict, 'store', RuntimeCxt>[] = [
|
||||
{
|
||||
type: 'data',
|
||||
action: 'create',
|
||||
entity: 'store',
|
||||
checker: (data, context) => {
|
||||
if (data instanceof Array) {
|
||||
data.forEach((ele) => {
|
||||
checkAttributesNotNull('store', data, [
|
||||
'coordinate',
|
||||
'name',
|
||||
'addrDetail',
|
||||
'areaId',
|
||||
]);
|
||||
});
|
||||
} else {
|
||||
checkAttributesNotNull('store', data, [
|
||||
'coordinate',
|
||||
'name',
|
||||
'addrDetail',
|
||||
'areaId',
|
||||
]);
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
@ -3,13 +3,6 @@ import { EntityDict } from '@project/oak-app-domain';
|
|||
|
||||
|
||||
const attrUpdateMatrix: AttrUpdateMatrix<EntityDict> = {
|
||||
store: {
|
||||
name: {
|
||||
filter: {
|
||||
iState: 'offline',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default attrUpdateMatrix;
|
||||
106
src/data/i18n.ts
106
src/data/i18n.ts
|
|
@ -321,6 +321,22 @@ const i18ns: I18n[] = [
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "5cd7b813d2b4f185e6cf18fc0238c0f6",
|
||||
namespace: "category",
|
||||
language: "zh-CN",
|
||||
module: "",
|
||||
position: "oak-app-domain/Category",
|
||||
data: {
|
||||
"name": "文章分类",
|
||||
"attr": {
|
||||
"name": "分类名称",
|
||||
"description": "描述",
|
||||
"creator": "创建者",
|
||||
"images": "图片"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "a011989772d51a490ab920521cc8dec7",
|
||||
namespace: "changePasswordTemp",
|
||||
|
|
@ -392,6 +408,52 @@ const i18ns: I18n[] = [
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "c930a8c71cf774a5d6560d479409ec39",
|
||||
namespace: "essay",
|
||||
language: "zh-CN",
|
||||
module: "",
|
||||
position: "oak-app-domain/Essay",
|
||||
data: {
|
||||
"name": "文章",
|
||||
"attr": {
|
||||
"title": "标题",
|
||||
"summary": "摘要",
|
||||
"content": "内容(Markdown 格式)",
|
||||
"creator": "创建者",
|
||||
"meta": "元数据",
|
||||
"images": "图片",
|
||||
"logs": "修改记录",
|
||||
"category": "分类",
|
||||
"iState": "状态"
|
||||
},
|
||||
"action": {
|
||||
"publish": "发布",
|
||||
"withdraw": "撤回"
|
||||
},
|
||||
"v": {
|
||||
"iState": {
|
||||
"unpublished": "未发布",
|
||||
"published": "已发布",
|
||||
"withdrawn": "已撤回"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "125c3a1c53d096f40a52f11c2fdbb998",
|
||||
namespace: "essayLabels",
|
||||
language: "zh-CN",
|
||||
module: "",
|
||||
position: "oak-app-domain/EssayLabels",
|
||||
data: {
|
||||
"name": "文章标签",
|
||||
"attr": {
|
||||
"essay": "文章",
|
||||
"label": "标签"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "28eeac0e2afb8ad3e26d008e258f29fc",
|
||||
namespace: "extraFile",
|
||||
|
|
@ -462,6 +524,22 @@ const i18ns: I18n[] = [
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "7fafae2579477593b99dded38a36611c",
|
||||
namespace: "label",
|
||||
language: "zh-CN",
|
||||
module: "",
|
||||
position: "oak-app-domain/Label",
|
||||
data: {
|
||||
"name": "文章标签",
|
||||
"attr": {
|
||||
"name": "标签名称",
|
||||
"description": "描述",
|
||||
"color": "颜色",
|
||||
"creator": "创建者"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "f3c966c0e1deb4ca4c10e10117143849",
|
||||
namespace: "livestream",
|
||||
|
|
@ -1032,34 +1110,6 @@ const i18ns: I18n[] = [
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "1b59a26937dfe86d106b3d289518d825",
|
||||
namespace: "store",
|
||||
language: "zh-CN",
|
||||
module: "",
|
||||
position: "oak-app-domain/Store",
|
||||
data: {
|
||||
"name": "门店",
|
||||
"attr": {
|
||||
"coordinate": "位置",
|
||||
"name": "名称",
|
||||
"addrDetail": "地址详情",
|
||||
"iState": "状态"
|
||||
},
|
||||
"action": {
|
||||
"online": "上线",
|
||||
"offline": "下线",
|
||||
"disable": "禁用"
|
||||
},
|
||||
"v": {
|
||||
"iState": {
|
||||
"online": "已上线",
|
||||
"offline": "已下线",
|
||||
"disabled": "已禁用"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "471a59445943904ed115e0e2eb5ffa6f",
|
||||
namespace: "subscription",
|
||||
|
|
|
|||
Loading…
Reference in New Issue