v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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 DeleteAllCheckReq added in v0.1.1

type DeleteAllCheckReq struct {
	g.Meta `path:"/media/check/all" method:"delete" tags:"文件检测" summary:"清空记录"`
}

type DeleteAllCheckRes added in v0.1.1

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

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#media.check.valid.TaskIDRequired"`
}

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#media.manage.valid.FilenameOptionalRequired"`
	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 GetEmptyFolderReq added in v0.1.0

type GetEmptyFolderReq struct {
	g.Meta `path:"/media/file/empty" method:"get" tags:"文件管理" summary:"是否空文件夹"`
	Path   string `json:"path" v:"required#media.manage.valid.PathRequired"`
}

type GetEmptyFolderRes added in v0.1.0

type GetEmptyFolderRes struct {
	g.Meta  `mime:"application/json"`
	IsEmpty bool `json:"isEmpty"`
}

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#media.manage.valid.FilepathRequired"`
}

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#media.check.valid.PathRequired"`
	Filename string `json:"filename" v:"required#media.check.valid.FilenameRequired"`
}

type PostFileCheckRes added in v0.0.9

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

type PostFileClipReq added in v0.1.2

type PostFileClipReq struct {
	g.Meta    `path:"/media/file/clip" method:"post" tags:"文件管理" summary:"视频切片"`
	Path      string `json:"path" v:"required#media.manage.valid.FilepathRequired"`
	Filename  string `json:"filename" v:"required#media.manage.valid.FilenameRequired"`
	StartTime string `json:"startTime" v:"required#media.manage.valid.ClipStartTimeRequired"`
	EndTime   string `json:"endTime" v:"required#media.manage.valid.ClipEndTimeRequired"`
}

type PostFileClipRes added in v0.1.2

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

Jump to

Keyboard shortcuts

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