杂务:整理文档并收口 YumiNail 修复

This commit is contained in:
xiaowang
2026-05-21 18:43:59 +08:00
parent 3797938616
commit 9227ec6175
362 changed files with 8358 additions and 19928 deletions
+56 -2
View File
@@ -588,7 +588,7 @@ export const adminProductApi = {
* Call guide: supply the parameters below, await the returned Promise, and handle loading / error UI in the caller.
* @param params: { page: number; size: number; keyword?: string; shopId?: IdType } caller-supplied value for `params: { page: number; size: number; keyword?: string; shopId?: IdType }`
*/
listProducts: (params: { page: number; size: number; keyword?: string; shopId?: IdType }) => {
listProducts: (params: { page: number; size: number; keyword?: string; shopId?: IdType; tagId?: IdType; minPrice?: number; maxPrice?: number; createdFrom?: string; createdTo?: string }) => {
return adminApi.get<{ list: Product[]; total: number; page: number; size: number }>('/product/list', { params })
},
/**
@@ -639,6 +639,14 @@ export interface Shop {
coverImageUrls?: string[]
imageFileIds?: string
imageUrls?: string[]
themePrimaryColor?: string
themeSecondaryColor?: string
themeAccentColor?: string
themePageBgColor?: string
themeCardBgColor?: string
themeBackgroundImageFileId?: string
authorizationStartDate?: string
authorizationDays?: number
authorizationExpireTime?: string
authorizationExpired?: boolean
authorizationStatusText?: string
@@ -663,7 +671,15 @@ export interface CreateShopRequest {
businessHours: string
coverImageFileId?: string
imageFileIds?: string
themePrimaryColor?: string
themeSecondaryColor?: string
themeAccentColor?: string
themePageBgColor?: string
themeCardBgColor?: string
themeBackgroundImageFileId?: string
status?: number
authorizationStartDate?: string
authorizationDays?: number
authorizationExpireTime?: string
}
@@ -982,8 +998,24 @@ export interface OrderVO {
artistId?: IdType
artistName?: string
totalAmount: number
actualAmount?: number
discountAmount: number
payAmount: number
couponName?: string
customerName?: string
customerPhone?: string
customerNickname?: string
customerPhoneMasked?: string
items?: Array<{
id: IdType
productId: IdType
productTitle?: string
artistId?: IdType
artistName?: string
appointmentTime?: string
price: number
quantity: number
}>
status: number
statusText?: string
remark?: string
@@ -1011,7 +1043,7 @@ export const adminOrderApi = {
* @param status: number caller-supplied value for `status: number`
*/
updateOrderStatus: (id: IdType, status: number) => {
return adminApi.put<boolean>(`/order/update-status/${id}`, { status })
return adminApi.put<boolean>(`/order/update-status/${id}`, {}, { params: { status } })
}
}
@@ -1037,6 +1069,16 @@ export interface DashboardStats {
totalProducts: number
totalShops: number
todayOrders: number
totalOrderAmount?: number
todayOrderAmount?: number
weekOrderAmount?: number
totalCustomers?: number
totalArtists?: number
newCustomersToday?: number
newCustomers7Days?: number
newOrders7Days?: number
pendingOrders?: number
completedOrders?: number
hotProducts: HotProductVO[]
recentActivities: RecentActivityVO[]
}
@@ -1306,6 +1348,15 @@ export const adminVipRechargePlanApi = {
*/
updateStatus: (id: IdType, status: number) => {
return adminApi.put<boolean>(`/vip-recharge-plan/admin/${id}/status`, null, { params: { status } })
},
/**
* `listVipLevelOptions` API call. Use this method from the page script to invoke the backend endpoint tied to this feature.
* Call guide: supply the parameters below, await the returned Promise, and handle loading / error UI in the caller.
* @param shopId?: IdType caller-supplied value for `shopId?: IdType`
*/
listVipLevelOptions: (shopId?: IdType) => {
const params = shopId ? { shopId } : {}
return adminApi.get<string[]>('/vip-recharge-plan/admin/vip-level-options', { params }) as unknown as Promise<string[]>
}
}
@@ -1410,6 +1461,9 @@ export const adminSystemParameterConfigApi = {
},
getTencentMapKey: () => {
return adminApi.get<{ key: string }>('/system-parameter-config/admin/tencent-map') as unknown as Promise<{ key: string }>
},
getMapConfig: () => {
return adminApi.get<{ provider: 'TENCENT' | 'AMAP'; tencentWebKey?: string; amapWebKey?: string; amapMiniKey?: string }>('/system-parameter-config/admin/map-config') as unknown as Promise<{ provider: 'TENCENT' | 'AMAP'; tencentWebKey?: string; amapWebKey?: string; amapMiniKey?: string }>
}
}