feat: allow editing community post content

This commit is contained in:
hajimi
2026-08-02 20:11:15 +08:00
parent 115a859dd3
commit 71f3b1c6d7
7 changed files with 125 additions and 2 deletions
@@ -21,6 +21,16 @@ class CommunityPostController extends BaseAdminController
return $this->data($result);
}
public function editContent()
{
$params = (new CommunityPostValidate())->post()->goCheck('editContent');
$result = CommunityPostLogic::editContent($params);
if (true === $result) {
return $this->success('保存成功', [], 1, 1);
}
return $this->fail(CommunityPostLogic::getError());
}
public function updateStatus()
{
$params = (new CommunityPostValidate())->post()->goCheck('status');