Add the file downloader.
This commit is contained in:
10
rest/web_error.go
Normal file
10
rest/web_error.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user