GameShield.go 1.5 KB

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