v1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 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 DeleteFileCheckReq added in v0.0.9

type DeleteFileCheckReq struct {
	g.Meta `path:"/media/check/{id}" method:"delete" tags:"文件检测" summary:"删除文件检测任务"`
	Id     int `json:"id" v:"required#任务 ID不能为空"`
}

type DeleteFileCheckRes added in v0.0.9

type DeleteFileCheckRes struct {
	g.Meta `mime:"application/json"`
}

type DeleteFileReq

type DeleteFileReq struct {
	g.Meta   `path:"/media/file" method:"delete" tags:"文件管理" summary:"删除文件"`
	Filename string `json:"filename" v:"required-with:Path#路径为空时文件名必选"`
	Path     string `json:"path"`
}

type DeleteFileRes

type DeleteFileRes struct {
	g.Meta `mime:"application/json"`
}

type GetAnchorFilePathReq added in v0.0.8

type GetAnchorFilePathReq struct {
	g.Meta   `path:"/media/file/roomPath" method:"get" tags:"文件管理" summary:"获取主播录制文件路径"`
	Anchor   string `json:"anchor"`
	Platform string `json:"platform"`
}

type GetAnchorFilePathRes added in v0.0.8

type GetAnchorFilePathRes struct {
	g.Meta `mime:"application/json"`
	Path   string `json:"path"`
}

type GetFileCheckListReq added in v0.0.9

type GetFileCheckListReq struct {
	g.Meta `path:"/media/check/list" method:"get" tags:"文件检测" summary:"获取文件检测任务列表"`
	common.PageReq
	Path     string `json:"path"`
	Filename string `json:"filename"`
}

type GetFileCheckListRes added in v0.0.9

type GetFileCheckListRes struct {
	g.Meta    `mime:"application/json"`
	Rows      []*entity.FileCheckTask `json:"rows"`
	Total     int                     `json:"total"`
	Executing bool                    `json:"executing"`
}

type GetFileListReq

type GetFileListReq struct {
	g.Meta   `path:"/media/file/list" method:"get" tags:"文件管理" summary:"获取文件列表"`
	Path     string `json:"path"`
	Filename string `json:"filename"`
}

type GetFileListRes

type GetFileListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*model.FileInfo `json:"rows"`
}

type GetFilePlayReq

type GetFilePlayReq struct {
	g.Meta `path:"/media/file/play" method:"get,post,head,options,trace" tags:"文件管理" summary:"媒体文件流式传输"`
	Path   string `p:"path" v:"required#文件路径不能为空"`
}

type GetFilePlayRes

type GetFilePlayRes struct {
	g.Meta `mime:"application/octet-stream"`
}

type PostFileCheckReq added in v0.0.9

type PostFileCheckReq struct {
	g.Meta   `path:"/media/check" method:"post" tags:"文件检测" summary:"新增文件检测任务"`
	Path     string `json:"path" v:"required#路径不能为空"`
	Filename string `json:"filename" v:"required#文件名称不能为空"`
}

type PostFileCheckRes added in v0.0.9

type PostFileCheckRes struct {
	g.Meta `mime:"application/json"`
}

Jump to

Keyboard shortcuts

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