Add the file downloader.

This commit is contained in:
zicla
2018-07-03 13:45:22 +08:00
parent 1453d1a84b
commit b91374bdf3
5 changed files with 370 additions and 19 deletions

10
rest/web_error.go Normal file
View File

@ -0,0 +1,10 @@
package rest
type WebError struct {
Code int `json:"code"`
Msg string `json:"msg"`
}
func (this *WebError) Error() string {
return this.Msg
}