封装人脸检验上传请求参数类

This commit is contained in:
chenbo 2023-09-09 11:19:38 +08:00
parent e0f5fb24fe
commit 509eb4cd17
2 changed files with 44 additions and 1 deletions

View File

@ -6,6 +6,7 @@ use app\common\model\contract\VehicleContract;
use app\Request;
use junziqian\sdk\bean\req\sign\ApplySignReq;
use junziqian\sdk\bean\req\user\OrganizationCreateReq;
use junziqian\sdk\bean\req\user\OrganizationFaceCreateReq;
use junziqian\sdk\util\exception\ResultInfoException;
use junziqian\sdk\util\RequestUtils;
use junziqian\sdk\util\ShaUtils;
@ -164,7 +165,7 @@ class JunziqianController extends BaseApiController
public function OrganizationFaceCreate($data)
{
$requestUtils = new RequestUtils($this->serviceUrl, $this->appkey, $this->appSecret);
$request=new OrganizationCreateReq();
$request=new OrganizationFaceCreateReq();
$request-> orderNo = $data['id'];
$request-> email = $data['master_email'];
$request-> enterpriseName = $data['company_name'];

View File

@ -0,0 +1,42 @@
<?php
namespace junziqian\sdk\bean\req\user;
use junziqian\sdk\bean\Req2MapInterface;
class OrganizationFaceCreateReq extends Req2MapInterface
{
//@ApiModelProperty(value = "唯一流水号,自定义",required = true)
public $orderNo;
//@ApiModelProperty(value = "唯一邮箱,自定义",required = true)
public $email;
//@ApiModelProperty(value = "企业证件名称",required = true)
public $enterpriseName;
//@ApiModelProperty(value = "统一社会信用号",required = true)
public $identityNo;
//@ApiModelProperty(value = "法人名称",required = true)
public $legalPersonName;
//@ApiModelProperty(value = "法人证件号",required = true)
public $legalIdentityCard;
//@ApiModelProperty(value = "法人手机号",required = true)
public $legalMobile;
//@ApiModelProperty(value = "验证人类型1代理人不传则是法人")
public $facePerType;
//@ApiModelProperty(value = "人脸验证代理人-名称",required = true)
public $faceAgantIdenName;
//@ApiModelProperty(value = "人脸验证代理人-证件号",required = true)
public $faceAgantIdenCard;
//@ApiModelProperty(value = "同步回调地址",required = true)
public $backUrl;
}