任务分解 #172
对外投资
100%
描述
一、对外投资调用接口(ApplyInvestmentAbroadFormTest.php)
1、添加调用接口
/*$data = array("data"=>array("type"=>"applyInvestmentAbroadForms",
"attributes"=>array("companyName"=>"companyName",
"principal"=>'principal',
"establishedTime"=>'2029-05-05',
"registrationCapital"=>23,
"address"=>'addressaddress',
"website"=>'htp://www.baidu.com',
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyInvestmentAbroadForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑调用接口
$data = array("data"=>array("type"=>"applyInvestmentAbroadForms",
"attributes"=>array("companyName"=>"111companyName",
"principal"=>'111principal',
"establishedTime"=>'2019-05-05',
"registrationCapital"=>13,
"address"=>'11addressaddress',
"website"=>'http://www.baidu.com',
)
)
);
$response = $client->request(
'PUT',
'applyInvestmentAbroadForms/1',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
3、调用单条
$response = $client->request('GET', 'applyInvestmentAbroadForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyInvestmentAbroadForms',['haders'=>['Content-' => 'application/vnd.api+json']]);