oak-general-business/lib/entities/Message.js

84 lines
2.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.entityDesc = exports.VisitActionDef = exports.IActionDef = void 0;
;
exports.IActionDef = {
stm: {
succeed: ['sending', 'success'],
fail: ['sending', 'failure'],
},
};
exports.VisitActionDef = {
stm: {
visit: ['unvisited', 'visited'],
},
is: 'unvisited',
};
exports.entityDesc = {
locales: {
zh_CN: {
name: '消息',
attr: {
entity: '关联对象',
entityId: '关联对象ID',
restriction: '限制',
title: '标题',
content: '内容',
user: '关联用户',
type: '消息类型',
weight: '优先级',
iState: '发送状态',
visitState: '访问状态',
router: '目标路由',
data: '透传数据',
platform: '平台',
channels: '渠道',
},
action: {
succeed: '成功',
fail: '失败',
visit: '阅读',
},
v: {
iState: {
sending: '发送中',
success: '发送成功',
failure: '发送失败',
},
visitState: {
unvisited: '未读',
visited: '已读',
},
weight: {
high: '高',
medium: '中',
low: '低',
},
},
},
},
style: {
icon: {
succeed: '#0000FF',
fail: '#FF0000',
visit: '#00800',
},
color: {
visitState: {
unvisited: '#0000FF',
visited: '#ADD8E6',
},
iState: {
sending: '#EEE8AA',
success: '#008000',
failure: '#FF0000',
},
weight: {
high: '#FF0000',
medium: '#0000FF',
low: '#A9A9A9',
}
}
}
};