21 lines
323 B
Go
21 lines
323 B
Go
package models
|
|
|
|
type Config struct {
|
|
Token string
|
|
Repo string
|
|
UploadDir string
|
|
TaskDir string
|
|
SymLink string
|
|
MaxSizeUpload int64
|
|
}
|
|
|
|
type FileUpload struct {
|
|
TaskID string
|
|
|
|
FileName string
|
|
}
|
|
|
|
type ErrResponse struct {
|
|
Message string `json:"message"`
|
|
Code int `json:"code"`
|
|
}
|