Compare commits
No commits in common. "e73aeb98e6f5fcb6099fec2e7518df336c460823" and "3fac24b5e7d3e3a63558fc6508daf1656c335297" have entirely different histories.
e73aeb98e6
...
3fac24b5e7
|
@ -3,7 +3,6 @@
|
|||
namespace app\adminapi\controller\archives;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use think\response\Json;
|
||||
|
||||
class ArchivesController extends BaseAdminController
|
||||
{
|
||||
|
@ -18,27 +17,5 @@
|
|||
];
|
||||
}
|
||||
|
||||
//档案列表
|
||||
public function lists(): Json
|
||||
{
|
||||
$params = $this->request->get(['page_no','page_size','name']);
|
||||
$result = curl_post(env('project.worker_domain').'/middleapi/archives/lists',$params,$this->reqHeader);
|
||||
if($result['code'] == 0){
|
||||
return $this->fail($result['msg']);
|
||||
}
|
||||
return json($result);
|
||||
}
|
||||
|
||||
public function detail(): Json
|
||||
{
|
||||
$params = $this->request->get(['id']);
|
||||
if(empty($params['id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$result = curl_post(env('project.worker_domain').'/middleapi/archives/detail',$params,$this->reqHeader);
|
||||
if($result['code'] == 0){
|
||||
return $this->fail($result['msg']);
|
||||
}
|
||||
return json($result);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue