作者 lyh

gx

... ... @@ -31,11 +31,6 @@ class CreateKeywordController extends BaseController
* @time :2023/12/19 9:31
*/
public function lists(CreateKeyword $createKeyword){
$this->request->validate([
'type'=>'required',
],[
'type.required' => 'id不能为空',
]);
$list = $createKeyword->list($this->map);
$this->response('success',Code::SUCCESS,$list);
}
... ... @@ -67,7 +62,8 @@ class CreateKeywordController extends BaseController
* @method :post
* @time :2023/12/19 10:12
*/
public function createKeyword(){
public function createKeyword(CreateKeywordLogic $logic){
$data = $logic->createKeyword();
$this->response('success',Code::SUCCESS,$data);
}
}
... ...
... ... @@ -52,9 +52,20 @@ class CreateKeywordLogic extends BaseLogic
public function handleParam($param){
$data = [
'type'=>$param['type'],
'name'=>$param['name']
'name'=>$param['name'],
'language_id'=>$param['language_id'] ?? 0
];
return $this->success($data);
}
/**
* @remark :创建关键词
* @name :createKeyword
* @author :lyh
* @method :post
* @time :2023/12/19 10:48
*/
public function createKeyword(){
}
}
... ...