PHP开发(前) #274
PHP开发(前) #273: oa审核表员工评论
oa审核表撤销信息
0%
描述
撤销信息(ApplyRevocationInfoFormTest.php)
// $response = $client->request('GET', 'applyRevocationInfoForms/31,32',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyRevocationInfoForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyRevocationInfoForms?filter[userIdentification]=2&sort=-id',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/*$data = array("data"=>array("type"=>"applyRevocationInfoForms",
"attributes"=>array("category"=>1,
"beforeRevocationInfo"=>"beforeRevocationInfo",
"afterRevocationInfo"=>"afterRevocationInfo",
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyRevocationInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//add -- 结束
//edit -- 开始
/*$data = array("data"=>array("type"=>"applyRevocationInfoForms",
"attributes"=>array("category"=>12,
"beforeRevocationInfo"=>"12beforeRevocationInfo",
"afterRevocationInfo"=>"12afterRevocationInfo",
)
)
);
$response = $client->request(
'PUT',
'applyRevocationInfoForms/32',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//edit -- 结束