|
@@ -30,11 +30,6 @@ class BTemplateModuleRandomController extends BaseController |
|
@@ -30,11 +30,6 @@ class BTemplateModuleRandomController extends BaseController |
|
30
|
* @time :2025/5/27 16:00
|
30
|
* @time :2025/5/27 16:00
|
|
31
|
*/
|
31
|
*/
|
|
32
|
public function getRandomList(){
|
32
|
public function getRandomList(){
|
|
33
|
- $this->request->validate([
|
|
|
|
34
|
- 'project_id'=>'required',
|
|
|
|
35
|
- ],[
|
|
|
|
36
|
- 'project_id.required' => 'project_id不能为空',
|
|
|
|
37
|
- ]);
|
|
|
|
38
|
$data = $this->logic->getRandomList();
|
33
|
$data = $this->logic->getRandomList();
|
|
39
|
$this->response('success',Code::SUCCESS,$data);
|
34
|
$this->response('success',Code::SUCCESS,$data);
|
|
40
|
}
|
35
|
}
|
|
@@ -50,12 +45,10 @@ class BTemplateModuleRandomController extends BaseController |
|
@@ -50,12 +45,10 @@ class BTemplateModuleRandomController extends BaseController |
|
50
|
$this->request->validate([
|
45
|
$this->request->validate([
|
|
51
|
'module_id'=>'required',
|
46
|
'module_id'=>'required',
|
|
52
|
'uuid'=>'required',
|
47
|
'uuid'=>'required',
|
|
53
|
- 'project_id'=>'required',
|
|
|
|
54
|
'html'=>'required',
|
48
|
'html'=>'required',
|
|
55
|
],[
|
49
|
],[
|
|
56
|
'module_id.required' => '左侧模块id不能为空',
|
50
|
'module_id.required' => '左侧模块id不能为空',
|
|
57
|
'uuid.required' => 'uuid唯一不能为空',
|
51
|
'uuid.required' => 'uuid唯一不能为空',
|
|
58
|
- 'project_id.required' => 'project_id不能为空',
|
|
|
|
59
|
'html.required' => 'html不能为空',
|
52
|
'html.required' => 'html不能为空',
|
|
60
|
]);
|
53
|
]);
|
|
61
|
$data = $this->logic->saveRandomModule();
|
54
|
$data = $this->logic->saveRandomModule();
|