You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.8 KiB
PHTML

5 years ago
<?php
/**
* TOP API: taobao.kfc.keyword.search request
*
* @author auto create
* @since 1.0, 2016.03.19
*/
class KfcKeywordSearchRequest
{
/**
* 应用点分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品比如淘宝的商品应用taobao_auction二级应用点是指一级应用点下的具体的分类比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。
这里的apply参数是由一级应用点与二级应用点合起来的字符一级应用点+"."+二级应用点如taobao_auction.title。
通常apply参数是不需要传递的。如有特殊需求比如特殊的过滤需求需要自己维护一套自己词库需传递此参数。
**/
private $apply;
/**
* 需要过滤的文本信息
**/
private $content;
/**
* 发布信息的淘宝会员名,可以不传
**/
private $nick;
private $apiParas = array();
public function setApply($apply)
{
$this->apply = $apply;
$this->apiParas["apply"] = $apply;
}
public function getApply()
{
return $this->apply;
}
public function setContent($content)
{
$this->content = $content;
$this->apiParas["content"] = $content;
}
public function getContent()
{
return $this->content;
}
public function setNick($nick)
{
$this->nick = $nick;
$this->apiParas["nick"] = $nick;
}
public function getNick()
{
return $this->nick;
}
public function getApiMethodName()
{
return "taobao.kfc.keyword.search";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->content,"content");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}