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

82 lines
1.4 KiB
PHP
Raw Permalink 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.update request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class PictureCategoryUpdateRequest
{
/**
* 要更新的图片分类的id
**/
private $categoryId;
/**
* 图片分类的新名字最大长度20字符不能为空
**/
private $categoryName;
/**
* 图片分类的新父分类id
**/
private $parentId;
private $apiParas = array();
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
$this->apiParas["category_id"] = $categoryId;
}
public function getCategoryId()
{
return $this->categoryId;
}
public function setCategoryName($categoryName)
{
$this->categoryName = $categoryName;
$this->apiParas["category_name"] = $categoryName;
}
public function getCategoryName()
{
return $this->categoryName;
}
public function setParentId($parentId)
{
$this->parentId = $parentId;
$this->apiParas["parent_id"] = $parentId;
}
public function getParentId()
{
return $this->parentId;
}
public function getApiMethodName()
{
return "taobao.picture.category.update";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->categoryId,"categoryId");
RequestCheckUtil::checkMaxLength($this->categoryName,20,"categoryName");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}