workbenches.uts 691 B

12345678910111213141516171819202122232425262728293031
  1. // 导入请求
  2. import { request } from '../request.uts'
  3. export function getAllData(params : any) : Promise<any> {
  4. return request({
  5. url: "/api/coach/v3/orders/statistics",
  6. method: "GET",
  7. params: params
  8. })
  9. }
  10. export function editCoachWorkState(data : any) : Promise<any> {
  11. return request({
  12. url: "/api/coach/v3/account/work-status",
  13. method: "POST",
  14. data: data
  15. })
  16. }
  17. export function editWorkTimeSetting(data : any) : Promise<any> {
  18. return request({
  19. url: "/api/coach/v3/account/schedule",
  20. method: "POST",
  21. data: data
  22. })
  23. }
  24. export function toggleProject(data : any) : Promise<any> {
  25. return request({
  26. url: "/api/coach/v3/projects/open",
  27. method: "POST",
  28. data: data
  29. })
  30. }