import request from '@/utils/request'

export function page (pageParam) {
  return request({
    url: '/tmerclub_admin/ma/ShopRedundAddr/page',
    method: 'get',
    params: pageParam
  })
}

export function get (shopRefundAddrId) {
  return request({
    url: '/tmerclub_admin/ma/ShopRedundAddr',
    method: 'get',
    params: {
      shopRefundAddrId
    }
  })
}

export function save (data) {
  return request({
    url: '/tmerclub_admin/ma/ShopRedundAddr',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/tmerclub_admin/ma/ShopRedundAddr',
    method: 'put',
    data
  })
}

export function deleteById (shopRefundAddrId) {
  return request({
    url: '/tmerclub_admin/ma/ShopRedundAddr',
    method: 'delete',
    params: {
      shopRefundAddrId
    }
  })
}

export function list () {
  return request({
    url: '/tmerclub_admin/ma/ShopRedundAddr/list',
    method: 'get'
  })
}
