Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + const ALBUM_API_URL + const API_URL + const FILE_API_URL_V1 + const FILE_API_URL_V2 + const USER_API_URL + func BoolToIntStr(b bool) string + func DecryptMd5(encryptMd5 string) string + func EncryptMd5(originalMd5 string) string + func MustString(str string, err error) string + type Addition struct + AlbumID string + ClientID string + ClientSecret string + DeleteOrigin bool + RefreshToken string + ShowType string + UploadThread string + type Album struct + AlbumID string + CreationTime int64 + JoinTime int64 + Mtime int64 + Tid int64 + Title string + func (a *Album) CreateTime() time.Time + func (a *Album) GetHash() utils.HashInfo + func (a *Album) GetID() string + func (a *Album) GetName() string + func (a *Album) GetPath() string + func (a *Album) GetSize() int64 + func (a *Album) IsDir() bool + func (a *Album) ModTime() time.Time + type AlbumFile struct + AlbumID string + Tid int64 + Uk int64 + type AlbumFileListResp struct + List []AlbumFile + Reset int64 + TotalCount int64 + type AlbumListResp struct + List []Album + Reset int64 + TotalCount int64 + type BaiduPhoto struct + AccessToken string + Uk int64 + func (d *BaiduPhoto) AddAlbumFile(ctx context.Context, album *Album, file *File) (*AlbumFile, error) + func (d *BaiduPhoto) Config() driver.Config + func (d *BaiduPhoto) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *BaiduPhoto) CopyAlbumFile(ctx context.Context, file *AlbumFile) (*File, error) + func (d *BaiduPhoto) CreateAlbum(ctx context.Context, name string) (*Album, error) + func (d *BaiduPhoto) DeleteAlbum(ctx context.Context, album *Album) error + func (d *BaiduPhoto) DeleteAlbumFile(ctx context.Context, file *AlbumFile) error + func (d *BaiduPhoto) DeleteFile(ctx context.Context, file *File) error + func (d *BaiduPhoto) Drop(ctx context.Context) error + func (d *BaiduPhoto) Get(furl string, callback base.ReqCallback, resp interface{}) (*resty.Response, error) + func (d *BaiduPhoto) GetAddition() driver.Additional + func (d *BaiduPhoto) GetAlbumDetail(ctx context.Context, albumID string) (*Album, error) + func (d *BaiduPhoto) GetAllAlbum(ctx context.Context) (albums []Album, err error) + func (d *BaiduPhoto) GetAllAlbumFile(ctx context.Context, album *Album, passwd string) (files []AlbumFile, err error) + func (d *BaiduPhoto) GetAllFile(ctx context.Context) (files []File, err error) + func (d *BaiduPhoto) GetRoot(ctx context.Context) (model.Obj, error) + func (d *BaiduPhoto) Init(ctx context.Context) error + func (d *BaiduPhoto) JoinAlbum(ctx context.Context, code string) (*Album, error) + func (d *BaiduPhoto) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *BaiduPhoto) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *BaiduPhoto) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) + func (d *BaiduPhoto) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *BaiduPhoto) Post(furl string, callback base.ReqCallback, resp interface{}) (*resty.Response, error) + func (d *BaiduPhoto) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error) + func (d *BaiduPhoto) Remove(ctx context.Context, obj model.Obj) error + func (d *BaiduPhoto) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) + func (d *BaiduPhoto) Request(client *resty.Client, furl string, method string, callback base.ReqCallback, ...) (*resty.Response, error) + func (d *BaiduPhoto) SetAlbumName(ctx context.Context, album *Album, name string) (*Album, error) + type CopyFile struct + Ctime int64 + FromFsid int64 + Fsid int64 + Path string + ShootTime int + type CopyFileResp struct + List []CopyFile + type CreateFileResp struct + Data UploadFile + type Erron struct + Errno int + RequestID int + type File struct + Ctime int64 + Fsid int64 + Md5 string + Mtime int64 + Path string + Size int64 + Thumburl []string + func (c *File) CreateTime() time.Time + func (c *File) GetHash() utils.HashInfo + func (c *File) GetID() string + func (c *File) GetName() string + func (c *File) GetPath() string + func (c *File) GetSize() int64 + func (c *File) IsDir() bool + func (c *File) ModTime() time.Time + func (c *File) Thumb() string + type FileListResp struct + List []File + type InviteResp struct + Pdata struct{ ... } + type JoinOrCreateAlbumResp struct + AlbumID string + AlreadyExists int + type Page struct + Cursor string + HasMore int + func (p Page) HasNextPage() bool + type PrecreateResp struct + BlockList []int + Path string + ReturnType int + UploadID string + type Root = model.Object + type TokenErrResp struct + ErrorDescription string + ErrorMsg string + func (e *TokenErrResp) Error() string + type UInfo struct + YouaID string + type UploadFile struct + Category int + Ctime int64 + FsID int64 + Isdir int + Md5 string + Mtime int64 + Path string + ServerFilename string + ServerMd5 string + ShootTime int + Size int64