bind

package
v1.5.7-0...-b5473c1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyFileCopy

type BodyFileCopy struct {
	NewPath string `json:"path" binding:"required"`
}

type BodyFileMove

type BodyFileMove struct {
	NewDir string `json:"dir"`
}

type BodyFileRename

type BodyFileRename struct {
	NewName string `json:"name" binding:"required"`
}

type BodyFolder

type BodyFolder struct {
	Sid  int64  `json:"sid" binding:"required"`
	Name string `json:"name" binding:"required"`
	Dir  string `json:"dir"`
}

func (*BodyFolder) ToMatter

func (p *BodyFolder) ToMatter(uid int64) *model.Matter

type BodyMatter

type BodyMatter struct {
	Sid   int64  `json:"sid" binding:"required"`
	Name  string `json:"name" binding:"required"`
	IsDir bool   `json:"is_dir"`
	Dir   string `json:"dir"`
	Type  string `json:"type"`
	Size  int64  `json:"size"`
}

func (*BodyMatter) ToMatter

func (p *BodyMatter) ToMatter(uid int64) *model.Matter

type BodyShare

type BodyShare struct {
	Id        int64  `json:"id"`
	Matter    string `json:"matter"`
	Private   bool   `json:"private"`
	ExpireSec int64  `json:"expire_sec"`
}

type BodyShareDraw

type BodyShareDraw struct {
	Secret string `form:"secret"`
}

type BodyToken

type BodyToken struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
	Captcha  string `json:"captcha"`
}

type BodyUserCreation

type BodyUserCreation struct {
	Email      string `json:"email" binding:"required"`
	Password   string `json:"password" binding:"required"`
	Ticket     string `json:"ticket"`
	Roles      string `json:"roles"`
	StorageMax uint64 `json:"storage_max"`
}

type BodyUserPassword

type BodyUserPassword struct {
	OldPassword string `json:"old_password" binding:"required"`
	NewPassword string `json:"new_password" binding:"required"`
}

type BodyUserPatch

type BodyUserPatch struct {
	Token     string `json:"token" binding:"required"`
	Password  string `json:"password"`
	Activated bool   `json:"activated"`
}

type BodyUserProfile

type BodyUserProfile struct {
	Avatar   string `json:"avatar"`
	Nickname string `json:"nickname"`
	Bio      string `json:"bio"`
	URL      string `json:"url"`
	Company  string `json:"company"`
	Location string `json:"location"`
	Locale   string `json:"locale"`
}

type BodyUserStorage

type BodyUserStorage struct {
	Max uint64 `json:"max"`
}

type QueryFiles

type QueryFiles struct {
	QueryPage
	Sid     int64  `form:"sid" binding:"required"`
	Dir     string `form:"dir"`
	Type    string `form:"type"`
	Keyword string `form:"kw"`
}

type QueryFolder

type QueryFolder struct {
	QueryPage

	Sid    int64  `form:"sid" binding:"required"`
	Parent string `form:"parent"`
}

type QueryPage

type QueryPage struct {
	Offset int `form:"offset"`
	Limit  int `form:"limit,default=500"`
}

type QueryPage2

type QueryPage2 struct {
	PageNo   int64 `form:"page_no"`
	PageSize int64 `form:"page_size,default=20"`
}

type QueryRecycle

type QueryRecycle struct {
	QueryPage

	Sid int64 `form:"sid" binding:"required"`
}

type QueryShareMatters

type QueryShareMatters struct {
	QueryPage
	Dir string `form:"dir"`
}

type QueryUser

type QueryUser struct {
	QueryPage2
	Email string `form:"email"`
}

type StorageBody

type StorageBody struct {
	Mode       int8   `json:"mode" binding:"required"`
	Name       string `json:"name" binding:"required"`
	Bucket     string `json:"bucket" binding:"required"`
	Provider   string `json:"provider" binding:"required"`
	Endpoint   string `json:"endpoint" binding:"required"`
	AccessKey  string `json:"access_key" binding:"required"`
	SecretKey  string `json:"secret_key" binding:"required"`
	Title      string `json:"title"`
	IDirs      string `json:"idirs"` // internal dirs
	CustomHost string `json:"custom_host"`
	RootPath   string `json:"root_path"`
	FilePath   string `json:"file_path"`
	PublicRead bool   `json:"public_read"`
}

func (*StorageBody) Model

func (b *StorageBody) Model() *model.Storage

type StorageQuery

type StorageQuery struct {
	QueryPage

	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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