任务分解 #278
oa审核表移出严重违法名录
0%
描述
移出严重违法名录(ApplyExViolationRecordFormTest.php)
//get
/**
* 3.1 filter[status] 表单审核状态
* 审核通过状态 2
* 待审核状态 0
* 审核拒绝状态 -2
* 3.2 filter[company]
* 所属企业id
* 3.3 filter[userIdentification] 用户标识
* OA用户 1
* 非OA用户 2
* 3.4 filter[uid]
* 用户id
/
//$response = $client->request('GET', 'applyExViolationRecordForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyExViolationRecordForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyExViolationRecordForms?filter[reason]=1&sort=date',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/$data = array("data"=>array("type"=>"applyExViolationRecordForms",
"attributes"=>array("reason"=>"reasonreason",
"decisionAuthority"=>'decisionAuthoritydecisionAuthoritydecisionAuthority',
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyExViolationRecordForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//add -- 结束
//edit -- 开始
/*$data = array("data"=>array("type"=>"applyExViolationRecordForms",
"attributes"=>array("reason"=>"r1111easonreason",
"decisionAuthority"=>'deq11111cisionAuthoritydecisionAuthoritydecisionAuthority'
)
)
);
$response = $client->request(
'PUT',
'applyExViolationRecordForms/1',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/