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/common/EncryptGetRequest.php

100 lines
1.8 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-9-27
*/
class EncryptGetRequest extends SuningRequest{
/**
*
*/
private $paramJson;
public function getParamJson() {
return $this->paramJson;
}
public function setParamJson($paramJson) {
$this->paramJson = $paramJson;
$arr = array();
foreach ($paramJson as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["paramJson"] = $arr;
}
public function getApiMethodName(){
return 'suning.common.encrypt.get';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
}
public function getBizName(){
return "getEncrypt";
}
}
class ParamJson {
private $apiParams = array();
private $authId;
private $isSupportIndex;
private $plainText;
private $sensitiveType;
public function getAuthId() {
return $this->authId;
}
public function setAuthId($authId) {
$this->authId = $authId;
$this->apiParams["authId"] = $authId;
}
public function getIsSupportIndex() {
return $this->isSupportIndex;
}
public function setIsSupportIndex($isSupportIndex) {
$this->isSupportIndex = $isSupportIndex;
$this->apiParams["isSupportIndex"] = $isSupportIndex;
}
public function getPlainText() {
return $this->plainText;
}
public function setPlainText($plainText) {
$this->plainText = $plainText;
$this->apiParams["plainText"] = $plainText;
}
public function getSensitiveType() {
return $this->sensitiveType;
}
public function setSensitiveType($sensitiveType) {
$this->sensitiveType = $sensitiveType;
$this->apiParams["sensitiveType"] = $sensitiveType;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>