feat(log): add endpoints for retrieving and resetting subscribe traffic logs
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user