功能:完善门店能力与用户安全配置
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Front-end API wrapper for this module.
|
||||
* Call guide: import the named API object, then call the matching method from a Vue page or composable.
|
||||
*/
|
||||
import api from './index'
|
||||
import type { IdType } from '@/utils/id'
|
||||
|
||||
@@ -6,8 +10,15 @@ export interface ShopVO {
|
||||
shopName: string
|
||||
description: string
|
||||
address: string
|
||||
mapProvider?: string
|
||||
longitude?: number | string
|
||||
latitude?: number | string
|
||||
navigationUrls?: Record<string, string>
|
||||
businessHours: string
|
||||
status?: number
|
||||
authorizationExpireTime?: string
|
||||
authorizationExpired?: boolean
|
||||
authorizationStatusText?: string
|
||||
coverImageFileId?: string
|
||||
coverImageUrls?: string[]
|
||||
imageFileIds: string
|
||||
@@ -36,6 +47,7 @@ export interface CreateShopRequest {
|
||||
address: string
|
||||
businessHours: string
|
||||
status: number
|
||||
authorizationExpireTime?: string
|
||||
}
|
||||
|
||||
export interface UpdateShopRequest {
|
||||
@@ -46,8 +58,13 @@ export interface UpdateShopRequest {
|
||||
address?: string
|
||||
businessHours?: string
|
||||
status?: number
|
||||
authorizationExpireTime?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* shopApi groups all API calls for this page domain.
|
||||
* Call guide: pass the typed payload or identifier into the method below, and use the returned Promise in the page script.
|
||||
*/
|
||||
export const shopApi = {
|
||||
getAllShops: async (): Promise<ShopVO[]> => {
|
||||
return await api.get<ShopVO[]>('/shop/list/all') as unknown as ShopVO[]
|
||||
|
||||
Reference in New Issue
Block a user