作者 lyh

gx

... ... @@ -328,4 +328,21 @@ class NewsController extends BaseController
$lists = $news->list($this->map);
$this->response('success',Code::SUCCESS,$lists);
}
/**
* @remark :复制新闻
* @name :copyNews
* @author :lyh
* @method :post
* @time :2024/4/28 11:53
*/
public function copyNews(NewsLogic $news){
$this->request->validate([
'id'=>'required',
],[
'id.required' => 'id不能为空',
]);
$data = $news->copyNewsInfo();
$this->response('success',Code::SUCCESS,$data);
}
}
... ...