api.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package v1
  2. // RiskCheckV2Request .
  3. type RiskCheckV2Request struct {
  4. UID int64 `json:"uid" form:"uid" validate:"required"`
  5. UserClientIP string `json:"userClientIp" form:"userClientIp" validate:"required"`
  6. InterfaceName string `json:"interfaceName" form:"interfaceName" validate:"required"`
  7. InterfaceDesc string `json:"interfaceDesc" form:"interfaceDesc" validate:"required"`
  8. CustomerID int64 `json:"customerID" form:"customerId" validate:"required"`
  9. DeviceInfo string `json:"deviceInfo" form:"deviceInfo" validate:"required"`
  10. ItemInfo string `json:"itemInfo" form:"itemInfo" validate:"required"`
  11. BuyerInfo string `json:"buyerInfo" form:"buyerInfo"`
  12. AddrInfo string `json:"addrInfo" form:"addrInfo"`
  13. Voucher string `json:"voucher" form:"voucher"`
  14. ReqData string `json:"reqData" form:"reqData" validate:"required"`
  15. ExtraData string `json:"extraData" form:"extraData"`
  16. }
  17. // RiskCheckV2Response .
  18. type RiskCheckV2Response struct {
  19. RiskID int64 `json:"riskId"`
  20. RiskLevel int64 `json:"riskLevel"`
  21. Method string `json:"method"`
  22. Desc string `json:"desc"`
  23. }
  24. // IPListRequest .
  25. type IPListRequest struct {
  26. }
  27. // IPListResponse .
  28. type IPListResponse struct {
  29. List []*IPListDetail `json:"list"`
  30. }
  31. // IPListDetail .
  32. type IPListDetail struct {
  33. IP string `json:"ip"`
  34. Num int64 `json:"num"`
  35. Timestamp int64 `json:"timestamp"`
  36. }
  37. // UIDListRequest .
  38. type UIDListRequest struct {
  39. }
  40. // UIDListResponse .
  41. type UIDListResponse struct {
  42. List []*UIDListDetail `json:"list"`
  43. }
  44. // UIDListDetail .
  45. type UIDListDetail struct {
  46. UID string `json:"uid"`
  47. Num int64 `json:"num"`
  48. Timestamp int64 `json:"timestamp"`
  49. }
  50. // IPDetailRequest .
  51. type IPDetailRequest struct {
  52. IP string `json:"ip" form:"ip" validate:"required"`
  53. Timestamp int64 `json:"timestamp" form:"timestamp" validate:"required"`
  54. }
  55. // IPDetailResponse .
  56. type IPDetailResponse struct {
  57. List []*ListDetail `json:"list"`
  58. }
  59. // UIDDetailRequest .
  60. type UIDDetailRequest struct {
  61. UID string `json:"uid" form:"uid" validate:"required"`
  62. Timestamp int64 `json:"timestamp" form:"timestamp" validate:"required"`
  63. }
  64. // UIDDetailResponse .
  65. type UIDDetailResponse struct {
  66. List []*ListDetail `json:"list"`
  67. }
  68. // ListDetail .
  69. type ListDetail struct {
  70. UID string `json:"uid"`
  71. IP string `json:"ip"`
  72. }
  73. // IPBlackRequest .
  74. type IPBlackRequest struct {
  75. IP string `json:"ip" form:"ip" validate:"required"`
  76. CustomerID int64 `json:"customer_id" form:"customer_id" validate:"required"`
  77. Minute int64 `json:"minute" form:"minute" validate:"required"`
  78. }
  79. // IPBlackResponse .
  80. type IPBlackResponse struct {
  81. }
  82. // UIDBlackRequest .
  83. type UIDBlackRequest struct {
  84. UID string `json:"uid" form:"uid" validate:"required"`
  85. CustomerID int64 `json:"customer_id" form:"customer_id" validate:"required"`
  86. Minute int64 `json:"minute" form:"minute" validate:"required"`
  87. }
  88. // UIDBlackResponse .
  89. type UIDBlackResponse struct {
  90. }