v1HTTPAPI

package
v1.65.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Catalog struct {
	Rezip       RezipAPI
	UUID        UUIDAPI
	FileManager FileManagerAPI
}

Functions

This section is empty.

Types

type FileManagerAPI

type FileManagerAPI struct{}

func (*FileManagerAPI) Destroy added in v1.64.63

func (*FileManagerAPI) Destroy(c *gin.Context)

Delete 删除文件或目录 @Tags 文件管理 @Summary 删除文件或目录 @Produce application/json,application/xml,application/x-yaml,application/toml @Accept application/json @Param data body request.FileDestroyRequest true "请求参数" @Router /api/v1/fileManger/destroy [post] @Success 200 {object} httpModule.HTTPResponse "删除成功" @Failure 422 {object} httpModule.HTTPResponse "表单验证失败" @Failure 403 {object} httpModule.HTTPResponse "删除失败"

func (*FileManagerAPI) Download added in v1.64.63

func (*FileManagerAPI) Download(c *gin.Context)

Download 下载文件 @Tags 文件管理 @Summary 下载文件 @Produce application/octet-stream @Accept application/json @Param path query string true "文件路径" @Param name query string true "文件名" @Router /fileManager/download [get] @Success 200 {file} file "下载成功" @Failure 422 {object} httpModule.HTTPResponse "表单验证失败" @Failure 403 {object} httpModule.HTTPResponse "下载失败"

func (*FileManagerAPI) List

func (*FileManagerAPI) List(c *gin.Context)

List 列出上传的文件 @Tags 文件管理 @Summary 获取文件列表 @Description 按路径获取当前目录文件/目录列表 @Produce application/json,application/xml,application/x-yaml,application/toml @Accept application/json @Param data body request.FileListRequest true "请求参数" @Router /fileManager/list [post] @Success 200 {object} httpModule.HTTPResponse{content=response.FileListResponse} "获取成功" @Failure 422 {object} httpModule.HTTPResponse "表单验证失败" @Failure 403 {object} httpModule.HTTPResponse "获取失败"

func (*FileManagerAPI) StoreFolder added in v1.65.0

func (*FileManagerAPI) StoreFolder(c *gin.Context)

StoreFolder 创建文件夹 @Tags 文件管理 @Summary 创建文件夹 @Produce application/json @Accept application/json @Param data body request.FileStoreFolderRequest true "请求参数" @Router /fileManager/storeFolder [post] @Success 200 {object} httpModule.HTTPResponse "创建成功" @Failure 422 {object} httpModule.HTTPResponse "表单验证失败" @Failure 403 {object} httpModule.HTTPResponse "创建文件夹失败"

func (*FileManagerAPI) Upload

func (*FileManagerAPI) Upload(c *gin.Context)

Upload 上传单个文件 @Tags 文件管理 @Summary 上传文件 @Description 上传单个文件到指定路径 @Produce application/json,application/xml,application/x-yaml,application/toml @Accept multipart/form-data @Router /fileManager/upload [post] @Param path query string true "上传路径" @Param file formData file true "上传文件内容" @Success 200 {object} httpModule.HTTPResponse{content=response.FileUploadResponse} "上传成功" @Failure 422 {object} httpModule.HTTPResponse "表单验证失败" @Failure 403 {object} httpModule.HTTPResponse "获取上传文件失败"

func (*FileManagerAPI) Zip added in v1.64.63

func (*FileManagerAPI) Zip(c *gin.Context)

Zip 压缩文件或目录 @Tags 文件管理 @Summary 压缩文件或目录 @Produce application/json,application/xml,application/x-yaml,application/toml @Accept application/json @Param data body request.FileZipRequest true "请求参数" @Router /fileManager/zip [post] @Success 200 {object} httpModule.HTTPResponse{content=response.FileZipResponse} "压缩成功" @Failure 422 {object} httpModule.HTTPResponse "表单验证失败" @Failure 403 {object} httpModule.HTTPResponse "压缩失败" @Failure 404 {object} httpModule.HTTPResponse "获取路径错误"

type RezipAPI

type RezipAPI struct{}

func (*RezipAPI) Upload

func (*RezipAPI) Upload(c *gin.Context)

type UUIDAPI

type UUIDAPI struct{}

func (*UUIDAPI) Generate

func (*UUIDAPI) Generate(c *gin.Context)

Generate 批量生成uuid * URL POST /api/v1/uuid/generate

func (*UUIDAPI) Versions

func (*UUIDAPI) Versions(c *gin.Context)

Versions 获取支持的UUID版本 * URL POST /api/v1/uuid/versions

Jump to

Keyboard shortcuts

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