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

83 lines
1.5 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.tmc.topic.group.delete request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class TmcTopicGroupDeleteRequest
{
/**
* 消息分组Id一般不用填写如果分组已经被删除则根据问题排查工具返回的ID删除路由关系
**/
private $groupId;
/**
* 消息分组名
**/
private $groupName;
/**
* 消息topic名称多个以逗号(,)分割
**/
private $topics;
private $apiParas = array();
public function setGroupId($groupId)
{
$this->groupId = $groupId;
$this->apiParas["group_id"] = $groupId;
}
public function getGroupId()
{
return $this->groupId;
}
public function setGroupName($groupName)
{
$this->groupName = $groupName;
$this->apiParas["group_name"] = $groupName;
}
public function getGroupName()
{
return $this->groupName;
}
public function setTopics($topics)
{
$this->topics = $topics;
$this->apiParas["topics"] = $topics;
}
public function getTopics()
{
return $this->topics;
}
public function getApiMethodName()
{
return "taobao.tmc.topic.group.delete";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->groupName,"groupName");
RequestCheckUtil::checkNotNull($this->topics,"topics");
RequestCheckUtil::checkMaxListSize($this->topics,20,"topics");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}