feat : rank

This commit is contained in:
2025-04-09 09:44:05 +08:00
parent 8c284937ac
commit 492bd5160b
3 changed files with 22 additions and 2 deletions

View File

@@ -19,7 +19,10 @@ use App\Model\LeaderboardHistory;
use App\Model\SystemCity;
use App\Service\Api\BaseService;
use App\Service\ServiceTrait\Common\OssTrait;
use DateMalformedStringException;
use Hyperf\Di\Annotation\Inject;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
class GetLeaderboardService extends BaseService
{
@@ -49,7 +52,13 @@ class GetLeaderboardService extends BaseService
#[Inject]
protected AdminUser $adminUserModel;
public function handle()
/**
* @return array
* @throws DateMalformedStringException
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function handle(): array
{
$cityId = (int)$this->request->input('city_id');
$type = (int)$this->request->input('type');