|
...
|
...
|
@@ -71,17 +71,28 @@ class BTemplateModuleRandomController extends BaseController |
|
|
|
*/
|
|
|
|
public function getRandomInfo(){
|
|
|
|
$this->request->validate([
|
|
|
|
'module_id'=>'required',
|
|
|
|
'uuid'=>'required',
|
|
|
|
'project_id'=>'required',
|
|
|
|
],[
|
|
|
|
'module_id.required' => '左侧模块id不能为空',
|
|
|
|
'uuid.required' => 'uuid唯一不能为空',
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->getRandomInfo();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除随机模块
|
|
|
|
* @name :delRandom
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/5/27 17:59
|
|
|
|
*/
|
|
|
|
public function delRandom(){
|
|
|
|
$this->request->validate([
|
|
|
|
'uuid'=>'required',
|
|
|
|
],[
|
|
|
|
'uuid.required' => 'uuid唯一不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->delRandom();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|