blog

package
v0.0.0-...-d43a9a6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileAllow = map[string][]string{
	"image": {
		"jpg", "jpeg", "png", "bmp", "gif"},
	"flash": {
		"swf", "flv"},
	"media": {
		"swf", "flv", "mp3", "wav", "wma", "wmv", "mid", "avi", "mpg", "asf", "rm", "rmvb"},
	"file": {
		"doc", "docx", "xls", "xlsx", "ppt", "htm", "html", "txt", "zip", "rar", "gz", "bz2", "pdf"},
	"other": {
		"jpg", "jpeg", "png", "bmp", "gif", "swf", "flv", "mp3",
		"wav", "wma", "wmv", "mid", "avi", "mpg", "asf", "rm", "rmvb",
		"doc", "docx", "xls", "xlsx", "ppt", "htm", "html", "txt", "zip", "rar", "gz", "bz2"}}
View Source
var FileBytes = 1 << 25 // (1<<25)/1000.0/1000.0 33.54 不能超出33M

Functions

This section is empty.

Types

type AlbumController

type AlbumController struct {
	// contains filtered or unexported fields
}

func (*AlbumController) AddCategory

func (this *AlbumController) AddCategory()

func (*AlbumController) DeleteCategory

func (this *AlbumController) DeleteCategory()

func (*AlbumController) GetTemplate

func (this *AlbumController) GetTemplate() string

获取模板位置

func (*AlbumController) Index

func (this *AlbumController) Index()

func (*AlbumController) Prepare

func (this *AlbumController) Prepare()

func (*AlbumController) Rsp

func (this *AlbumController) Rsp(status bool, str string)

func (*AlbumController) UpdateCategory

func (this *AlbumController) UpdateCategory()

type CategoryController

type CategoryController struct {
	// contains filtered or unexported fields
}

func (*CategoryController) AddCategory

func (this *CategoryController) AddCategory()

func (*CategoryController) DeleteCategory

func (this *CategoryController) DeleteCategory()

func (*CategoryController) GetTemplate

func (this *CategoryController) GetTemplate() string

获取模板位置

func (*CategoryController) Index

func (this *CategoryController) Index()

func (*CategoryController) Prepare

func (this *CategoryController) Prepare()

func (*CategoryController) Rsp

func (this *CategoryController) Rsp(status bool, str string)

func (*CategoryController) UpdateCategory

func (this *CategoryController) UpdateCategory()

type ConfigController

type ConfigController struct {
	// contains filtered or unexported fields
}

func (*ConfigController) GetTemplate

func (this *ConfigController) GetTemplate() string

获取模板位置

func (*ConfigController) IndexOption

func (this *ConfigController) IndexOption()

func (*ConfigController) IndexUser

func (this *ConfigController) IndexUser()

func (*ConfigController) Prepare

func (this *ConfigController) Prepare()

func (*ConfigController) Rsp

func (this *ConfigController) Rsp(status bool, str string)

func (*ConfigController) UpdateOption

func (this *ConfigController) UpdateOption()

func (*ConfigController) UpdateUser

func (this *ConfigController) UpdateUser()

type PaperController

type PaperController struct {
	// contains filtered or unexported fields
}

func (*PaperController) AddPaper

func (this *PaperController) AddPaper()

func (*PaperController) DeletePaper

func (this *PaperController) DeletePaper()

func (*PaperController) GetTemplate

func (this *PaperController) GetTemplate() string

获取模板位置

func (*PaperController) Index

func (this *PaperController) Index()

func (*PaperController) Prepare

func (this *PaperController) Prepare()

func (*PaperController) RealDelPaper

func (this *PaperController) RealDelPaper()

func (*PaperController) Rsp

func (this *PaperController) Rsp(status bool, str string)

func (*PaperController) Rubbish

func (this *PaperController) Rubbish()

func (*PaperController) UpdatePaper

func (this *PaperController) UpdatePaper()

type PhotoController

type PhotoController struct {
	// contains filtered or unexported fields
}

func (*PhotoController) AddPaper

func (this *PhotoController) AddPaper()

func (*PhotoController) DeletePaper

func (this *PhotoController) DeletePaper()

func (*PhotoController) GetTemplate

func (this *PhotoController) GetTemplate() string

获取模板位置

func (*PhotoController) Index

func (this *PhotoController) Index()

func (*PhotoController) Prepare

func (this *PhotoController) Prepare()

func (*PhotoController) RealDelPaper

func (this *PhotoController) RealDelPaper()

func (*PhotoController) Rsp

func (this *PhotoController) Rsp(status bool, str string)

func (*PhotoController) Rubbish

func (this *PhotoController) Rubbish()

func (*PhotoController) UpdatePaper

func (this *PhotoController) UpdatePaper()

type RollController

type RollController struct {
	// contains filtered or unexported fields
}

func (*RollController) AddRoll

func (this *RollController) AddRoll()

func (*RollController) DeleteRoll

func (this *RollController) DeleteRoll()

func (*RollController) GetTemplate

func (this *RollController) GetTemplate() string

获取模板位置

func (*RollController) Index

func (this *RollController) Index()

func (*RollController) Prepare

func (this *RollController) Prepare()

func (*RollController) Rsp

func (this *RollController) Rsp(status bool, str string)

func (*RollController) UpdateRoll

func (this *RollController) UpdateRoll()

type Sizer

type Sizer interface {
	Size() int64
}

type UploadController

type UploadController struct {
	// contains filtered or unexported fields
}

func (*UploadController) FileManage

func (this *UploadController) FileManage()

func (*UploadController) GetTemplate

func (this *UploadController) GetTemplate() string

获取模板位置

func (*UploadController) GetWebFile

func (this *UploadController) GetWebFile()

func (*UploadController) Prepare

func (this *UploadController) Prepare()

func (*UploadController) Rsp

func (this *UploadController) Rsp(status bool, str string)

func (*UploadController) UploadFile

func (this *UploadController) UploadFile()

imgFile: 文件form名称 dir: 上传类型,分别为image、flash、media、file、other 返回格式(JSON)

//成功时

{
	"error" : 0,
	"url" : "http://www.example.com/path/to/file.ext"
}

//失败时

{
	"error" : 1,
	"message" : "错误信息"
	"token":"加密文件地址"
}

Jump to

Keyboard shortcuts

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