oak-general-business/es/entities/Notification.js

66 lines
1.7 KiB
JavaScript

;
const IActionDef = {
stm: {
succeed: ['sending', 'success'],
fail: ['sending', 'failure'],
},
is: 'sending',
};
export const entityDesc = {
locales: {
zh_CN: {
name: '通知',
attr: {
channel: '消息渠道',
data: '消息数据',
messageSystem: '消息系统连接',
data1: '数据1',
data2: '数据2',
iState: '状态',
application: '关联应用',
templateId: '模板id'
},
action: {
succeed: '成功',
fail: '失败',
},
v: {
iState: {
sending: '发送中',
success: '发送成功',
failure: '发送失败',
},
// channel: {
// wechatPublic: '公众号',
// jPush: '极光推送',
// jim: '极光消息',
// wechatMp: '小程序',
// sms: '短信',
// email: '邮箱',
// }
}
},
},
style: {
icon: {
succeed: '#0000FF',
fail: '#FF0000',
},
color: {
iState: {
sending: '#EEE8AA',
success: '#008000',
failure: '#9A9A9A',
},
// channel: {
// wechatMp: '#008000',
// jPush: '#0000FF',
// jim: '#0000FF',
// wechatPublic: '#008000',
// sms: '#000000',
// email: '#000000',
// },
}
}
};