1 |
- import{r as t}from"./index.DVxLrJ4t.js";const s="/api/system/manageclass/week_schedule/",o="/api/system/manageclass/";function f(e){return t({url:s+"?week_offset=1",method:"get",params:e})}function h(e){return t({url:s+e+"/",method:"get"})}function b(e){return t({url:o,method:"post",data:e})}function g(e){return t({url:o+e.id+"/",method:"put",data:e})}function y(){return t({url:"/api/system/app_user/?user_type=1",method:"get"})}function _(e){return t({url:s+"?week_offset="+e,method:"get"})}async function L(e){const u=e.data.schedule;return e.data.time_labels.map((c,i)=>{var n;const r={timeLabel:c};for(let a=1;a<=7;a++){const l=((n=u[a])==null?void 0:n[i+1])||[];r[`day${a}`]=l}return r})}export{b as A,h as G,g as U,f as a,_ as b,L as c,y as g};
|