REAPI/extend/sdk/taobao/top/request/PictureCategoryAddRequest.php
2024-09-29 15:43:18 +08:00

65 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* TOP API: taobao.picture.category.add request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class PictureCategoryAddRequest
{
/**
* 图片分类的父分类,一级分类的parent_id为0,二级分类的则为其父分类的picture_category_id
**/
private $parentId;
/**
* 图片分类名称最大长度20字符中文字符算2个字符不能为空
**/
private $pictureCategoryName;
private $apiParas = array();
public function setParentId($parentId)
{
$this->parentId = $parentId;
$this->apiParas["parent_id"] = $parentId;
}
public function getParentId()
{
return $this->parentId;
}
public function setPictureCategoryName($pictureCategoryName)
{
$this->pictureCategoryName = $pictureCategoryName;
$this->apiParas["picture_category_name"] = $pictureCategoryName;
}
public function getPictureCategoryName()
{
return $this->pictureCategoryName;
}
public function getApiMethodName()
{
return "taobao.picture.category.add";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->pictureCategoryName,"pictureCategoryName");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}