|
...
|
...
|
@@ -36,7 +36,7 @@ class CustomModuleController extends BaseController |
|
|
|
ProjectServer::useProject($this->param['project_id']);
|
|
|
|
$customModule = new CustomModule();
|
|
|
|
$this->map['status'] = 0;
|
|
|
|
$lists = $customModule->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$lists = $customModule->lists($this->map,$this->page,$this->row,$this->order = ['topping_time','sort','id']);
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
...
|
...
|
@@ -91,4 +91,21 @@ class CustomModuleController extends BaseController |
|
|
|
$logic->customModuleDel();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :一键指定
|
|
|
|
* @name :topping
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/12/21 10:57
|
|
|
|
*/
|
|
|
|
public function topping(CustomModuleLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required'],
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
]);
|
|
|
|
$logic->setTopping();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|