feat : rank
This commit is contained in:
@@ -13,6 +13,7 @@ use App\Service\Api\System\MiniWxConfigService;
|
||||
use App\Service\Api\System\SiteListService;
|
||||
use App\Service\Api\System\SystemConfigService;
|
||||
use App\Service\Api\User\IndexService;
|
||||
use DateMalformedStringException;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middleware;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
@@ -73,9 +74,15 @@ class SystemController extends AbstractController
|
||||
return (new AliStsService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|null
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
* @throws DateMalformedStringException
|
||||
*/
|
||||
#[RequestMapping(path: "leaderboard", methods: "GET")]
|
||||
#[Scene(scene: 'leaderboard')]
|
||||
// #[Middleware(JwtAuthMiddleware::class)]
|
||||
#[Middleware(JwtAuthMiddleware::class)]
|
||||
public function getLeaderboardHistory()
|
||||
{
|
||||
return (new GetLeaderboardService)->handle();
|
||||
|
||||
Reference in New Issue
Block a user