GameShield.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package v1
  2. type GameShieldSubmitRequest struct {
  3. HostId string `json:"host_id" form:"host_id" binding:"required"`
  4. AppName string `json:"app_name" form:"app_name" binding:"required"`
  5. RuleId int `json:"rule_id" form:"rule_id"`
  6. Id int `json:"id" form:"id"`
  7. Uid int `json:"uid" form:"uid"`
  8. Comment string `json:"comment" form:"comment"`
  9. }
  10. type BackendItem struct {
  11. Protocol string `json:"protocol" form:"protocol"`
  12. Host string `json:"host" form:"host"`
  13. ProxyAddr string `json:"proxy_addr" form:"proxy_addr"`
  14. SdkPort int `json:"sdk_port" form:"sdk_port"`
  15. SourceMachineIP string `json:"source_machineIP" form:"source_machineIP"`
  16. ConnectPort int `json:"connect_port" form:"connect_port"`
  17. }
  18. type GameShieldSubmitResponse struct {
  19. RoleId int `json:"role_id"`
  20. }
  21. type GetGameShieldRuleIdRequest struct {
  22. AppName string `json:"app_name" form:"app_name"`
  23. Name string `json:"name" form:"name"`
  24. Id int `json:"id" form:"id"`
  25. }
  26. type GetGameShieldRequiredResponse struct {
  27. ExpiredAt string
  28. Backend string
  29. Cookie string
  30. RuleId int
  31. Domain string
  32. }
  33. type KeyAndFieldResponse struct {
  34. Key string
  35. FieldId int
  36. }
  37. type DelGameShieldRequest struct {
  38. RuleId int `json:"id" form:"id"`
  39. }