feat: rank community recommendation feed

This commit is contained in:
hajimi
2026-08-02 18:39:36 +08:00
parent 3fc4703986
commit 51cd9898a7
9 changed files with 122 additions and 3 deletions
@@ -61,6 +61,16 @@ class CommunityPostController extends BaseAdminController
return $this->fail(CommunityPostLogic::getError());
}
public function setSort()
{
$params = (new CommunityPostValidate())->post()->goCheck('sort');
$result = CommunityPostLogic::setSort($params);
if (true === $result) {
return $this->success('设置成功', [], 1, 1);
}
return $this->fail(CommunityPostLogic::getError());
}
public function setTopic()
{
$params = (new CommunityPostValidate())->post()->goCheck('topic');