/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-03-03 16:31:27
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2023-12-07 15:01:32
 * @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 getAccountProductConnectList = (params: any) => {
  return request('/costAccount/accountProduct/list', {
    method: 'GET',
    params: { ...params },
  });
};

//获取责任中心对应可绑定科室列表
export const getAccountProductConnectableList = (params: any) => {
  return request('/costAccount/product/getProducts', {
    method: 'GET',
    params: { ...params },
  });
};

//保存绑定信息
export const saveAccountProductConnected = (body: any) => {
  return request('/costAccount/accountProduct/save', {
    method: 'POST',
    data: { ...body },
  });
};
