feat(accounts): 账号列表按列排序,默认把还能换套装的排到前面

分页在服务端,点表头按全库排,不能只排当前这一页。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-10-05 18:50:43 +08:00
co-authored by Cursor
parent ab4c0a5422
commit f2157f67f7
5 changed files with 363 additions and 5 deletions
+2
View File
@@ -35,6 +35,8 @@ export const accountApi = {
elite_opened?: boolean;
esports_opened?: boolean;
role_bind_status?: string;
sort?: 'username' | 'status' | 'bind' | 'points' | 'high_value' | 'exchange' | 'tag';
order?: 'asc' | 'desc';
},
) =>
api.get<PaginatedResponse<AccountItem>, PaginatedResponse<AccountItem>>('/accounts', { params }),