import request, { download, downloadFile } from '@/utils/request';
import { AxiosPromise } from 'axios';
// 查询专家信息列表
export const expertList = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPerson/list',
        method: 'get',
        params: query
    });
};
// 新增专家信息
export const expertPersonAdd = (data: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPerson/addPerson',
        method: 'post',
        data
    });
};
// 修改专家信息
export const expertPersonUpdate = (data: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPerson/editPerson',
        method: 'post',
        data
    });
};
// 下架专家信息
export const expertPersonOff = (id: any): AxiosPromise => {
    return request({
        url: `/dgtmedicine/expertPerson/unpublish/${id}`,
        method: 'get'
    });
};
// 上架专家信息
export const expertPersonOn = (id: any): AxiosPromise => {
    return request({
        url: `/dgtmedicine/expertPerson/publish/${id}`,
        method: 'get'
    });
};
// 获取专家信息详细信息
export const expertPersonDetail = (id: any): AxiosPromise => {
    return request({
        url: `/dgtmedicine/expertPerson/getInfo/${id}`,
        method: 'get'
    });
};
// 删除专家信息
export const expertPersonDelete = (id: any): AxiosPromise => {
    return request({
        url: `/dgtmedicine/expertPerson/delPerson/${id}`,
        method: 'get'
    });
};
// 专家统计
export const expertPersonCount = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPerson/queryPersonCount',
        method: 'get',
        params: query
    });
};
// 专家抽取统计
export const queryChooseCount = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertChoose/queryChooseCount',
        method: 'get',
        params: query
    });
};
// 查询专家抽取事项信息列表
export const expertItemList = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertChoose/list',
        method: 'get',
        params: query
    });
};

// 获取专家抽取事项信息详细信息
export const expertChooseDetail = (id: any): AxiosPromise => {
    return request({
        url: `/dgtmedicine/expertChoose/getInfo/${id}`,
        method: 'get'
    });
};
// 事项审批
export const expertChooseApprove = (data: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertChoose/approvalChoose',
        method: 'post',
        data
    });
};
// 专家组统计
export const expertGroupCount = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPerson/queryPersonGroupCount',
        method: 'get'
    });
};
// 查询专家抽取关联信息列表
export const expertChooseRelationList = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPersonRef/listExpertPersonRef',
        method: 'get',
        params: query
    });
};
// 查询专家人员被抽取记录
export const expertChooseHistory = (query?: any): AxiosPromise => {
    return request({
        url: '/dgtmedicine/expertPersonRef/queryChooseInfoByPerson',
        method: 'get',
        params: query
    });
};
