beegoinit/response/json_interface.go

10 lines
181 B
Go

package response
type JsonInterface interface {
SetCode(code int)
SetMessage(msg string)
SetData(data interface{})
SetStatus(status bool)
ToString() (str string, err error)
}