/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2022-07-16 10:01:55
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2023-01-10 13:16:14
 * @FilePath: /KC-MiddlePlatform/src/service/department.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */



//科室相关

import { request } from 'umi';

//获取医院科室

export type DepartmentItemType = {
      id:number;
      hospId:string;
      code:string;//科室代码
      name:string;
      parentId:number;
      computeId:number;
      delFlag:number;
}
export const getHospDepartment = async () => {
    return request<DepartmentItemType[]>('/centerSys/sysdepartment/getDepartmentUser', {
      method: 'GET',
    });
};
