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

export default {
  list: (params: object) => get('/projects/list', params),
  getProjectResourcesByCode: (params: object) => get('/projects/getProjectResourcesByCode', params),
  detail: (code: string) => get('/projects/getByCode', { code }),
  del: (ids: number[]) => del('/projects/del', { ids }),
  bindResources: (data: object) => post('/projects/bindResources', data),
  unbindResources: (data: object) => del('/projects/unbindResources', data),
  add: (data: object) => post('/projects/add', data),
  edit: (data: object) => put('/projects/edit', data),
  editStatus: (data: object) => put('/projects/editStatus', data),
}