import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/get/order_details',
    method: 'post',
    data,
  })
}
// 上门洗护单
export function getdoorList(data) {
  return request({
    url: '/get/home_service_orders',
    method: 'post',
    data,
  })
}

// 注册用户
export function getUsere(data) {
  return request({
    url: '/get/users',
    method: 'post',
    data,
  })
}

// 商城列表
export function getmallList(data) {
  return request({
    url: '/get/product_orders',
    method: 'post',
    data,
  })
}

// 小哇列表
export function waList(data) {
  return request({
    url: '/get/waInfo',
    method: 'post',
    data,
  })
}



export function  goodsListList(data) {
  return request({
    url: '/get/membership_instances',
    method: 'post',
    data,
  })
}

export function  walletList(data) {
  return request({
    url: '/get/wallet_instances',
    method: 'post',
    data,
  })
}

export function archiveList(data) {
  return request({
    url: '/get/pets',
    method: 'post',
    data,
  })
}

export function commentList(data) {
  return request({
    url: '/get/comments_info',
    method: 'post',
    data,
  })
}

export function messageList(data) {
  return request({
    url: '/get/notice',
    method: 'post',
    data,
  })
}

export function couponList(data) {
  return request({
    url: '/get/coupons',
    method: 'post',
    data,
  })
}

export function couponPackage(data) {
  return request({
    url: '/get/products',
    method: 'post',
    data,
  })
}

/** 商城订单列表 pageNo、pageSize 必传；status_Inquiry、time 为搜索项 */
export function getProductOrders(data) {
  return request({
    url: '/get/product_orders',
    method: 'post',
    data,
  })
}

export function unreadOtice(data) {
  return request({
    url: '/unread_notice',
    method: 'post',
    data,
  })
}

export function markNotice(data) {
  return request({
    url: '/update/notice',
    method: 'post',
    data,
  })
}





export function  recordList(data) {
  return request({
    url: '/get/delivery',
    method: 'post',
    data,
  })
}

export function  couponstList(data) {
  return request({
    url: '/get/coupons',
    method: 'post',
    data,
  })
}

export function  additional(data) {
  return request({
    url: '/get/additional_services',
    method: 'post',
    data,
  })
}


export function distributeEdit(data) {
  return request({
    url: '/delivery/coupons',
    method: 'post',
    data,
  })
}
// 洗护订单导出
export function exportUserOperateAdmin(data, headers) {
  return request({
    url: '/download/order_details',
    method: 'get',
    data: data,
  })
}

// 上门订单导出
export function expordoortodoorOrdern(data, headers) {
  return request({
    url: '/download/home_service_orders',
    method: 'get',
    data: data,
  })
}
// 商城订单导出
export function expormallOrdern(data, headers) {
  return request({
    url: '/download/product_orders',
    method: 'get',
    data: data,
  })
}

// 注册用户导出
export function exportRegisterUser(data, headers) {
  return request({
    url: '/download/users',
    method: 'get',
    data: data,
  })
}

export function exportUserMembership(data, headers) {
  return request({
    url: '/download/membership_instances',
    method: 'get',
    data: data,
  })
}

export function doEdit(data) {
  return request({
    url: '/update/order_details',
    method: 'post',
    data,
  })
}

export function additionalEdit(data) {
  return request({
    url: '/update/additional_services',
    method: 'post',
    data,
  })
}

export function addPackage(data) {
  return request({
    url: '/add/package',
    method: 'post',
    data,
  })
}

// 商城列表编辑接口
export function addproduct(data) {
  return request({
    url: '/update/product',
    method: 'post',
    data,
  })
}

// 商城订单编辑
export function addOrder(data) {
  return request({
    url: '/update/product_order_status',
    method: 'post',
    data,
  })
}

export function editPackage(data) {
  return request({
    url: '/edit/package',
    method: 'post',
    data,
  })
}

export function deletePackage(data) {
  return request({
    url: '/delete/package',
    method: 'post',
    data,
  })
}

// 商品列表
export function deleteProduct(data) {
  return request({
    url: '/update/product_status',
    method: 'post',
    data,
  })
}




export function doDelete(data) {
  return request({
    url: '/table/doDelete',
    method: 'post',
    data,
  })
}
