Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityMessage ¶
type EntityMessage struct { Code string `json:"code"` ErrMsg string `json:"error_msg,omitempty"` Body interface{} `json:"body,omitempty"` }
func Empty ¶
func Empty() *EntityMessage
func Error ¶
func Error(code string, err error) *EntityMessage
func Success ¶
func Success(body interface{}) *EntityMessage
Click to show internal directories.
Click to hide internal directories.