feat: rank community recommendation feed
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user