Implement statistics tab aligned with Android and fix summary decode.

Add role-based analyse APIs, summary/daily UI with date range sheet, and flexible parsing for string refund amounts from the backend.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 16:32:14 +08:00
parent 39a9038a3b
commit 6492f80ef0
32 changed files with 1769 additions and 10 deletions

View File

@ -13,6 +13,7 @@ final class NetworkServices {
let apiClient: APIClient
let authAPI: AuthAPI
let profileAPI: ProfileAPI
let statisticsAPI: StatisticsAPI
let uploadAPI: UploadAPI
let ossUploadService: OSSUploadService
@ -21,6 +22,7 @@ final class NetworkServices {
apiClient = client
authAPI = AuthAPI(client: client)
profileAPI = ProfileAPI(client: client)
statisticsAPI = StatisticsAPI(client: client)
uploadAPI = UploadAPI(client: client)
ossUploadService = OSSUploadService(configService: uploadAPI)
client.bindAuthTokenProvider {
@ -34,6 +36,7 @@ final class NetworkServices {
self.apiClient = apiClient
authAPI = AuthAPI(client: apiClient)
profileAPI = ProfileAPI(client: apiClient)
statisticsAPI = StatisticsAPI(client: apiClient)
uploadAPI = UploadAPI(client: apiClient)
ossUploadService = OSSUploadService(configService: uploadAPI)
}