// 医疗机构函数库
import apis from "../apis_moudles/index";
import req from "../request";

//医疗机构列表
const PROVIDERDETAIL = (data) => {
  return req.post(apis.providerDetail, data);
};
//医疗机构修改
const PROVIDERUPDATE = (data) => {
  return req.post(apis.providerUpdate, data);
};

//医生列表
const DOCTORLIST = (data) => {
  return req.post(apis.doctorList, data);
};

//删除医生
const DOCTORDELETE = (data) => {
  return req.post(apis.doctorDelete, data);
};

//新增医生
const DOCTORCREATE = (data) => {
  return req.post(apis.doctorCreate, data);
};

//修改医生
const DOCTORUPDATE = (data) => {
  return req.post(apis.doctorUpdate, data);
};


/*-------------保险公司-----------------*/
//保险公司列表
const PAYORLIST = (data) => {
  return req.post(apis.payorList, data);
};

//新增保险公司
const CREATEPAY = (data) => {
  return req.post(apis.createPayor, data);
};

//保险公司详情
const PAYORDETAIL = (data) => {
  return req.post(apis.payorDetail, data);
};

//保险公司修改
const PAYORUPDATE = (data) => {
  return req.post(apis.payorUpdate, data);
};

//保险公司删除
const PAYORDELETE = (data) => {
  return req.post(apis.payorDelete, data);
};

/*-------------折扣信息-----------------*/
//新增折扣信息
const PAYORADDDISCOUNT = (data) => {
  return req.post(apis.payorAddDiscount, data);
};
//编辑折扣信息
const PAYORADDDISCOUNTBENEFIT = (data) => {
  return req.post(apis.payorAddDiscountBenefit, data);
};
//删除折扣信息
const PAYORDISCOUNTDELETE = (data) => {
  return req.post(apis.payorDiscountDelete, data);
};

/*-------------科室信息-----------------*/
//创建科室
const SPECIALTYCREATE = (data) => {
  return req.post(apis.specialtyCreate, data);
};
//修改科室
const SPECIALTYUPDATE = (data) => {
  return req.post(apis.specialtyUpdate, data);
};
//科室列表
const SPECIALTYLISTPAGE = (data) => {
  return req.post(apis.specialtyListPage, data);
};
//科室删除
const SPECIALTYDELETE = (data) => {
  return req.post(apis.specialtyDelete, data);
};

// 对象数组
export default {
  PROVIDERDETAIL,
  PROVIDERUPDATE,
  DOCTORLIST,
  DOCTORDELETE,
  DOCTORCREATE,
  DOCTORUPDATE,
  PAYORLIST,
  CREATEPAY,
  PAYORDETAIL,
  PAYORUPDATE,
  PAYORDELETE,
  PAYORADDDISCOUNT,
  PAYORADDDISCOUNTBENEFIT,
  PAYORDISCOUNTDELETE,
  SPECIALTYCREATE,
  SPECIALTYUPDATE,
  SPECIALTYLISTPAGE,
  SPECIALTYDELETE
};
