第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TopApiRequestError.go 628 B

1 year ago
12345678910111213141516171819202122232425262728293031323334
  1. package zhios_third_party_utils
  2. import "fmt"
  3. type TopApiRequestError struct {
  4. /*
  5. System code
  6. */
  7. TopCode int `json:"code,omitempty" `
  8. /*
  9. System error message
  10. */
  11. Msg string `json:"msg,omitempty" `
  12. /*
  13. System sub code
  14. */
  15. SubCode string `json:"sub_code,omitempty" `
  16. /*
  17. System sub message
  18. */
  19. SubMsg string `json:"sub_msg,omitempty" `
  20. /*
  21. System request id
  22. */
  23. RequestId string `json:"request_id,omitempty" `
  24. }
  25. func (e *TopApiRequestError) Error() string {
  26. return fmt.Sprintf("code: %d, msg: %s, sub_code: %s, sub_msg: %s ,request_id: %s", e.TopCode, e.Msg, e.SubCode, e.SubMsg, e.RequestId)
  27. }