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

82 lines
1.3 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.fuwu.scores.get request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class FuwuScoresGetRequest
{
/**
* 当前页
**/
private $currentPage;
/**
* 评价日期,查询某一天的评价
**/
private $date;
/**
* 每页获取条数。默认值40最小值1最大值100。
**/
private $pageSize;
private $apiParas = array();
public function setCurrentPage($currentPage)
{
$this->currentPage = $currentPage;
$this->apiParas["current_page"] = $currentPage;
}
public function getCurrentPage()
{
return $this->currentPage;
}
public function setDate($date)
{
$this->date = $date;
$this->apiParas["date"] = $date;
}
public function getDate()
{
return $this->date;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function getApiMethodName()
{
return "taobao.fuwu.scores.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->currentPage,"currentPage");
RequestCheckUtil::checkNotNull($this->date,"date");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}