Documentation
¶
Index ¶
- type DeleteAnchorReq
- type DeleteAnchorRes
- type DeleteLiveCookieReq
- type DeleteLiveCookieRes
- type DeleteLiveHistoryReq
- type DeleteLiveHistoryRes
- type DeleteLiveManageReq
- type DeleteLiveManageRes
- type GetAllCookieReq
- type GetAllCookieRes
- type GetAnchorListReq
- type GetAnchorListRes
- type GetLiveHistoryListReq
- type GetLiveHistoryListRes
- type GetLiveManageReq
- type GetLiveManageRes
- type GetRoomListReq
- type GetRoomListRes
- type PostAnchorReq
- type PostAnchorRes
- type PostLiveCookieReq
- type PostLiveCookieRes
- type PostLiveManageReq
- type PostLiveManageRes
- type PutLiveCookieReq
- type PutLiveCookieRes
- type PutLiveManageReq
- type PutLiveManageRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteAnchorReq ¶ added in v0.0.3
type DeleteAnchorRes ¶ added in v0.0.3
type DeleteLiveCookieReq ¶
type DeleteLiveCookieRes ¶
type DeleteLiveHistoryReq ¶
type DeleteLiveHistoryRes ¶
type DeleteLiveManageReq ¶
type DeleteLiveManageRes ¶
type GetAllCookieReq ¶
type GetAllCookieRes ¶
type GetAllCookieRes struct {
g.Meta `mime:"application/json"`
Rows []*entity.LiveCookie `json:"rows"`
}
type GetAnchorListReq ¶ added in v0.0.3
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 GetLiveHistoryListReq ¶
type GetLiveHistoryListRes ¶
type GetLiveHistoryListRes struct {
g.Meta `mime:"application/json"`
Rows []*entity.LiveHistory `json:"rows"`
Total int `json:"total"`
}
type GetLiveManageReq ¶
type GetLiveManageRes ¶
type GetLiveManageRes struct {
g.Meta `mime:"application/json"`
Data *entity.LiveManage `json:"data"`
}
type GetRoomListReq ¶
type GetRoomListRes ¶
type PostAnchorReq ¶ added in v0.0.3
type PostAnchorRes ¶ added in v0.0.3
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 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#监控类型不能为空|监控类型参数不合法"`
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 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 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#监控类型不能为空|监控类型参数不合法"`
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 ¶
Click to show internal directories.
Click to hide internal directories.