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

// 查询当前店铺资料
export function getSellerShopProfile() {
  return request({
    url: '/agri/seller/shop',
    method: 'get',
    headers: sellerShopHeaders()
  })
}

// 修改当前店铺资料
export function updateSellerShopProfile(data) {
  return request({
    url: '/agri/seller/shop',
    method: 'put',
    data: data,
    headers: sellerShopHeaders()
  })
}

// 查询当前店铺员工概览
export function getSellerShopEmployeeStats() {
  return request({
    url: '/agri/seller/shop/employeeStats',
    method: 'get',
    headers: sellerShopHeaders()
  })
}
