Documentation
¶
Overview ¶
@author fenglei
Index ¶
- Constants
- func ApiWrite(r *ghttp.Request, content ...interface{})
- func ApiWriteJson(r *ghttp.Request, content interface{})
- func FailWithData(r *ghttp.Request, msg string)
- func FailWithDataInfoLog(r *ghttp.Request, msg string)
- func OkWithData(r *ghttp.Request, content interface{})
- func OkWithDataPage(r *ghttp.Request, content interface{}, total int64)
- func RunWindowsServer(s *ghttp.Server, shutdownHook func()) error
- type Response
- type ResponsePage
Constants ¶
View Source
const ( ERROR = "error" SUCCESS = "success" )
Variables ¶
This section is empty.
Functions ¶
func ApiWriteJson ¶
func FailWithDataInfoLog ¶ added in v0.1.36
FailWithDataInfoLog 错误不记录日志
func OkWithData ¶
func OkWithDataPage ¶ added in v0.1.44
func RunWindowsServer ¶
Types ¶
type Response ¶
type Response struct {
Code string `json:"code"`
Result interface{} `json:"result"`
Msg interface{} `json:"message"`
}
type ResponsePage ¶
Click to show internal directories.
Click to hide internal directories.