You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/extend/suning-sdk-php/request/custom/LabelstrategyCreateRequest.php

72 lines
1.2 KiB

8 months ago
<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2020-10-13
*/
class LabelstrategyCreateRequest extends SuningRequest{
/**
*
*/
private $description;
/**
*
*/
private $name;
/**
*
*/
private $strategy;
public function getDescription() {
return $this->description;
}
public function setDescription($description) {
$this->description = $description;
$this->apiParams["description"] = $description;
}
public function getName() {
return $this->name;
}
public function setName($name) {
$this->name = $name;
$this->apiParams["name"] = $name;
}
public function getStrategy() {
return $this->strategy;
}
public function setStrategy($strategy) {
$this->strategy = $strategy;
$this->apiParams["strategy"] = $strategy;
}
public function getApiMethodName(){
return 'suning.custom.labelstrategy.create';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->name, 'name');
RequestCheckUtil::checkNotNull($this->strategy, 'strategy');
}
public function getBizName(){
return "createLabelstrategy";
}
}
?>