dto

package
v0.0.0-...-028896a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadFileRequest

type DownloadFileRequest struct {
	FilePath string `json:"filePath"`
}

type FileInfo

type FileInfo struct {
	Name         string    `json:"name"`
	Size         int64     `json:"size"`
	LastModified time.Time `json:"lastModified"`
}

type ListFilesResponse

type ListFilesResponse struct {
	Files []FileInfo `json:"files"`
}

type LoginUserRequest

type LoginUserRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginUserResponse

type LoginUserResponse struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

type LogoutRequest

type LogoutRequest struct {
	AccessToken string `json:"accessToken"`
}

type LogoutResponse

type LogoutResponse struct {
	Success bool `json:"success"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `json:"refreshToken"`
}

type RefreshTokenResponse

type RefreshTokenResponse struct {
	AccessToken string `json:"accessToken"`
}

type RegisterUserRequest

type RegisterUserRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type RegisterUserResponse

type RegisterUserResponse struct {
	Success bool `json:"success"`
}

type RemoveFileRequest

type RemoveFileRequest struct {
	FilePath string `json:"filePath"`
}

type RemoveFileResponse

type RemoveFileResponse struct {
	Success bool `json:"success"`
}

type UploadFileRequest

type UploadFileRequest struct {
	FilePath string         `json:"filePath"`
	File     multipart.File `json:"file"`
}

func NewUploadFileRequestFromHTTPForm

func NewUploadFileRequestFromHTTPForm(req *http.Request) (*UploadFileRequest, error)

type UploadFileResponse

type UploadFileResponse struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

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