2024-11-27 15:41:22 +08:00
|
|
|
// Package network define struct of network operation
|
|
|
|
|
package network
|
|
|
|
|
|
2024-12-06 16:13:11 +08:00
|
|
|
type SuccessResponseHeader struct {
|
|
|
|
|
Status int `json:"status" example:"200"`
|
2024-11-27 15:41:22 +08:00
|
|
|
ErrMsg string `json:"err_msg"`
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-06 16:13:11 +08:00
|
|
|
type FailResponseHeader struct {
|
|
|
|
|
Status int `json:"status" example:"400"`
|
|
|
|
|
ErrMsg string `json:"err_msg"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FailureResponse struct {
|
|
|
|
|
FailResponseHeader `json:"header"`
|
|
|
|
|
PayLoad map[string]interface{} `json:"payload" swaggertype:"object,string" example:"key:value"`
|
2024-11-27 15:41:22 +08:00
|
|
|
}
|
|
|
|
|
|
2024-12-06 16:13:11 +08:00
|
|
|
type SuccessResponse struct {
|
|
|
|
|
SuccessResponseHeader `json:"header"`
|
|
|
|
|
PayLoad map[string]interface{} `json:"payload" swaggertype:"object,string" example:"key:value"`
|
2024-11-27 15:41:22 +08:00
|
|
|
}
|