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