import request from '@/utils/request'
import { sellerShopHeaders } from '@/utils/sellerShop'

// 查询当前店铺配送设置
export function getSellerDeliverySetting() {
  return request({
    url: '/agri/seller/delivery',
    method: 'get',
    headers: sellerShopHeaders()
  })
}

// 保存当前店铺配送设置（Upsert）
export function saveSellerDeliverySetting(data) {
  return request({
    url: '/agri/seller/delivery',
    method: 'put',
    data: data,
    headers: sellerShopHeaders()
  })
}
