Versions in this module Expand all Collapse all v1 v1.0.1 Dec 1, 2023 Changes in this version + const ErrorCode + const SuccessCode + func FailJson(isExit bool, r *ghttp.Request, msg string, data ...interface{}) + func JsonExit(r *ghttp.Request, code int, msg string, data ...interface{}) + func RJson(r *ghttp.Request, code int, msg string, data ...interface{}) + func SusJson(isExit bool, r *ghttp.Request, msg string, data ...interface{}) + func WriteTpl(r *ghttp.Request, tpl string, view *gview.View, params ...gview.Params) error + type Response struct + Code int + Data interface{} + Msg string + func (res *Response) FailJson(isExit bool, r *ghttp.Request, msg string, data ...interface{}) + func (res *Response) JsonExit(r *ghttp.Request, code int, msg string, data ...interface{}) + func (res *Response) RJson(r *ghttp.Request, code int, msg string, data ...interface{}) + func (res *Response) Redirect(r *ghttp.Request, location string, code ...int) + func (res *Response) SusJson(isExit bool, r *ghttp.Request, msg string, data ...interface{}) + func (res *Response) WriteTpl(r *ghttp.Request, tpl string, view *gview.View, params ...gview.Params) error