feat: support full community post editing
This commit is contained in:
@@ -21,10 +21,10 @@ class CommunityPostController extends BaseAdminController
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function editContent()
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CommunityPostValidate())->post()->goCheck('editContent');
|
||||
$result = CommunityPostLogic::editContent($params);
|
||||
$params = (new CommunityPostValidate())->post()->goCheck('edit');
|
||||
$result = CommunityPostLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('保存成功', [], 1, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user