setting

package
v3.0.0-...-3edb00a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebDAVAccountCreateService

type WebDAVAccountCreateService struct {
	Path string `json:"path" binding:"required,min=1,max=65535"`
	Name string `json:"name" binding:"required,min=1,max=255"`
}

WebDAVAccountCreateService WebDAV 账号创建服务

func (*WebDAVAccountCreateService) Create

func (service *WebDAVAccountCreateService) Create(c *gin.Context, user *model.User) serializer.Response

Create 创建WebDAV账户

type WebDAVAccountService

type WebDAVAccountService struct {
	ID uint `uri:"id" binding:"required,min=1"`
}

WebDAVAccountService WebDAV 账号管理服务

func (*WebDAVAccountService) Delete

func (service *WebDAVAccountService) Delete(c *gin.Context, user *model.User) serializer.Response

Delete 删除WebDAV账户

type WebDAVAccountUpdateService

type WebDAVAccountUpdateService struct {
	ID       uint  `json:"id" binding:"required,min=1"`
	Readonly *bool `json:"readonly" binding:"required_without=UseProxy"`
	UseProxy *bool `json:"use_proxy" binding:"required_without=Readonly"`
}

WebDAVAccountUpdateService WebDAV 修改只读性和是否使用代理服务

func (*WebDAVAccountUpdateService) Update

func (service *WebDAVAccountUpdateService) Update(c *gin.Context, user *model.User) serializer.Response

Update 修改WebDAV账户只读性和是否使用代理服务

type WebDAVListService

type WebDAVListService struct {
}

WebDAVListService WebDAV 列表服务

func (*WebDAVListService) Accounts

func (service *WebDAVListService) Accounts(c *gin.Context, user *model.User) serializer.Response

Accounts 列出WebDAV账号

type WebDAVMountCreateService

type WebDAVMountCreateService struct {
	Path   string `json:"path" binding:"required,min=1,max=65535"`
	Policy string `json:"policy" binding:"required,min=1"`
}

WebDAVMountCreateService WebDAV 挂载创建服务

Jump to

Keyboard shortcuts

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