import { apiClient } from '../utils/apiClient'; let requestUrl = '/api/WorkArea'; // if (import.meta.env.DEV) { // requestUrl = '/api/WorkArea'; // } export const getWorkArea = async () => { return apiClient.get(`${requestUrl}/getAll`); }; // 添加工区 export const addWorkArea = async (areaName: string) => { return apiClient.post(`${requestUrl}/add`, JSON.stringify(areaName)); }; // 设置工区 export const setWorkArea = async (areaId: string) => { return apiClient.post(`${requestUrl}/set`, JSON.stringify(areaId)); };