Documentation
¶
Index ¶
- func JSON(client *fasthttp.Client, url string, met Method, req interface{}, ...) (err error)
- func JSONRequest(client *fasthttp.Client, url, method string, reqData, resData interface{}, ...) error
- func ThirdPartyCypressRequest(client *fasthttp.Client, url, method, gsToken string, ...) error
- type CypressAPIResponse
- type Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON(client *fasthttp.Client, url string, met Method, req interface{}, res interface{}, trace ...tracehandler.Trace) (err error)
JSON : 自定義 Client的方式JSON Requset/Respone
func JSONRequest ¶
func JSONRequest(client *fasthttp.Client, url, method string, reqData, resData interface{}, trace ...tracehandler.Trace) error
JSONRequest : 自定義 Client的方式JSON Requset/Respone
func ThirdPartyCypressRequest ¶
func ThirdPartyCypressRequest(client *fasthttp.Client, url, method, gsToken string, reqData, resData interface{}, trace ...tracehandler.Trace) error
ThirdPartyCypressRequest : 第三方 Cypress API 請求
Types ¶
type CypressAPIResponse ¶
type CypressAPIResponse struct { Data interface{} `json:"data"` Status struct { Code string `json:"code"` Message string `json:"message"` Datetime string `json:"datetime"` TraceCode string `json:"traceCode"` WalletType string `json:"wallettype"` } `json:"status"` }
CypressAPIResponse 定义API响应的通用结构
Click to show internal directories.
Click to hide internal directories.