feat(admin): 新增后台公告管理与发布归档
This commit is contained in:
@@ -197,3 +197,24 @@ export const financeStatusMap: Record<string, StatusMeta> = {
|
||||
settlement_diff: { label: '结算差异', tone: 'orange' },
|
||||
offline_settlement_pending: { label: '待线下结算', tone: 'gold' },
|
||||
}
|
||||
|
||||
export const announcementStatusMap: Record<string, StatusMeta> = {
|
||||
draft: { label: '草稿', tone: 'default' },
|
||||
published: { label: '已发布', tone: 'success' },
|
||||
archived: { label: '已归档', tone: 'default' },
|
||||
}
|
||||
|
||||
export const announcementCategoryMap: Record<string, string> = {
|
||||
notice: '通知',
|
||||
tutorial: '教程',
|
||||
rule: '规则',
|
||||
faq: '常见问题',
|
||||
}
|
||||
|
||||
export const announcementStatusOptions = Object.entries(announcementStatusMap).map(
|
||||
([value, meta]) => ({ value, label: meta.label })
|
||||
)
|
||||
|
||||
export const announcementCategoryOptions = Object.entries(announcementCategoryMap).map(
|
||||
([value, label]) => ({ value, label })
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user