-
Notifications
You must be signed in to change notification settings - Fork 1
/
base_live.go
44 lines (37 loc) · 1.42 KB
/
base_live.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package ma
import "github.com/cliod/wx-go/common"
type WxLiveCreateRoomRequest struct {
RoomInfoBase
/* 主播副号微信号
如果未实名认证,需要先前往“小程序直播”小程序进行实名验证
小程序二维码链接:https://res.wx.qq.com/op_res/BbVNeczA1XudfjVqCVoKgfuWe7e3aUhokktRVOqf_F0IqS6kYR--atCpVNUUC3zr */
SubAnchorWechat string `json:"subAnchorWechat"`
// 直播间类型 【1: 推流,0:手机直播】
TypeNum uint64 `json:"type"`
// 横屏、竖屏 【1:横屏,0:竖屏】(横屏:视频宽高比为16:9、4:3、1.85:1 ;竖屏:视频宽高比为9:16、2:3)
ScreenType uint64 `json:"screenType"`
}
type WxLiveCreateRoomResult struct {
common.Err
RoomId uint64 `json:"roomId"`
// "小程序直播" 小程序码, 当主播微信号没有在 “小程序直播“ 小程序实名认证 返回该字段
QrcodeUrl string `json:"qrcode_url"`
}
type WxLiveEditRoomRequest struct {
RoomInfoBase
// 直播间id
Id uint64 `json:"id"`
}
type WxLiveEditRoomResult struct {
common.Err
}
// 直播信息
type WxMaLiveResult struct {
common.Err
Total uint64 `json:"total"`
AuditId uint64 `json:"auditId"`
GoodsId uint64 `json:"goodsId"`
Goods []*WxMaLiveGoodsResult `json:"goods"`
RoomInfos []*WxMaLiveRoomInfosResult `json:"room_info"`
LiveReplay []*WxMaLiveReplayResult `json:"live_replay"`
}