import { get, post, del, put } from '/@/utils/request';

export default {
  getList: (params?: object) => get('/totalIndex/assess/getAll', params),
  getItem: (itemCode: string) => get('/totalIndex/assess/getByItemCode', { itemCode }),
  setItem: (params?: object) => post('/totalIndex/assess/add', params),
  editItem: (params?: object) => put('/totalIndex/assess/edit', params),
  deleteItem: (params?: object) => del('/totalIndex/assess/delete', params),
  getDataSourceInfo: (params?: object) => get('/totalIndex/dataSetUp/getInfoByItemCodeAndTarget', params),
  testDataSource: (params?: object) => post('/totalIndex/dataSetUp/test', params),
  addDataSourceInfo: (params?: object) => post('/totalIndex/dataSetUp/add', params),
  editataSourceInfo: (params?: object) => put('/totalIndex/dataSetUp/edit', params),
}