feat(admin): 同步单赛事筛选与排序功能 (从 main 分支)

This commit is contained in:
2026-06-18 17:46:39 +08:00
parent b0dc56db1c
commit 5fbb1fd1f6
6 changed files with 197 additions and 4 deletions

View File

@@ -1995,6 +1995,8 @@ export class AdminController {
@Query('locale') locale?: string,
@Query('page') page?: string,
@Query('pageSize') pageSize?: string,
@Query('hasBets') hasBets?: string,
@Query('orderBy') orderBy?: string,
) {
const result = await this.matches.listAdminLeagueMatches(BigInt(leagueId), {
status: status || undefined,
@@ -2002,6 +2004,8 @@ export class AdminController {
locale: locale || undefined,
page: page ? Math.max(1, parseInt(page, 10) || 1) : 1,
pageSize: pageSize ? Math.min(100, Math.max(1, parseInt(pageSize, 10) || 20)) : 20,
hasBets: hasBets || undefined,
orderBy: orderBy || undefined,
});
return jsonResponse(result);
}