Delete schemas
Browse files- schemas/common.go +0 -6
- schemas/file.schema.go +0 -78
- schemas/upload.schema.go +0 -21
schemas/common.go
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
package schemas
|
| 2 |
-
|
| 3 |
-
type Message struct {
|
| 4 |
-
Status bool `json:"status"`
|
| 5 |
-
Message string `json:"message,omitempty"`
|
| 6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
schemas/file.schema.go
DELETED
|
@@ -1,78 +0,0 @@
|
|
| 1 |
-
package schemas
|
| 2 |
-
|
| 3 |
-
import (
|
| 4 |
-
"time"
|
| 5 |
-
|
| 6 |
-
"github.com/divyam234/teldrive/models"
|
| 7 |
-
)
|
| 8 |
-
|
| 9 |
-
type PaginationQuery struct {
|
| 10 |
-
PerPage int `form:"perPage"`
|
| 11 |
-
NextPageToken string `form:"nextPageToken"`
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
type SortingQuery struct {
|
| 15 |
-
Sort string `form:"sort"`
|
| 16 |
-
Order string `form:"order"`
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
type FileQuery struct {
|
| 20 |
-
Name string `form:"name" mapstructure:"name,omitempty"`
|
| 21 |
-
Search string `form:"search" mapstructure:"search,omitempty"`
|
| 22 |
-
Type string `form:"type" mapstructure:"type,omitempty"`
|
| 23 |
-
Path string `form:"path" mapstructure:"path,omitempty"`
|
| 24 |
-
Op string `form:"op" mapstructure:"op,omitempty"`
|
| 25 |
-
Starred *bool `form:"starred" mapstructure:"starred,omitempty"`
|
| 26 |
-
MimeType string `form:"mimeType" mapstructure:"mime_type,omitempty"`
|
| 27 |
-
ParentID string `form:"parentId" mapstructure:"parent_id,omitempty"`
|
| 28 |
-
UpdatedAt *time.Time `form:"updatedAt" mapstructure:"updated_at,omitempty"`
|
| 29 |
-
Status string `mapstructure:"status"`
|
| 30 |
-
UserID int64 `mapstructure:"user_id"`
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
type FileIn struct {
|
| 34 |
-
Name string `json:"name" mapstructure:"name,omitempty"`
|
| 35 |
-
Type string `json:"type" mapstructure:"type,omitempty"`
|
| 36 |
-
Parts *models.Parts `json:"parts,omitempty" mapstructure:"parts,omitempty"`
|
| 37 |
-
MimeType string `json:"mimeType" mapstructure:"mime_type,omitempty"`
|
| 38 |
-
ChannelID *int64 `json:"channelId,omitempty" mapstructure:"channel_id,omitempty"`
|
| 39 |
-
Path string `json:"path" mapstructure:"path,omitempty"`
|
| 40 |
-
Size int64 `json:"size" mapstructure:"size,omitempty"`
|
| 41 |
-
Starred *bool `json:"starred" mapstructure:"starred,omitempty"`
|
| 42 |
-
Depth *int `json:"depth,omitempty" mapstructure:"depth,omitempty"`
|
| 43 |
-
Status string `mapstructure:"status,omitempty"`
|
| 44 |
-
UserID int64 `json:"userId" mapstructure:"user_id,omitempty"`
|
| 45 |
-
ParentID string `json:"parentId" mapstructure:"parent_id,omitempty"`
|
| 46 |
-
}
|
| 47 |
-
|
| 48 |
-
type FileOut struct {
|
| 49 |
-
ID string `json:"id"`
|
| 50 |
-
Name string `json:"name"`
|
| 51 |
-
Type string `json:"type"`
|
| 52 |
-
MimeType string `json:"mimeType" mapstructure:"mime_type"`
|
| 53 |
-
Path string `json:"path,omitempty" mapstructure:"path,omitempty"`
|
| 54 |
-
Size int64 `json:"size,omitempty" mapstructure:"size,omitempty"`
|
| 55 |
-
Starred *bool `json:"starred"`
|
| 56 |
-
ParentID string `json:"parentId,omitempty" mapstructure:"parent_id"`
|
| 57 |
-
UpdatedAt time.Time `json:"updatedAt,omitempty" mapstructure:"updated_at"`
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
type FileResponse struct {
|
| 61 |
-
Results []FileOut `json:"results"`
|
| 62 |
-
NextPageToken string `json:"nextPageToken,omitempty"`
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
type FileOutFull struct {
|
| 66 |
-
FileOut
|
| 67 |
-
Parts *models.Parts `json:"parts,omitempty"`
|
| 68 |
-
ChannelID *int64 `json:"channelId"`
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
type FileOperation struct {
|
| 72 |
-
Files []string `json:"files"`
|
| 73 |
-
Destination string `json:"destination,omitempty"`
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
type MkDir struct {
|
| 77 |
-
Path string `json:"path"`
|
| 78 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
schemas/upload.schema.go
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
package schemas
|
| 2 |
-
|
| 3 |
-
type UploadQuery struct {
|
| 4 |
-
Filename string `form:"fileName"`
|
| 5 |
-
PartNo int `form:"partNo,omitempty"`
|
| 6 |
-
TotalParts int `form:"totalparts"`
|
| 7 |
-
}
|
| 8 |
-
|
| 9 |
-
type UploadPartOut struct {
|
| 10 |
-
ID string `json:"id"`
|
| 11 |
-
Name string `json:"name"`
|
| 12 |
-
PartId int `json:"partId"`
|
| 13 |
-
PartNo int `json:"partNo"`
|
| 14 |
-
TotalParts int `json:"totalParts"`
|
| 15 |
-
ChannelID int64 `json:"channelId"`
|
| 16 |
-
Size int64 `json:"size"`
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
type UploadOut struct {
|
| 20 |
-
Parts []UploadPartOut `json:"parts"`
|
| 21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|