feat(admin): 新增后台系统配置管理

This commit is contained in:
yml2213
2026-10-30 13:32:34 +08:00
parent 1acf433611
commit df251c2c3c
10 changed files with 650 additions and 6 deletions
+26
View File
@@ -310,3 +310,29 @@ export const auditBizTypeOptions = Object.entries(auditBizTypeMap).map(([value,
value,
label,
}))
export const systemConfigCategoryMap: Record<string, string> = {
chat: '聊天与群组',
distribution: '分销',
handoff: '交接与超时',
integration: '第三方集成',
listing: '商品发布',
mobile: '移动端首页',
order: '订单',
profile: '个人中心',
renter: '租客成长',
sms: '短信',
}
export const systemConfigCategoryOptions = Object.entries(systemConfigCategoryMap).map(
([value, label]) => ({ value, label })
)
export function systemConfigCategory(key: string) {
return key.split('.')[0] || 'other'
}
export function systemConfigCategoryLabel(key: string) {
const category = systemConfigCategory(key)
return systemConfigCategoryMap[category] ?? category
}