Documentation ¶
Index ¶
- type ApiController
- func (this *ApiController) CategoryAdd()
- func (this *ApiController) CategoryDelete()
- func (this *ApiController) CategoryList()
- func (this *ApiController) CategoryUpdate()
- func (this *ApiController) CosDeleteFile()
- func (this *ApiController) CosList()
- func (this *ApiController) CosUpload()
- func (this *ApiController) FileDelete()
- func (this *ApiController) FileList()
- func (this *ApiController) FileUpload()
- func (this *ApiController) OssDeleteFile()
- func (this *ApiController) OssList()
- func (this *ApiController) OssUpload()
- func (this *ApiController) QiniuDeleteFile()
- func (this *ApiController) QiniuList()
- func (this *ApiController) QiniuUpload()
- func (this *ApiController) SiteConfig()
- func (this *ApiController) UpyunDeleteFile()
- func (this *ApiController) UpyunList()
- func (this *ApiController) UpyunUpload()
- type List
- type MainController
- func (this *MainController) Admin()
- func (this *MainController) Category()
- func (this *MainController) CategoryUpdate()
- func (this *MainController) CosUpload()
- func (this *MainController) Get()
- func (this *MainController) LocalUpload()
- func (this *MainController) OssUpload()
- func (this *MainController) QiniuUpload()
- func (this *MainController) Setting()
- func (this *MainController) UpyunUpload()
- type Response
- type ResponseError
- type Result
- type TencentList
- type UploadData
- type UpyunList
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiController ¶
type ApiController struct {
beego.Controller
}
func (*ApiController) CategoryAdd ¶
func (this *ApiController) CategoryAdd()
添加分类api 路由 /api/category/add
func (*ApiController) CategoryDelete ¶
func (this *ApiController) CategoryDelete()
删除分类api 路由 /api/category/delete
func (*ApiController) CategoryList ¶
func (this *ApiController) CategoryList()
分类列表 路由 /api/category/list
func (*ApiController) CategoryUpdate ¶
func (this *ApiController) CategoryUpdate()
修改分类api 路由 /api/category/update
func (*ApiController) CosDeleteFile ¶
func (this *ApiController) CosDeleteFile()
腾讯云文件删除 路由 /api/file/cos/delete
func (*ApiController) FileUpload ¶
func (this *ApiController) FileUpload()
文件上传api 路由 /api/file/upload 返回一个包含文件存储信息的json数据
func (*ApiController) QiniuDeleteFile ¶
func (this *ApiController) QiniuDeleteFile()
七牛云文件删除 路由 /api/file/qiniu/delete
func (*ApiController) QiniuList ¶
func (this *ApiController) QiniuList()
七牛云文件列表接口 路由 /api/file/qiniu/list
func (*ApiController) QiniuUpload ¶
func (this *ApiController) QiniuUpload()
七牛云文件上传接口 路由 /api/upload/qiniu
func (*ApiController) SiteConfig ¶
func (this *ApiController) SiteConfig()
网站设置页面 路由 /api/site/config
func (*ApiController) UpyunDeleteFile ¶
func (this *ApiController) UpyunDeleteFile()
又拍云删除 路由 /api/file/upyun/delete
func (*ApiController) UpyunList ¶
func (this *ApiController) UpyunList()
又拍云文件列表 路由 /api/file/upyun/list
func (*ApiController) UpyunUpload ¶
func (this *ApiController) UpyunUpload()
又拍云上传 路由 /api/upload/upyun
type List ¶
type List struct { Key string `json:"key"` Hash string `json:"hash"` Fsize int64 `json:"fsize"` MimeType string `json:"mimeType"` PutTime int64 `json:"putTime"` Type int64 `json:"type"` Status int64 `json:"status"` }
七牛云资源列表
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) CategoryUpdate ¶
func (this *MainController) CategoryUpdate()
分类修改页面 路由 /admin/category/update
func (*MainController) CosUpload ¶
func (this *MainController) CosUpload()
腾讯云COS上传页面 路由 /admin/upload/cos
func (*MainController) LocalUpload ¶
func (this *MainController) LocalUpload()
本地上传页面 路由 /admin/upload/local
func (*MainController) OssUpload ¶
func (this *MainController) OssUpload()
阿里云OSS上传页面 路由 /admin/upload/oss
func (*MainController) QiniuUpload ¶
func (this *MainController) QiniuUpload()
七牛云上传页面 路由 /admin/upload/qiniu
func (*MainController) UpyunUpload ¶
func (this *MainController) UpyunUpload()
又拍云上传页面 路由 /admin/upload/upyun
type Result ¶
type Result struct { Error int `json:"error"` //错误代码 Title string `json:"title"` //标题 Msg string `json:"msg"` //返回信息 Count int `json:"count"` //数据数量 Data interface{} `json:"data"` //数据 }
返回的数据结构
type TencentList ¶
type TencentList struct { APPID string SecretId string SecretKey string Bucket string Object string Region string ACL string CORS string MultipartUploads string }
腾讯云对象存储COS
type UserController ¶
type UserController struct {
beego.Controller
}
func (*UserController) Login ¶
func (this *UserController) Login()
func (*UserController) Logout ¶
func (this *UserController) Logout()