feat(log): add endpoints for retrieving and resetting subscribe traffic logs

This commit is contained in:
Chang lue Tsen
2025-08-21 11:02:11 -04:00
parent ec4e95451b
commit 062533412a
9 changed files with 246 additions and 0 deletions
+30
View File
@@ -956,6 +956,17 @@ type GetUserSubscribeLogsResponse struct {
Total int64 `json:"total"`
}
type GetUserSubscribeResetTrafficLogsRequest struct {
Page int `form:"page"`
Size int `form:"size"`
UserSubscribeId int64 `form:"user_subscribe_id"`
}
type GetUserSubscribeResetTrafficLogsResponse struct {
List []ResetSubscribeTrafficLog `json:"list"`
Total int64 `json:"total"`
}
type GetUserSubscribeTrafficLogsRequest struct {
Page int `form:"page"`
Size int `form:"size"`
@@ -1416,6 +1427,25 @@ type ResetPasswordRequest struct {
CfToken string `json:"cf_token,optional"`
}
type ResetSubscribeTrafficLog struct {
Id int64 `json:"id"`
Type uint8 `json:"type"`
UserSubscribeId int64 `json:"user_subscribe_id"`
OrderNo string `json:"order_no,omitempty"`
ResetAt int64 `json:"reset_at"`
}
type ResetSubscribeTrafficLogRequest struct {
Page int `form:"page"`
Size int `form:"size"`
UserSubscribeId int64 `form:"user_subscribe_id"`
}
type ResetSubscribeTrafficLogResponse struct {
List []ResetSubscribeTrafficLog `json:"list"`
Total int64 `json:"total"`
}
type ResetTrafficOrderRequest struct {
UserSubscribeID int64 `json:"user_subscribe_id"`
Payment int64 `json:"payment"`