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

// 实时库存列表
export function listSellerStockQuery(query) {
  return request({
    url: '/agri/seller/stock/query/list',
    method: 'get',
    params: query,
    headers: sellerShopHeaders()
  })
}

// 出入库明细（按商品）
export function listSellerStockQueryLogs(goodsId) {
  return request({
    url: '/agri/seller/stock/query/' + goodsId + '/logs',
    method: 'get',
    headers: sellerShopHeaders()
  })
}
