import { defHttp } from '@/utils/http/axios';
enum Api {
  PageList = '/api/IdleLand/PageList',
  Detail = '/api/IdleLand/Detail',
  AddOrEdit = '/api/IdleLand/AddOrEdit',
  Delete = '/api/IdleLand/Delete',
}

export function PageList(params: {page, limit, key} ){
  return defHttp.get({ url: Api.PageList, params });
}
export function Detail(params: { id }){
  return defHttp.get({ url: Api.Detail, params });
}
export function AddOrEdit(params){
  return defHttp.post({ 
    url: Api.AddOrEdit, 
    params,
  });
}
export function Delete(params){
  return defHttp.post({ 
    url: Api.Delete, 
    params
  });
}