|
...
|
...
|
@@ -30,11 +30,6 @@ class BTemplateModuleRandomController extends BaseController |
|
|
|
* @time :2025/5/27 16:00
|
|
|
|
*/
|
|
|
|
public function getRandomList(){
|
|
|
|
$this->request->validate([
|
|
|
|
'project_id'=>'required',
|
|
|
|
],[
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->getRandomList();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
...
|
...
|
@@ -50,12 +45,10 @@ class BTemplateModuleRandomController extends BaseController |
|
|
|
$this->request->validate([
|
|
|
|
'module_id'=>'required',
|
|
|
|
'uuid'=>'required',
|
|
|
|
'project_id'=>'required',
|
|
|
|
'html'=>'required',
|
|
|
|
],[
|
|
|
|
'module_id.required' => '左侧模块id不能为空',
|
|
|
|
'uuid.required' => 'uuid唯一不能为空',
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
'html.required' => 'html不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->saveRandomModule();
|
...
|
...
|
|