beegoinit/response/json.go
2020-07-09 15:01:25 +08:00

18 lines
295 B
Go

package response
type Json struct {
Code int `json:"code"`
Data interface{} `json:"data"`
Msg string `json:"msg"`
Status bool `json:"status"`
}
func GetDefaultJsonResponse() *Json {
return &Json{
Code: 0,
Data: nil,
Msg: "ok",
Status: true,
}
}