controllers

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Down

func Down(c *gin.Context)

Down handle download request

func Get

func Get(c *gin.Context)

handle get request

func GlobalSearch added in v1.0.0

func GlobalSearch(c *gin.Context)

func Info

func Info(c *gin.Context)

handle info request

func LocalSearch added in v1.0.0

func LocalSearch(c *gin.Context)

func OfficePreview added in v0.1.6

func OfficePreview(c *gin.Context)

handle office_preview request

func Path added in v1.0.0

func Path(c *gin.Context)

handle path request

func Proxy added in v1.0.6

func Proxy(c *gin.Context)

Down handle download request

func RebuildTree added in v1.0.0

func RebuildTree(c *gin.Context)

rebuild tree

func VideoPreview added in v1.0.2

func VideoPreview(c *gin.Context)

VideoPreview handle video_preview request

func VideoPreviewPlayInfo added in v1.0.6

func VideoPreviewPlayInfo(c *gin.Context)

Types

type DownReq added in v1.0.0

type DownReq struct {
	Password string `form:"pw"`
}

type GetReq added in v1.0.0

type GetReq struct {
	Path     string `json:"path" binding:"required"`
	Password string `json:"password"`
}

get request bean

type OfficePreviewReq added in v1.0.0

type OfficePreviewReq struct {
	FileId string `json:"file_id" binding:"required"`
}

type PathReq added in v1.0.0

type PathReq struct {
	Path     string `json:"path" binding:"required"`
	Password string `json:"password"`
}

path request bean

type ProxyReq added in v1.0.6

type ProxyReq struct {
	Password string `form:"pw"`
}

type RebuildReq added in v1.0.4

type RebuildReq struct {
	Path     string `json:"path" binding:"required"`
	Password string `json:"password"`
	Depth    int    `json:"depth"`
}

type Response added in v1.0.5

type Response struct {
	Code    int         `json:"code"`
	Data    interface{} `json:"data"`
	Message string      `json:"message"`
}

func DataResponse added in v0.1.5

func DataResponse(data interface{}) Response

DataResponse common data response

func MetaResponse added in v0.1.5

func MetaResponse(code int, msg string) Response

MetaResponse common meta response

type SearchReq added in v1.0.0

type SearchReq struct {
	Keyword string `json:"keyword" binding:"required"`
	Dir     string `json:"dir" binding:"required"`
}

type VideoPreviewReq added in v1.0.2

type VideoPreviewReq struct {
	FileId string `json:"file_id" binding:"required"`
}

Jump to

Keyboard shortcuts

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