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

48 lines
1.2 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.tmc.messages.produce request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class TmcMessagesProduceRequest
{
/**
* tmc消息列表, 最多50条元素结构与taobao.tmc.message.produce一致用json表示的消息列表。例如[{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-08 18:24:00\",\"seller_nick\": \"向阳aa\",\"operator\":\"小张\"}","topic": "taobao_jds_TradeTrace"},{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-08 18:24:00\",\"seller_nick\": \"向阳aa\",\"operator\":\"小张\"}","topic": "taobao_jds_TradeTrace"}]
**/
private $messages;
private $apiParas = array();
public function setMessages($messages)
{
$this->messages = $messages;
$this->apiParas["messages"] = $messages;
}
public function getMessages()
{
return $this->messages;
}
public function getApiMethodName()
{
return "taobao.tmc.messages.produce";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}