修复(#71): 校验订阅限速非法参数

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-27 06:43:52 -07:00
parent 5ebfe0a981
commit 5fb396f880
5 changed files with 104 additions and 16 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ type (
ExpiredAt int64 `json:"expired_at"`
Upload int64 `json:"upload"`
Download int64 `json:"download"`
SpeedLimit *int64 `json:"speed_limit,omitempty"`
SpeedLimit *int64 `json:"speed_limit,omitempty" validate:"omitempty,gte=0"`
TrafficLimit *string `json:"traffic_limit,omitempty"`
}
GetUserLoginLogsRequest {