package com.ruoyi.erp.request;

import com.alibaba.fastjson2.JSONObject;

/**
 * 查询商品详情请求
 *
 * 对应接口：POST /api/open/product/detail
 * 请求体字段：
 * - product_id（必填）：管家商品ID
 */
public class ProductDetailQueryRequest extends ERPRequestBase {
	public ProductDetailQueryRequest(IERPAccount erpAccount) {
		super("https://open.goofish.pro/api/open/product/detail", erpAccount);
	}

	/**
 	 * 设置管家商品ID（必填）
 	 * @param productId 管家商品ID
 	 */
	public void setProductId(long productId) {
		ensureRequestBodyInitialized();
		this.requestBody.put("product_id", productId);
	}

	private void ensureRequestBodyInitialized() {
		if (this.requestBody == null) {
			this.requestBody = new JSONObject();
		}
	}
}


