|
...
|
...
|
@@ -29,6 +29,7 @@ class KeywordUrlController extends BaseController |
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/12 17:01
|
|
|
|
* @param :keyword->关键字
|
|
|
|
*/
|
|
|
|
public function lists(KeywordUrl $keywordUrl){
|
|
|
|
if(isset($this->map['keyword']) && !empty($this->map['keyword'])){
|
|
...
|
...
|
@@ -40,11 +41,29 @@ class KeywordUrlController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取数据详情
|
|
|
|
* @name :info
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/12 17:25
|
|
|
|
*/
|
|
|
|
public function info(KeywordUrl $keywordUrl){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required'],
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
]);
|
|
|
|
$lists = $keywordUrl->read(['id'=>$this->param['id']]);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :保存数据
|
|
|
|
* @name :save
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/12 17:02
|
|
|
|
* @param :keyword->关键词; url->对应路由
|
|
|
|
*/
|
|
|
|
public function save(KeywordUrlLogic $keywordUrlLogic){
|
|
|
|
$this->request->validate([
|
...
|
...
|
|