|
...
|
...
|
@@ -305,4 +305,20 @@ class BlogController extends BaseController |
|
|
|
$logic->batchSetCategory();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @remark :复制新闻
|
|
|
|
* @name :copyNews
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/4/28 11:53
|
|
|
|
*/
|
|
|
|
public function copyBlog(BlogLogic $blog){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
]);
|
|
|
|
$data = $blog->copyBlogInfo();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|