商品已完成优化

This commit is contained in:
yml2213
2026-06-27 23:01:03 +08:00
parent fed7d6af71
commit 21aabd77f1
12 changed files with 148 additions and 10 deletions
+8 -1
View File
@@ -1,4 +1,11 @@
export const listingStatuses = ['draft', 'published', 'rented', 'offline', 'abnormal'] as const
export const listingStatuses = [
'draft',
'published',
'rented',
'offline',
'completed',
'abnormal',
] as const
export type ListingStatus = (typeof listingStatuses)[number]
export const listingReviewStatuses = ['none', 'pending', 'approved', 'rejected'] as const
@@ -18,6 +18,7 @@ const listingStatusMap: Record<ListingStatus, string> = {
published: '已上架',
rented: '租用中',
offline: '已下架',
completed: '已完成',
abnormal: '异常',
}