feat: support full community post editing

This commit is contained in:
hajimi
2026-08-02 20:38:47 +08:00
parent f78580b2b9
commit 2358603eda
9 changed files with 638 additions and 72 deletions
@@ -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);
}