99 lines
1.8 KiB
PHP
99 lines
1.8 KiB
PHP
![]() |
<?php
|
|||
|
/**
|
|||
|
* TOP API: alibaba.gpu.schema.add request
|
|||
|
*
|
|||
|
* @author auto create
|
|||
|
* @since 1.0, 2021.11.22
|
|||
|
*/
|
|||
|
class AlibabaGpuSchemaAddRequest
|
|||
|
{
|
|||
|
/**
|
|||
|
* 品牌ID
|
|||
|
**/
|
|||
|
private $brandId;
|
|||
|
|
|||
|
/**
|
|||
|
* 叶子类目ID
|
|||
|
**/
|
|||
|
private $leafCatId;
|
|||
|
|
|||
|
/**
|
|||
|
* 当前用户所在渠道如0代表天猫,8代表淘宝
|
|||
|
**/
|
|||
|
private $providerId;
|
|||
|
|
|||
|
/**
|
|||
|
* 根据alibaba.gpu.add.schema.get获取的规则提交上来的schema
|
|||
|
**/
|
|||
|
private $schemaXmlFields;
|
|||
|
|
|||
|
private $apiParas = array();
|
|||
|
|
|||
|
public function setBrandId($brandId)
|
|||
|
{
|
|||
|
$this->brandId = $brandId;
|
|||
|
$this->apiParas["brand_id"] = $brandId;
|
|||
|
}
|
|||
|
|
|||
|
public function getBrandId()
|
|||
|
{
|
|||
|
return $this->brandId;
|
|||
|
}
|
|||
|
|
|||
|
public function setLeafCatId($leafCatId)
|
|||
|
{
|
|||
|
$this->leafCatId = $leafCatId;
|
|||
|
$this->apiParas["leaf_cat_id"] = $leafCatId;
|
|||
|
}
|
|||
|
|
|||
|
public function getLeafCatId()
|
|||
|
{
|
|||
|
return $this->leafCatId;
|
|||
|
}
|
|||
|
|
|||
|
public function setProviderId($providerId)
|
|||
|
{
|
|||
|
$this->providerId = $providerId;
|
|||
|
$this->apiParas["provider_id"] = $providerId;
|
|||
|
}
|
|||
|
|
|||
|
public function getProviderId()
|
|||
|
{
|
|||
|
return $this->providerId;
|
|||
|
}
|
|||
|
|
|||
|
public function setSchemaXmlFields($schemaXmlFields)
|
|||
|
{
|
|||
|
$this->schemaXmlFields = $schemaXmlFields;
|
|||
|
$this->apiParas["schema_xml_fields"] = $schemaXmlFields;
|
|||
|
}
|
|||
|
|
|||
|
public function getSchemaXmlFields()
|
|||
|
{
|
|||
|
return $this->schemaXmlFields;
|
|||
|
}
|
|||
|
|
|||
|
public function getApiMethodName()
|
|||
|
{
|
|||
|
return "alibaba.gpu.schema.add";
|
|||
|
}
|
|||
|
|
|||
|
public function getApiParas()
|
|||
|
{
|
|||
|
return $this->apiParas;
|
|||
|
}
|
|||
|
|
|||
|
public function check()
|
|||
|
{
|
|||
|
|
|||
|
RequestCheckUtil::checkNotNull($this->leafCatId,"leafCatId");
|
|||
|
RequestCheckUtil::checkNotNull($this->providerId,"providerId");
|
|||
|
RequestCheckUtil::checkNotNull($this->schemaXmlFields,"schemaXmlFields");
|
|||
|
}
|
|||
|
|
|||
|
public function putOtherTextParam($key, $value) {
|
|||
|
$this->apiParas[$key] = $value;
|
|||
|
$this->$key = $value;
|
|||
|
}
|
|||
|
}
|