Refactor venue booth functions for outdoor fairs

- Renamed `getVenueBoothList` to `getOutdoorFairBoothMap` for clarity.
- Updated the endpoint to fetch booth maps for outdoor fairs.
- Renamed `saveVenueBoothList` to `saveOutdoorFairBoothMap` to reflect its purpose.
- Adjusted the endpoint for saving booth maps for outdoor fairs.
- Removed the redundant `getOutdoorFairBoothMap` function as it was previously defined.
This commit is contained in:
2026-06-25 16:07:43 +08:00
parent 50372da241
commit 9012b0c4a7
9 changed files with 1804 additions and 768 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -170,20 +170,6 @@ export async function addVenueInfoDictOption(data: VenueInfoDictForm) {
});
}
export async function getVenueBoothList(venueId: number) {
return request<{ code: number; msg?: string; data: VenueBoothItem[] }>(
`${CMS_VENUE_INFO_BASE}/${venueId}/booths`,
{ method: 'GET' },
);
}
export async function saveVenueBoothList(venueId: number, data: VenueBoothItem[]) {
return request<VenueInfoCommonResult>(`${CMS_VENUE_INFO_BASE}/${venueId}/booths`, {
method: 'POST',
data,
});
}
export async function getOutdoorFairBoothMap(fairId: number) {
return request<{ code: number; msg?: string; data: VenueBoothItem[] }>(
`${CMS_VENUE_INFO_BASE}/fair/${fairId}/booth-map`,
@@ -191,6 +177,13 @@ export async function getOutdoorFairBoothMap(fairId: number) {
);
}
export async function saveOutdoorFairBoothMap(fairId: number, data: VenueBoothItem[]) {
return request<VenueInfoCommonResult>(`${CMS_VENUE_INFO_BASE}/fair/${fairId}/booths`, {
method: 'POST',
data,
});
}
export async function bookOutdoorFairBooth(
fairId: number,
data: { boothId: number; companyId: number; companyName: string; status?: string },