14 lines
518 B
TypeScript
14 lines
518 B
TypeScript
export const SALARY_ROLES = [
|
|
{ key: 'ai-planning', title: 'AI全案策划岗' },
|
|
{ key: 'photography', title: '摄影中心岗' },
|
|
{ key: 'spatial-visual', title: '空间视觉岗' },
|
|
{ key: 'management', title: '管理岗' },
|
|
{ key: 'ai-technical', title: 'AI技术设计师岗' },
|
|
] as const
|
|
|
|
export type SalaryRole = typeof SALARY_ROLES[number]['key']
|
|
|
|
export function resolveSalaryRole(value: unknown): SalaryRole {
|
|
return SALARY_ROLES.find((role) => role.key === value)?.key ?? SALARY_ROLES[0].key
|
|
}
|