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

42 lines
1.0 KiB
JavaScript

import { makeAbleActionDef } from 'oak-domain/lib/actions/action';
;
const AbleActionDef = makeAbleActionDef('enabled');
const 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',
}
],
},
]
};