/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-03-03 16:31:27
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2024-12-19 16:47:46
 * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/service.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */



import { request } from 'umi';

//获取table列表数据

export const getTableDataReq = (params?:any) => {
  return request<any>('/medical/qualificationManage/listMyAvailableQualification', {
    method: 'GET',
    params:{...params}
  });
};

//获取登录用户信息
export const getMyInfoReq = () => {
  return request<any>('/medical/qualificationManage/getMyInfo', {
    method: 'GET',
  });
};


//新增用户附件信息数据
export type AddTableDataType = {
       
}

export const addData = (data:AddTableDataType) => {
  return request('/medical/qualificationManage/saveDoctorAttachment', {
    method: 'POST',
    data
  });
};

//编辑y用户附件信息数据
export type EditTableDataType = {
       
}

export const editData = (data:EditTableDataType) => {
  return request('/medical/qualificationManage/editDoctorAttachment', {
    method: 'POST',
    data
  });
};

//删除用户附件
export const delData = (id:number) => {
  return request('/medical/qualificationManage/deleteDoctorAttachment', {
    method: 'POST',
    params:{id}
  });
};

//获取资质授权历史记录
export const getQualificationHistoryReq = (qualificationCode: string) => {
  return request<any>('/medical/qualificationManage/getMyQualificationHistory', {
    method: 'GET',
    params: { qualificationCode }
  });
};
















