buildMerchantGoodsStockMonthReportStockMoveParams.js
1.38 KB
/* eslint-disable jsdoc/require-returns-description */
/**
* @typedef {Object} MerchantGoodsStockMonthReportStockMoveParams
* @property {number} upgradeGoodsId [optional] - 旧产品ID(dj_car_life_upgrade_goods.id)
* @property {number} yqMerchantId [optional] - 园区店商户号
* @property {number} targetUpgradeGoodsId [optional] - 新产品ID
*/
/**
* @typedef {Object} MerchantGoodsStockMonthReportStockMoveRow
* @property {string} errId - 错误码
* @property {boolean} data - 成功返回数据
*/
/**
* UI/表格参数 → dj.api.smartcarlife.MerchantGoodsStockMonthReport.stockMove 请求体
* @param {MerchantGoodsStockMonthReportStockMoveParams} [params]
* @returns {MerchantGoodsStockMonthReportStockMoveParams}
* @see __contracts__/dj_api_smartcarlife_MerchantGoodsStockMonthReport_stockMove.contract.md
*/
export function buildMerchantGoodsStockMonthReportStockMoveParams(params = {}) {
const payload = {};
if (params.upgradeGoodsId != null && params.upgradeGoodsId !== "") {
payload.upgradeGoodsId = params.upgradeGoodsId;
}
if (params.yqMerchantId != null && params.yqMerchantId !== "") {
payload.yqMerchantId = params.yqMerchantId;
}
if (params.targetUpgradeGoodsId != null && params.targetUpgradeGoodsId !== "") {
payload.targetUpgradeGoodsId = params.targetUpgradeGoodsId;
}
return payload;
}
export default buildMerchantGoodsStockMonthReportStockMoveParams;