// 导入请求 import { request } from '../request.uts' // 基础 URL 配置 // #ifdef APP-ANDROID const BASE_URL = 'http://192.168.0.9:8001' // #endif // #ifdef APP-IOS const BASE_URL = 'http://192.168.0.9:8001' // #endif // #ifdef H5 const BASE_URL = '' // #endif // #ifdef MP-WEIXIN const BASE_URL = 'http://192.168.0.9:8001' // #endif // #ifdef MP-HARMONY const BASE_URL = 'http://192.168.0.9:8001' // #endif export function getAllData(params : any) : Promise { return request({ url: `${BASE_URL}/api/coach/v3/orders/statistics`, method: "GET", params: params }) } export function editCoachWorkState(data : any) : Promise { return request({ url: `${BASE_URL}/api/coach/v3/account/work-status`, method: "POST", data: data }) } export function editWorkTimeSetting(data : any) : Promise { return request({ url: `${BASE_URL}/api/coach/v3/account/schedule`, method: "POST", data: data }) } export function toggleProject(data : any) : Promise { return request({ url: `${BASE_URL}/api/coach/v3/projects/open`, method: "POST", data: data }) }