任务分解 #279
oa审核表列入严重违法名录
0%
描述
列入严重违法名录(ApplyInViolationRecordFormTest.php)
// $response = $client->request('GET', 'applyInViolationRecordForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyInViolationRecordForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyInViolationRecordForms?filter[reason]=1&sort=date',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/*$data = array("data"=>array("type"=>"applyInViolationRecordForms",
"attributes"=>array("reason"=>1,
"date"=>'2059-05-05',
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyInViolationRecordForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//add -- 结束
//edit -- 开始
/*$data = array("data"=>array("type"=>"applyInViolationRecordForms",
"attributes"=>array("reason"=>2,
"date"=>'2052-05-05'
)
)
);
$response = $client->request(
'PUT',
'applyInViolationRecordForms/4',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
*/