v1

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 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 DeleteAllHistoryReq added in v0.1.1

type DeleteAllHistoryReq struct {
	g.Meta `path:"/live/history/all" method:"delete" tags:"直播管理" summary:"清空直播历史"`
}

type DeleteAllHistoryRes added in v0.1.1

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

type DeleteAnchorReq added in v0.0.3

type DeleteAnchorReq struct {
	g.Meta `path:"/live/anchor/{id}" method:"delete" tags:"主播数据" summary:"删除主播"`
	Id     *int `json:"id" dc:"主播ID" v:"required#stream.anchor.valid.IDRequired"`
}

type DeleteAnchorRes added in v0.0.3

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

type DeleteLiveCookieReq

type DeleteLiveCookieReq struct {
	g.Meta `path:"/live/cookie/{id}" method:"delete" tags:"直播管理" summary:"删除直播cookie"`
	Id     int `json:"id" dc:"直播cookie id"`
}

type DeleteLiveCookieRes

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

type DeleteLiveHistoryReq

type DeleteLiveHistoryReq struct {
	g.Meta `path:"/live/history/{id}" method:"delete" tags:"直播管理" summary:"删除直播历史"`
	Id     int `json:"id" dc:"直播历史id"`
}

type DeleteLiveHistoryRes

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

type DeleteLiveManageReq

type DeleteLiveManageReq struct {
	g.Meta `path:"/live/room/manage/{liveId}" method:"delete" tags:"直播管理" summary:"删除直播房间"`
	LiveId int `json:"liveId" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type DeleteLiveManageRes

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

type ExportRoomInfoReq added in v0.0.9

type ExportRoomInfoReq struct {
	g.Meta     `path:"/live/room/export" method:"get" tags:"直播管理" summary:"导出直播间信息"`
	ExportType int    `` /* 128-byte string literal not displayed */
	Anchor     string `json:"anchor"`
	RoomName   string `json:"roomName"`
	Platform   string `json:"platform"`
	Sort       string `json:"sort"`
}

type ExportRoomInfoRes added in v0.0.9

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

type GetAllCookieReq

type GetAllCookieReq struct {
	g.Meta `path:"/live/cookie/list" method:"get" tags:"直播管理" summary:"获取所有直播cookie"`
}

type GetAllCookieRes

type GetAllCookieRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.LiveCookie `json:"rows"`
}

type GetAnchorListReq added in v0.0.3

type GetAnchorListReq struct {
	g.Meta `path:"/live/anchor/list" method:"get" tags:"主播数据" summary:"获取主播数据列表"`
	common.PageReq
	Platform string `json:"platform" dc:"平台"`
	Nickname string `json:"nickname" dc:"主播昵称"`
}

type GetAnchorListRes added in v0.0.3

type GetAnchorListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.AnchorInfo `json:"rows"`
	Total  int                  `json:"total"`
}

type GetAnchorStatInfoReq added in v0.0.4

type GetAnchorStatInfoReq struct {
	g.Meta `path:"/live/anchor/stat/{id}" method:"get" tags:"主播数据" summary:"获取主播统计信息"`
	Id     *int `json:"id" dc:"主播ID" v:"required#stream.anchor.valid.IDRequired"`
}

type GetAnchorStatInfoRes added in v0.0.4

type GetAnchorStatInfoRes struct {
	g.Meta `mime:"application/json"`
	Data   *model.AnchorStatInfo `json:"data"`
}

type GetLiveHistoryListReq

type GetLiveHistoryListReq struct {
	g.Meta `path:"/live/history/list" method:"get" tags:"直播管理" summary:"获取直播历史列表"`
	common.PageReq
	LiveId *int `json:"liveId" dc:"直播id"`
}

type GetLiveHistoryListRes

type GetLiveHistoryListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.LiveHistory `json:"rows"`
	Total  int                   `json:"total"`
}

type GetLiveManageReq

type GetLiveManageReq struct {
	g.Meta `path:"/live/room/manage/{liveId}" method:"get" tags:"直播管理" summary:"获取直播房间管理"`
	LiveId int `json:"liveId" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type GetLiveManageRes

type GetLiveManageRes struct {
	g.Meta `mime:"application/json"`
	Data   *entity.LiveManage `json:"data"`
}

type GetRoomListReq

type GetRoomListReq struct {
	g.Meta `path:"/live/room/list" method:"get" tags:"直播管理" summary:"获取直播房间列表"`
	common.PageReq
	Anchor   string `json:"anchor"`
	RoomName string `json:"roomName"`
	Platform string `json:"platform"`
	Sort     string `json:"sort"`
}

type GetRoomListRes

type GetRoomListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*model.RoomInfo `json:"rows"`
	Total  int               `json:"total"`
}

type PostAnchorReq added in v0.0.3

type PostAnchorReq struct {
	g.Meta `path:"/live/anchor" method:"post" tags:"主播数据" summary:"新增主播"`
	Url    string `json:"url" dc:"主播URL" v:"required#stream.anchor.valid.UrlRequired"`
}

type PostAnchorRes added in v0.0.3

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

type PostLiveCookieReq

type PostLiveCookieReq struct {
	g.Meta   `path:"/live/cookie" method:"post" tags:"直播管理" summary:"添加直播cookie"`
	Platform string `json:"platform" dc:"直播平台" v:"required#stream.cookie.valid.PlatformRequired"`
	Cookie   string `json:"cookie" dc:"直播cookie" v:"required#stream.cookie.valid.CookieRequired"`
	Remark   string `json:"remark" dc:"备注" v:"max-length:45#stream.cookie.valid.RemarkMaxLength"`
}

type PostLiveCookieRes

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

type PostLiveManageBatchReq added in v0.0.6

type PostLiveManageBatchReq struct {
	g.Meta   `path:"/live/room/manage/batch" method:"post" tags:"直播管理" summary:"批量添加直播间"`
	RoomUrls []string `` /* 156-byte string literal not displayed */
	Interval int      `json:"interval" v:"required|min:30#stream.live.valid.IntervalRequired|stream.live.valid.IntervalMin"`
	Format   string   `json:"format" v:"required|in:flv,mp4,mkv,ts,mp3#stream.live.valid.RecordFormatRequired|stream.live.valid.RecordFormatInvalid"`
	Remark   string   `json:"remark" v:"max-length:45#stream.live.valid.RemarkMaxLength"`
}

type PostLiveManageBatchRes added in v0.0.6

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

type PostLiveManageReq

type PostLiveManageReq struct {
	g.Meta         `path:"/live/room/manage" method:"post" tags:"直播管理" summary:"创建直播房间"`
	RoomUrl        string `json:"roomUrl"  v:"required|url#stream.live.valid.RoomUrlRequired|stream.live.valid.RoomUrlFormat"`
	Interval       int    `json:"interval" v:"required|min:30#stream.live.valid.IntervalRequired|stream.live.valid.IntervalMin"`
	Format         string `json:"format" v:"required|in:flv,mp4,mkv,ts,mp3#stream.live.valid.RecordFormatRequired|stream.live.valid.RecordFormatInvalid"`
	MonitorType    int    `json:"monitorType" v:"required|in:0,1,2,3#stream.live.valid.MonitorTypeRequired|stream.live.valid.MonitorTypeInvalid"`
	MonitorStartAt string `json:"monitorStartAt" v:"required-if:monitorType,2#stream.live.valid.MonitorStartTimeRequired"`
	MonitorStopAt  string `` /* 150-byte string literal not displayed */
	Quality        int    `json:"quality" v:"required|in:0,1,2,3,4#stream.live.valid.QualityRequired|stream.live.valid.QualityInvalid"`
	SegmentTime    int    `json:"segmentTime" v:"required#stream.live.valid.SliceTimeRequired"`
	MonitorOnly    int    `json:"monitorOnly" v:"required|in:0,1#stream.live.valid.MonitorOnlyRequired|stream.live.valid.MonitorOnlyInvalid"`
	SyncPath       string `json:"syncPath"`
	Remark         string `json:"remark" v:"max-length:45#stream.live.valid.RemarkMaxLength"`
}

type PostLiveManageRes

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

type PostQuickLinkReq added in v0.2.4

type PostQuickLinkReq struct {
	g.Meta `path:"/live/quick/add" method:"post" tags:"直播管理" summary:"快速添加链接"`
	Url    string `json:"url" dc:"链接地址" v:"required|url"`
}

type PostQuickLinkRes added in v0.2.4

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

type PreviewInfo added in v0.2.1

type PreviewInfo struct {
	Id       int               `json:"id"`
	Anchor   string            `json:"anchor"`
	RoomName string            `json:"roomName"`
	Platform string            `json:"platform"`
	Url      string            `json:"url"`
	Headers  map[string]string `json:"headers"`
}

type PreviewRoomListReq added in v0.2.1

type PreviewRoomListReq struct {
	g.Meta `path:"/live/room/preview/list" method:"get" tags:"直播管理" summary:"直播预览列表"`
}

type PreviewRoomListRes added in v0.2.1

type PreviewRoomListRes struct {
	g.Meta      `mime:"application/json"`
	PreviewList []*PreviewInfo `json:"previewList"`
}

type PreviewRoomReq added in v0.2.1

type PreviewRoomReq struct {
	g.Meta `path:"/live/room/preview/{id}" method:"get" tags:"直播管理" summary:"预览直播间"`
	Id     int `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type PreviewRoomRes added in v0.2.1

type PreviewRoomRes struct {
	g.Meta      `mime:"application/json"`
	PreviewInfo *PreviewInfo `json:"previewInfo"`
}

type PutLiveCookieReq

type PutLiveCookieReq struct {
	g.Meta `path:"/live/cookie" method:"put" tags:"直播管理" summary:"修改直播cookie"`
	Id     int    `json:"id" dc:"直播cookie id" v:"required#stream.cookie.valid.IDRequired"`
	Cookie string `json:"cookie" dc:"直播cookie" v:"required#stream.cookie.valid.CookieRequired"`
	Remark string `json:"remark" dc:"备注" v:"max-length:45#stream.cookie.valid.RemarkMaxLength"`
}

type PutLiveCookieRes

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

type PutLiveManageReq

type PutLiveManageReq struct {
	g.Meta         `path:"/live/room/manage" method:"put" tags:"直播管理" summary:"更新直播房间"`
	Id             int    `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
	Interval       int    `json:"interval" v:"required|min:30#stream.live.valid.IntervalRequired|stream.live.valid.IntervalMin"`
	Format         string `json:"format" v:"required|in:flv,mp4,mkv,ts,mp3#stream.live.valid.RecordFormatRequired|stream.live.valid.RecordFormatInvalid"`
	MonitorType    int    `json:"monitorType" v:"required|in:0,1,2,3#stream.live.valid.MonitorTypeRequired|stream.live.valid.MonitorTypeInvalid"`
	MonitorStartAt string `json:"monitorStartAt" v:"required-if:monitorType,2#stream.live.valid.MonitorStartTimeRequired"`
	MonitorStopAt  string `` /* 150-byte string literal not displayed */
	Quality        int    `json:"quality" v:"required|in:0,1,2,3,4#stream.live.valid.QualityRequired|stream.live.valid.QualityInvalid"`
	SegmentTime    int    `json:"segmentTime" v:"required#stream.live.valid.SliceTimeRequired"`
	MonitorOnly    int    `json:"monitorOnly" v:"required|in:0,1#stream.live.valid.MonitorOnlyRequired|stream.live.valid.MonitorOnlyInvalid"`
	SyncPath       string `json:"syncPath"`
	Remark         string `json:"remark" v:"max-length:45#stream.live.valid.RemarkMaxLength"`
}

type PutLiveManageRes

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

type PutLiveManageStartReq added in v0.0.4

type PutLiveManageStartReq struct {
	g.Meta `path:"/live/room/manage/start/{id}" method:"put" tags:"直播管理" summary:"开始监控"`
	Id     int `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type PutLiveManageStartRes added in v0.0.4

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

type PutLiveManageStopReq added in v0.0.4

type PutLiveManageStopReq struct {
	g.Meta `path:"/live/room/manage/stop/{id}" method:"put" tags:"直播管理" summary:"停止监控"`
	Id     int `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type PutLiveManageStopRes added in v0.0.4

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

type PutLiveManageTopReq added in v0.0.9

type PutLiveManageTopReq struct {
	g.Meta `path:"/live/room/manage/top/{id}" method:"put" tags:"直播管理" summary:"置顶房间"`
	Id     int `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type PutLiveManageTopRes added in v0.0.9

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

type PutLiveManageUnTopReq added in v0.0.9

type PutLiveManageUnTopReq struct {
	g.Meta `path:"/live/room/manage/unTop/{id}" method:"put" tags:"直播管理" summary:"取消置顶房间"`
	Id     int `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
}

type PutLiveManageUnTopRes added in v0.0.9

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

Jump to

Keyboard shortcuts

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