feat: migrate app routes and business modules
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
const createFrozenOptions = (options) =>
|
||||
Object.freeze(options.map((option) => Object.freeze(option)))
|
||||
|
||||
export const LINEAGE_RELATION_TYPE = Object.freeze({
|
||||
FATHER: 'FATHER',
|
||||
MOTHER: 'MOTHER',
|
||||
SPOUSE: 'SPOUSE',
|
||||
SIBLING: 'SIBLING',
|
||||
SON: 'SON',
|
||||
DAUGHTER: 'DAUGHTER'
|
||||
})
|
||||
|
||||
export const LINEAGE_RELATION_OPTIONS = createFrozenOptions([
|
||||
{ label: '父亲', value: LINEAGE_RELATION_TYPE.FATHER },
|
||||
{ label: '母亲', value: LINEAGE_RELATION_TYPE.MOTHER },
|
||||
{ label: '配偶', value: LINEAGE_RELATION_TYPE.SPOUSE },
|
||||
{ label: '兄弟姐妹', value: LINEAGE_RELATION_TYPE.SIBLING },
|
||||
{ label: '儿子', value: LINEAGE_RELATION_TYPE.SON },
|
||||
{ label: '女儿', value: LINEAGE_RELATION_TYPE.DAUGHTER }
|
||||
])
|
||||
|
||||
export const LINEAGE_PERSON_OPTIONS = Object.freeze({
|
||||
sex: createFrozenOptions([
|
||||
{ label: '男', value: '0' },
|
||||
{ label: '女', value: '1' },
|
||||
{ label: '未知', value: '2' }
|
||||
]),
|
||||
lunar: createFrozenOptions([
|
||||
{ label: '否', value: '0' },
|
||||
{ label: '是', value: '1' }
|
||||
]),
|
||||
personStatus: createFrozenOptions([
|
||||
{ label: '健在', value: '0' },
|
||||
{ label: '已故', value: '1' },
|
||||
{ label: '未知', value: '2' }
|
||||
]),
|
||||
bindingMode: createFrozenOptions([
|
||||
{ label: '不绑定账号', value: 'NONE' },
|
||||
{ label: '绑定我的账号', value: 'SELF' },
|
||||
{ label: '绑定指定成员', value: 'SPECIFIED' }
|
||||
])
|
||||
})
|
||||
Reference in New Issue
Block a user