Documentation ¶
Index ¶
- Variables
- type AlbumController
- func (this *AlbumController) AddCategory()
- func (this *AlbumController) DeleteCategory()
- func (this *AlbumController) GetTemplate() string
- func (this *AlbumController) Index()
- func (this *AlbumController) Prepare()
- func (this *AlbumController) Rsp(status bool, str string)
- func (this *AlbumController) UpdateCategory()
- type CategoryController
- func (this *CategoryController) AddCategory()
- func (this *CategoryController) DeleteCategory()
- func (this *CategoryController) GetTemplate() string
- func (this *CategoryController) Index()
- func (this *CategoryController) Prepare()
- func (this *CategoryController) Rsp(status bool, str string)
- func (this *CategoryController) UpdateCategory()
- type ConfigController
- func (this *ConfigController) GetTemplate() string
- func (this *ConfigController) IndexOption()
- func (this *ConfigController) IndexUser()
- func (this *ConfigController) Prepare()
- func (this *ConfigController) Rsp(status bool, str string)
- func (this *ConfigController) UpdateOption()
- func (this *ConfigController) UpdateUser()
- type PaperController
- func (this *PaperController) AddPaper()
- func (this *PaperController) DeletePaper()
- func (this *PaperController) GetTemplate() string
- func (this *PaperController) Index()
- func (this *PaperController) Prepare()
- func (this *PaperController) RealDelPaper()
- func (this *PaperController) Rsp(status bool, str string)
- func (this *PaperController) Rubbish()
- func (this *PaperController) UpdatePaper()
- type PhotoController
- func (this *PhotoController) AddPaper()
- func (this *PhotoController) DeletePaper()
- func (this *PhotoController) GetTemplate() string
- func (this *PhotoController) Index()
- func (this *PhotoController) Prepare()
- func (this *PhotoController) RealDelPaper()
- func (this *PhotoController) Rsp(status bool, str string)
- func (this *PhotoController) Rubbish()
- func (this *PhotoController) UpdatePaper()
- type RollController
- type Sizer
- type UploadController
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) Index ¶
func (this *AlbumController) Index()
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) UpdateCategory ¶
func (this *CategoryController) UpdateCategory()
type ConfigController ¶
type ConfigController struct {
// contains filtered or unexported fields
}
func (*ConfigController) IndexOption ¶
func (this *ConfigController) IndexOption()
func (*ConfigController) IndexUser ¶
func (this *ConfigController) IndexUser()
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) Index ¶
func (this *PaperController) Index()
func (*PaperController) RealDelPaper ¶
func (this *PaperController) RealDelPaper()
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) Index ¶
func (this *PhotoController) Index()
func (*PhotoController) RealDelPaper ¶
func (this *PhotoController) RealDelPaper()
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) Index ¶
func (this *RollController) Index()
func (*RollController) UpdateRoll ¶
func (this *RollController) UpdateRoll()
type UploadController ¶
type UploadController struct {
// contains filtered or unexported fields
}
func (*UploadController) FileManage ¶
func (this *UploadController) FileManage()
func (*UploadController) GetWebFile ¶
func (this *UploadController) GetWebFile()
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":"加密文件地址" }
Click to show internal directories.
Click to hide internal directories.