v1

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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" tags:"文件管理" summary:"媒体文件流式传输"`
	Path   string `p:"path" v:"required#文件路径不能为空"`
}

type GetFilePlayRes

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

type PostMediaParseReq

type PostMediaParseReq struct {
	g.Meta `path:"/media/parse" method:"post" tags:"媒体解析" summary:"媒体解析"`
	Url    string `json:"url" v:"required#媒体链接不能为空"`
}

type PostMediaParseRes

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

Jump to

Keyboard shortcuts

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