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

49 lines
936 B
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.user.permit request
*
* @author auto create
* @since 1.0, 2022.04.26
*/
class TmcUserPermitRequest
{
/**
* 消息主题列表用半角逗号分隔。当用户订阅的topic是应用订阅的子集时才需要设置不设置表示继承应用所订阅的所有topic一般情况建议不要设置。
**/
private $topics;
private $apiParas = array();
public function setTopics($topics)
{
$this->topics = $topics;
$this->apiParas["topics"] = $topics;
}
public function getTopics()
{
return $this->topics;
}
public function getApiMethodName()
{
return "taobao.tmc.user.permit";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkMaxListSize($this->topics,100,"topics");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}