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

export default {
  getAll: () => get('/tenant/getAll'),
  list: (params: object) => get('/tenant/list', params),
  get: (code: string) => get('/tenant/getInfoByCode', { code }),
  add: (data: object) => post('/tenant/add', data),
  del: (ids: number[]) => del('/tenant/del', { ids }),
  edit: (data: object) => put('/tenant/edit', data),
  editStatus: (id: number, status: number) => put('/tenant/editStatus', { id, status }),
}
