|
@@ -31,11 +31,6 @@ class CreateKeywordController extends BaseController |
|
@@ -31,11 +31,6 @@ class CreateKeywordController extends BaseController |
|
31
|
* @time :2023/12/19 9:31
|
31
|
* @time :2023/12/19 9:31
|
|
32
|
*/
|
32
|
*/
|
|
33
|
public function lists(CreateKeyword $createKeyword){
|
33
|
public function lists(CreateKeyword $createKeyword){
|
|
34
|
- $this->request->validate([
|
|
|
|
35
|
- 'type'=>'required',
|
|
|
|
36
|
- ],[
|
|
|
|
37
|
- 'type.required' => 'id不能为空',
|
|
|
|
38
|
- ]);
|
|
|
|
39
|
$list = $createKeyword->list($this->map);
|
34
|
$list = $createKeyword->list($this->map);
|
|
40
|
$this->response('success',Code::SUCCESS,$list);
|
35
|
$this->response('success',Code::SUCCESS,$list);
|
|
41
|
}
|
36
|
}
|
|
@@ -67,7 +62,8 @@ class CreateKeywordController extends BaseController |
|
@@ -67,7 +62,8 @@ class CreateKeywordController extends BaseController |
|
67
|
* @method :post
|
62
|
* @method :post
|
|
68
|
* @time :2023/12/19 10:12
|
63
|
* @time :2023/12/19 10:12
|
|
69
|
*/
|
64
|
*/
|
|
70
|
- public function createKeyword(){
|
|
|
|
71
|
-
|
65
|
+ public function createKeyword(CreateKeywordLogic $logic){
|
|
|
|
66
|
+ $data = $logic->createKeyword();
|
|
|
|
67
|
+ $this->response('success',Code::SUCCESS,$data);
|
|
72
|
}
|
68
|
}
|
|
73
|
} |
69
|
} |