dto

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupReq added in v0.0.3

type BackupReq struct {
	GlobalReq
	Local string
}

func NewBackupReq added in v0.0.3

func NewBackupReq() *BackupReq

type DeleteReq

type DeleteReq struct {
	GlobalReq
	FSID uint64
	Yes  bool
}

func NewDeleteReq

func NewDeleteReq() *DeleteReq

type DownloadReq

type DownloadReq struct {
	GlobalReq
	OutputDir   string
	OutputPath  string
	IsSync      bool
	IsRecursion bool
}

func NewDownloadReq

func NewDownloadReq() *DownloadReq

type GlobalReq

type GlobalReq struct {
	AppId     string
	IsVerbose bool
	Path      string
	Config    string
}

func NewGlobalReq

func NewGlobalReq() *GlobalReq

type ListReq

type ListReq struct {
	GlobalReq
	Page  int
	Limit int32
}

func NewListReq

func NewListReq() *ListReq

type LoginReq

type LoginReq struct {
	GlobalReq
	Width int // 二维码显示宽度(列数),0 表示自动检测
}

func NewLoginReq

func NewLoginReq() *LoginReq

type LogoutReq added in v0.0.9

type LogoutReq struct {
	Yes            bool
	KeepCredential bool
}

LogoutReq 登出命令请求参数。

字段说明:

  • Yes: 跳过确认提示,直接执行登出
  • KeepCredential: 保留应用凭证(AppID/AppKey/SecretKey),默认 true

func NewLogoutReq added in v0.0.9

func NewLogoutReq() *LogoutReq

NewLogoutReq 创建 LogoutReq 实例,KeepCredential 默认为 true。

设计说明:当前版本不区分应用凭证和用户 token,KeepCredential 字段 为接口一致性预留,未来多账号场景下可扩展。

type RefreshReq

type RefreshReq struct {
	GlobalReq
	IsSync bool
}

func NewRefreshReq

func NewRefreshReq() *RefreshReq

type UploadReq added in v0.0.3

type UploadReq struct {
	GlobalReq
	Local     string
	IsRewrite bool
}

func NewUploadReq added in v0.0.3

func NewUploadReq() *UploadReq

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL