Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct {
beego.Controller
}
BaseController 基础控制器
func (*BaseController) BindVForm ¶
func (bc *BaseController) BindVForm(obj interface{}) (err error)
BindVForm 绑定并验证表单数据
func (*BaseController) Error400 ¶
func (bc *BaseController) Error400(msgs ...string)
Error400 响应400错误码
func (*BaseController) Error500 ¶
func (bc *BaseController) Error500(msgs ...string)
Error500 响应500错误码
type DownloadController ¶
type DownloadController struct {
BaseController
}
DownloadController 文件下载
func (*DownloadController) AddHistory ¶
func (dc *DownloadController) AddHistory(fileType, fileSize int, fileName, fileLink string)
AddHistory 增加下载历史
func (*DownloadController) DoResponse ¶
func (dc *DownloadController) DoResponse(fileName string, fileLimit int64, resp *http.Response, header http.Header)
DoResponse 响应文件数据
type FileController ¶
type FileController struct {
DownloadController
}
FileController 文件下载控制器
func (*FileController) Post ¶
func (fc *FileController) Post()
Post /file @router /download/file [post]
type MainController ¶
type MainController struct {
BaseController
}
MainController 入口控制器
func (*MainController) Captcha ¶
func (mc *MainController) Captcha()
Captcha /captcha @router /captcha/:id.png [get]
type SuggestController ¶
type SuggestController struct {
BaseController
}
SuggestController 反馈建议
func (*SuggestController) Get ¶
func (sc *SuggestController) Get()
Get /suggest @router /suggest [get]
func (*SuggestController) Post ¶
func (sc *SuggestController) Post()
Post /suggest @router /suggest [post]
type YVideoInfo ¶
YVideoInfo youtube视频信息
type YoutubeController ¶
type YoutubeController struct {
DownloadController
}
YoutubeController youtube视频下载控制器
func (*YoutubeController) Post ¶
func (yc *YoutubeController) Post()
Post /youtube @router /download/youtube [post]
Click to show internal directories.
Click to hide internal directories.