import request from "@/http/request";

const queryStocksByPage = (params) => {
    return request({
        url: '/stock/queryStocksByPage',
        method: 'post',
        data: params
    })
}

const updateStockInfo = (params) => {
    return request({
        url: '/stock/updateStockInfo',
        method: 'post',
        data: params
    })
}

const getStockNumByGoodsId = (params) => {
    return request({
        url: '/stock/getStockNumByGoodsId',
        method: 'post',
        data: params
    })
}

const getStockUpdateRecord = (params) => {
    return request({
        url: '/stock/getStockUpdateRecord',
        method: 'post',
        data: params
    })
}

const handleExceptionStock = (params) => {
    return request({
        url: '/stock/handleExceptionStock',
        method: 'post',
        data: params
    })
}

export {
    queryStocksByPage,
    updateStockInfo,
    getStockNumByGoodsId,
    getStockUpdateRecord,
    handleExceptionStock
}