/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-03-03 16:31:27
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2024-12-06 14:07:47
 * @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/listByQualification', {
    method: 'GET',
    params:{...params}
  });
};







//编辑表格数据

export type EditTableDataType = {
 
}

export const editData = (data:EditTableDataType) => {
  return request('/medical/qualificationManage/adjust', {
    method: 'POST',
    data
  });
};
//重新授权
export const reAuthData = (data:EditTableDataType) => {
  return request('/medical/qualificationManage/reAuthorize', {
    method: 'POST',
    data
  });
};

// 获取资质申请列表
export const getQualificationApplyList = (qualificationCode: string) => {
  return request<any>('/medical/qualificationManage/listQualificationApply', {
    method: 'GET',
    params: { qualificationCode }
  });
};















