|
...
|
...
|
@@ -16,6 +16,19 @@ use App\Models\Com\PromotionKeyword; |
|
|
|
class KeywordController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @remark :任务列表
|
|
|
|
* @name :lists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/2/26 11:36
|
|
|
|
*/
|
|
|
|
public function lists(){
|
|
|
|
$keywordModel = new PromotionKeyword();
|
|
|
|
$lists = $keywordModel->lists($this->map,$this->page,$this->row);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :创建关键字任务池子
|
|
|
|
* @name :saveKeyword
|
|
|
|
* @author :lyh
|
|
...
|
...
|
@@ -37,4 +50,25 @@ class KeywordController extends BaseController |
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :修改项目
|
|
|
|
* @name :editSort
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/2/26 11:35
|
|
|
|
*/
|
|
|
|
public function edit(){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required'
|
|
|
|
], [
|
|
|
|
'id.required' => '主键标识不为空',
|
|
|
|
]);
|
|
|
|
$keywordModel = new PromotionKeyword();
|
|
|
|
$rs = $keywordModel->edit(['sort'=>$this->param['sort']],['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->response('编辑失败',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|