49 lines
854 B
PHP
49 lines
854 B
PHP
![]() |
<?php
|
||
|
/**
|
||
|
* TOP API: tmall.product.match.schema.get request
|
||
|
*
|
||
|
* @author auto create
|
||
|
* @since 1.0, 2021.11.23
|
||
|
*/
|
||
|
class TmallProductMatchSchemaGetRequest
|
||
|
{
|
||
|
/**
|
||
|
* 商品发布的目标类目,必须是叶子类目
|
||
|
**/
|
||
|
private $categoryId;
|
||
|
|
||
|
private $apiParas = array();
|
||
|
|
||
|
public function setCategoryId($categoryId)
|
||
|
{
|
||
|
$this->categoryId = $categoryId;
|
||
|
$this->apiParas["category_id"] = $categoryId;
|
||
|
}
|
||
|
|
||
|
public function getCategoryId()
|
||
|
{
|
||
|
return $this->categoryId;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName()
|
||
|
{
|
||
|
return "tmall.product.match.schema.get";
|
||
|
}
|
||
|
|
||
|
public function getApiParas()
|
||
|
{
|
||
|
return $this->apiParas;
|
||
|
}
|
||
|
|
||
|
public function check()
|
||
|
{
|
||
|
|
||
|
RequestCheckUtil::checkNotNull($this->categoryId,"categoryId");
|
||
|
}
|
||
|
|
||
|
public function putOtherTextParam($key, $value) {
|
||
|
$this->apiParas[$key] = $value;
|
||
|
$this->$key = $value;
|
||
|
}
|
||
|
}
|