v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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 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#主播ID不能为空"`
}

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#直播房间ID不能为空"`
}

type DeleteLiveManageRes

type DeleteLiveManageRes 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#主播ID不能为空"`
}

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#直播房间ID不能为空"`
}

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#主播URL不能为空"`
}

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#直播平台不能为空"`
	Cookie   string `json:"cookie" dc:"直播cookie" v:"required#直播cookie不能为空"`
	Remark   string `json:"remark" dc:"备注" v:"max-length:45#备注最大长度为 45"`
}

type PostLiveCookieRes

type PostLiveCookieRes 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#房间地址不能为空|房间地址必须为有效URL"`
	Interval       int    `json:"interval" v:"required|min:30#间隔时间不能为空|间隔时间最小为30s"`
	Format         string `json:"format" v:"required|in:flv,mp4,mp3#录制格式不能为空|录制格式不合法"`
	MonitorType    int    `json:"monitorType" v:"required|in:0,1,2,3#监控类型不能为空|监控类型参数不合法"`
	MonitorStartAt string `json:"monitorStartAt" v:"required-if:monitorType,2#定时监控开始时间不能为空"`
	MonitorStopAt  string `` /* 161-byte string literal not displayed */
	Remark         string `json:"remark" v:"max-length:45#备注最大长度为45"`
}

type PostLiveManageRes

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

type PutLiveCookieReq

type PutLiveCookieReq struct {
	g.Meta `path:"/live/cookie" method:"put" tags:"直播管理" summary:"修改直播cookie"`
	Id     int    `json:"id" dc:"直播cookie id" v:"required#直播cookie id不能为空"`
	Cookie string `json:"cookie" dc:"直播cookie" v:"required#直播cookie不能为空"`
	Remark string `json:"remark" dc:"备注" v:"max-length:45#备注最大长度为 45"`
}

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#直播房间ID不能为空"`
	Interval       int    `json:"interval" v:"required|min:30#间隔时间不能为空|间隔时间最小为30s"`
	Format         string `json:"format" v:"required|in:flv,mp4,mp3#录制格式不能为空|录制格式不合法"`
	MonitorType    int    `json:"monitorType" v:"required|in:0,1,2,3#监控类型不能为空|监控类型参数不合法"`
	MonitorStartAt string `json:"monitorStartAt" v:"required-if:monitorType,2#定时监控开始时间不能为空"`
	MonitorStopAt  string `` /* 161-byte string literal not displayed */
	Remark         string `json:"remark" v:"max-length:45#备注最大长度为45"`
}

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#直播房间ID不能为空"`
}

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#直播房间ID不能为空"`
}

type PutLiveManageStopRes added in v0.0.4

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

Jump to

Keyboard shortcuts

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