任务分解 #276
oa审核表荣誉信息
0%
描述
荣誉信息(ApplyHonorInfoFormTest.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', 'applyHonorInfoForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyHonorInfoForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyHonorInfoForms?filter[company]=1&sort=-id',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/$data = array("data"=>array("type"=>"applyHonorInfoForms",
"attributes"=>array("name"=>'hellohello1111',
"grantOrganization"=>'grantOrganization',
"grantDate"=>'2021-09-06',
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyHonorInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//add -- 结束
//edit -- 开始
$data = array("data"=>array("type"=>"applyHonorInfoForms",
"attributes"=>array("name"=>'hellohello',
"grantOrganization"=>'grantOrganization222',
"grantDate"=>'2027-09-06',
)
)
);
$response = $client->request(
'PUT',
'applyHonorInfoForms/1',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);