Documentation ¶
Index ¶
- func AuthHttpResult(r *http.Request, w http.ResponseWriter, resp interface{}, err error)
- func HttpResult(r *http.Request, w http.ResponseWriter, resp interface{}, err error)
- func JobResult(ctx context.Context, resp interface{}, err error)
- func NewCodeError(code int, msg string) error
- func NewDefaultError(msg string) error
- func ParamErrorResult(r *http.Request, w http.ResponseWriter, err error)
- type Body
- type CodeError
- type CodeErrorResponse
- type NullJson
- type ResponseErrorBean
- type ResponseSuccessBean
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHttpResult ¶
func AuthHttpResult(r *http.Request, w http.ResponseWriter, resp interface{}, err error)
授权的http方法
Types ¶
type Body ¶
type CodeError ¶
func (*CodeError) Data ¶
func (e *CodeError) Data() *CodeErrorResponse
type CodeErrorResponse ¶
type NullJson ¶
type NullJson struct{}
Click to show internal directories.
Click to hide internal directories.