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:
File diff suppressed because it is too large
Load Diff
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user