任务分解 #160
企业基本信息(主要人员)
0%
描述
一、申请表单调用接口文件(ApplyPrimaryPeopleFormTest.php)
1、新增表单
/*$data = array("data"=>array("type"=>"applyPrimaryPeopleForms",
"attributes"=>array("name"=>"editnamenamename",
"duties"=>2,
"gender"=>2,
"nationality"=>4,
"birthday"=>"1995-05-05",
"education"=>8,
"socialDuties"=>"socialDuties",
"experience"=>"experience",
"abroadInvestmen"=>2,>request(
"companyId"=>2,
"uid"=>2,
"userIdentification"=>2
)
)
);
$response = $client
'POST',
'applyPrimaryPeopleForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑表单
/*$data = array("data"=>array("type"=>"applyPrimaryPeopleForms",
"attributes"=>array("name"=>"111editnamenamename",
"duties"=>1,
"gender"=>1,
"nationality"=>1,
"birthday"=>"1991-05-05",
"education"=>1,
"socialDuties"=>"111socialDuties",
"experience"=>"111xperience",
"abroadInvestmen"=>0
)
)
);
$response = $client->request(
'PUT',
'applyPrimaryPeopleForms/16',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
二、获取内容
1、获取单条
$response = $client->request('GET', 'applyPrimaryPeopleForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
2、获取多条
$response = $client->request('GET', 'applyPrimaryPeopleForms',['haders'=>['Content-' => 'application/vnd.api+json']]);