package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Sep 27, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 struct {
g.Meta `mime:"application/json"`
}
type GetFileListReq struct {
g.Meta `path:"/media/file/list" method:"get" tags:"文件管理" summary:"获取文件列表"`
Path string `json:"path"`
Filename string `json:"filename"`
}
type GetFileListRes struct {
g.Meta `mime:"application/json"`
Rows []*model.FileInfo `json:"rows"`
}
type GetFilePlayReq struct {
g.Meta `path:"/media/file/play" method:"get,post" tags:"文件管理" summary:"媒体文件流式传输"`
Path string `p:"path" v:"required#文件路径不能为空"`
}
type GetFilePlayRes struct {
g.Meta `mime:"application/octet-stream"`
}
type PostMediaParseReq struct {
g.Meta `path:"/media/parse" method:"post" tags:"媒体解析" summary:"媒体解析"`
Url string `json:"url" v:"required#媒体链接不能为空"`
}
type PostMediaParseRes struct {
g.Meta `mime:"application/json"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.