Documentation ¶
Index ¶
- type BaseController
- func (baseService *BaseController) GetCtxBool(ctx *fasthttp.RequestCtx, key string) bool
- func (baseService *BaseController) GetCtxFloat64(ctx *fasthttp.RequestCtx, key string) float64
- func (baseService *BaseController) GetCtxInt(ctx *fasthttp.RequestCtx, key string) int
- func (baseService *BaseController) GetCtxString(ctx *fasthttp.RequestCtx, key string) string
- type ImageController
- type JsonResult
- type Size
- type Stat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct { }
func (*BaseController) GetCtxBool ¶
func (baseService *BaseController) GetCtxBool(ctx *fasthttp.RequestCtx, key string) bool
get request content text bool
func (*BaseController) GetCtxFloat64 ¶
func (baseService *BaseController) GetCtxFloat64(ctx *fasthttp.RequestCtx, key string) float64
get request content text float64
func (*BaseController) GetCtxInt ¶
func (baseService *BaseController) GetCtxInt(ctx *fasthttp.RequestCtx, key string) int
get request content text int
func (*BaseController) GetCtxString ¶
func (baseService *BaseController) GetCtxString(ctx *fasthttp.RequestCtx, key string) string
get request content text string
type ImageController ¶
type ImageController struct {
BaseController
}
func NewImageController ¶
func NewImageController() *ImageController
func (*ImageController) CrossDomain ¶
func (this *ImageController) CrossDomain(ctx *fasthttp.RequestCtx)
处理跨域
func (*ImageController) Download ¶
func (this *ImageController) Download(ctx *fasthttp.RequestCtx)
下载
type JsonResult ¶
type JsonResult struct { Code int `json:"code"` Message interface{} `json:"message"` Data interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.