feat(project): align store delivery pages with live APIs and geocode status

This commit is contained in:
2026-02-19 17:15:19 +08:00
parent 435626ca55
commit 3b96b3f92d
62 changed files with 6813 additions and 250 deletions

View File

@@ -1,4 +1,5 @@
import type {
GeoLocationStatus,
ServiceType,
StoreAuditStatus,
StoreBusinessStatus,
@@ -22,6 +23,22 @@ export interface StoreListItemDto {
managerName: string;
/** 门店地址 */
address: string;
/** 所在省份 */
province?: string;
/** 所在城市 */
city?: string;
/** 所在区县 */
district?: string;
/** 门店经度 */
longitude?: null | number;
/** 门店纬度 */
latitude?: null | number;
/** 地理定位状态 */
geoStatus?: GeoLocationStatus;
/** 地理定位失败原因 */
geoFailReason?: string;
/** 地理定位成功时间 */
geoUpdatedAt?: null | string;
/** 门店封面图 */
coverImage?: string;
/** 营业状态 */
@@ -117,3 +134,8 @@ export async function toggleStoreBusinessStatusApi(
) {
return requestClient.post('/store/toggle-business-status', data);
}
/** 手动重试门店地理定位 */
export async function retryStoreGeocodeApi(storeId: string) {
return requestClient.post(`/store/${storeId}/geocode/retry`);
}