post(); $pageSize = request()->post('pageSize', 15); $datas = ComplaintService::make()->getDataList($params, $pageSize); return showJson(1010, true, $datas); } /** * 详情 */ public function info() { $id = request()->post('id',0); if(empty($id)){ return showJson(2501, false); } if($info = ComplaintService::make()->getInfo($id)){ return showJson(1010, true, $info); }else{ return showJson(1009, false); } } /** * 提交 */ public function submit(ComplaintValidator $validator) { $params = request()->post(); $params = $validator->check($params, 'submit'); if (!is_array($params)) { return showJson($params, false); } if(ComplaintService::make()->submit($this->userId, $params)){ return showJson(1035, true); }else{ return showJson(1036, false); } } }