// 校车点名 api
import request from "@/utils/request";

export const xcdmApi = {
  mp_xcdmHomep_load: (data) => {
    return request.post(`/service?ssServ=mp_xcdmHomep_load`,
      data,
      {
        loading: true,
        formData: true,
      }
    );
  },
  // 切换校车成员状态
  mp_xcdmHomep_swState: (data) => {
    return request.post(`/service?ssServ=mp_xcdmHomep_swState`,
      data,
      {
        loading: false,
        formData: true,
      }
    );
  },
  // 提交
  mp_xcdmHomep_subm: (data) => {
    return request.post(`/service?ssServ=mp_xcdmHomep_subm`,
      data,
      {
        loading: true,
        formData: true,
      }
    );
  },
  // 保存校车电话记录
  mp_xcdmHomep_saveXcdhjl: (data) => {
    return request.post(`/service?ssServ=mp_xcdmHomep_saveXcdhjl`,
      data,
      {
        loading: false,
        formData: true,
      }
    );
  },
}

