controllers

package
v0.0.0-...-d2760a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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)

下载

func (*ImageController) Upload

func (this *ImageController) Upload(ctx *fasthttp.RequestCtx)

上传

type JsonResult

type JsonResult struct {
	Code    int         `json:"code"`
	Message interface{} `json:"message"`
	Data    interface{} `json:"data"`
}

type Size

type Size interface {
	Size() int64
}

获取文件大小的接口

type Stat

type Stat interface {
	Stat() (os.FileInfo, error)
}

获取文件信息的接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL