data_center/app/adminapi/controller/dict/DictController.php

32 lines
865 B
PHP
Raw Normal View History

2023-11-14 18:12:23 +08:00
<?php
namespace app\adminapi\controller\dict;
use app\adminapi\controller\BaseAdminController;
use think\response\Json;
class DictController extends BaseAdminController
{
//字典列表
public function lists(): Json
{
$params=$this->request->get(['page_no','page_size','type_id']);
$result = curl_post(env('project.worker_domain').'/middleapi/dict_data/lists',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}
return json($result);
}
//获取任务审批类型
public function getTaskApproveTypeList(): Json
{
$params=$this->request->get();
$result = curl_post(env('project.worker_domain').'/middleapi/dict_data/getTaskApproveTypeList',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}
return json($result);
}
}