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

57 lines
1.4 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.entityDesc = exports.AbleActionDef = void 0;
const action_1 = require("oak-domain/lib/actions/action");
;
exports.AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
exports.entityDesc = {
locales: {
zh_CN: {
name: '手机',
attr: {
ableState: '是否可用',
mobile: '手机号',
user: '关联用户',
tokens: '相关令牌',
},
action: {
enable: '启用',
disable: '禁用',
},
v: {
ableState: {
enabled: '可用的',
disabled: '禁用的',
}
}
},
},
indexes: [
{
name: 'index_mobile_ableState',
attributes: [
{
name: 'mobile',
direction: 'ASC',
},
{
name: 'ableState',
direction: 'ASC',
}
],
},
],
style: {
icon: {
enable: '',
disable: '',
},
color: {
ableState: {
enabled: '#008000',
disabled: '#A9A9A9'
}
}
}
};