Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultData ¶
type ResultData struct {
Code int `json:"code"` // 业务code
Message string `json:"message"` //返回的提示消息
Data interface{} `json:"data"` // json响应数据
}
func ResponseResult ¶
func ResponseResult(data interface{}, code int, err error) ResultData
封装http请求统一返回的数据结构
Click to show internal directories.
Click to hide internal directories.