feat: add teambition driver

This commit is contained in:
Noah Hsu
2022-09-02 18:24:14 +08:00
parent bc155af255
commit 0f2425ce53
22 changed files with 523 additions and 30 deletions

View File

@ -10,23 +10,23 @@ type Object struct {
IsFolder bool
}
func (o Object) GetName() string {
func (o *Object) GetName() string {
return o.Name
}
func (o Object) GetSize() int64 {
func (o *Object) GetSize() int64 {
return o.Size
}
func (o Object) ModTime() time.Time {
func (o *Object) ModTime() time.Time {
return o.Modified
}
func (o Object) IsDir() bool {
func (o *Object) IsDir() bool {
return o.IsFolder
}
func (o Object) GetID() string {
func (o *Object) GetID() string {
return o.ID
}
@ -38,11 +38,30 @@ type Thumbnail struct {
Thumbnail string
}
type Url struct {
Url string
}
func (w Url) URL() string {
return w.Url
}
func (t Thumbnail) Thumb() string {
return t.Thumbnail
}
type ObjectThumbnail struct {
type ObjThumb struct {
Object
Thumbnail
}
type ObjectURL struct {
Object
Url
}
type ObjThumbURL struct {
Object
Thumbnail
Url
}