shop-php/extend/taobao/request/KfcKeywordSearchRequest.php
2023-10-10 14:54:50 +08:00

86 lines
1.8 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.kfc.keyword.search request
*
* @author auto create
* @since 1.0, 2022.05.20
*/
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;
}
}