feat: 增加店长审核模式与门店经营有效期

This commit is contained in:
2026-10-26 21:12:50 +08:00
parent 0151367333
commit fd9ff73c00
33 changed files with 855 additions and 39 deletions
+18
View File
@@ -804,6 +804,9 @@ export interface Shop {
authorizationExpireTime?: string
authorizationExpired?: boolean
authorizationStatusText?: string
businessExpireTime?: string
businessExpired?: boolean
businessRemainingDays?: number
createTime: string
updateTime: string
}
@@ -819,6 +822,13 @@ export interface ShopListResponse {
size: number
}
export interface ShopBusinessExpiry {
shopId: IdType
businessExpireTime?: string
businessExpired?: boolean
businessRemainingDays?: number
}
/**
* Purpose: CreateShopRequest supports admin.ts by holding or executing the create shop request page or API role.
* Usage: import, call, read, or update this interface from the owning page/module while preserving the surrounding loading and permission flow.
@@ -865,6 +875,12 @@ export const adminShopApi = {
listAllShops: () => {
return adminApi.get<Shop[]>('/shops/list/all') as unknown as Promise<Shop[]>
},
listBusinessExpiries: (shopIds: IdType[]) => {
return adminApi.get<ShopBusinessExpiry[]>('/shops/business-expiries', { params: { shopIds: shopIds.join(',') } }) as unknown as Promise<ShopBusinessExpiry[]>
},
updateBusinessExpiry: (id: IdType, expireDate: string) => {
return adminApi.put<ShopBusinessExpiry>(`/shops/${id}/business-expiry`, { expireDate })
},
/**
* `createShop` 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.
@@ -1934,6 +1950,8 @@ export interface WorkbenchRegistrationApplication {
applicantNickname?: string
applicantAvatar?: string
applicantMaskedPhone?: string
contentModerationStatus?: string
contentModerationReason?: string
}
export const adminWorkbenchRegistrationApi = {