gongxiangp2/lib/performance-salary-roles.ts
2026-12-03 11:45:13 +08:00

14 lines
519 B
TypeScript

export const SALARY_ROLES = [
{ key: 'ai-planning', title: '品牌创意策划' },
{ 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
}