You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
539 B
TypeScript

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