Documentation
¶
Index ¶
- func Json(r *ghttp.Request, code int, message string, data ...interface{})
- func JsonExit(r *ghttp.Request, code int, message string, data ...interface{})
- func JsonRedirect(r *ghttp.Request, code int, message, redirect string, data ...interface{})
- func JsonRedirectExit(r *ghttp.Request, code int, message, redirect string, data ...interface{})
- func ToJsonFIle(r *ghttp.Request, content io.ReadSeeker, fileTag string)
- func ToPlainText(r *ghttp.Request, content []byte, fileName string)
- func ToXls(r *ghttp.Request, content io.ReadSeeker, fileTag string)
- type JsonRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonRedirect ¶
JsonRedirect 返回标准JSON数据引导客户端跳转。
func JsonRedirectExit ¶
JsonRedirectExit 返回标准JSON数据引导客户端跳转,并退出当前HTTP执行函数。
func ToJsonFIle ¶
func ToJsonFIle(r *ghttp.Request, content io.ReadSeeker, fileTag string)
ToJsonFIle 向前端返回文件 参数 content 为上面生成的io.ReadSeeker, fileTag 为返回前端的文件名
func ToPlainText ¶
ToPlainText 输出流
Types ¶
Click to show internal directories.
Click to hide internal directories.