Documentation ¶
Index ¶
- type Client
- func (comp *Client) AddAssistant(options *request.RequestBroadcastAddAssistant) (*response2.ResponseMiniProgram, error)
- func (comp *Client) AddGoods(options *request.RequestBroadcastAddGoods) (*response2.ResponseMiniProgram, error)
- func (comp *Client) AddRole(userName string, role int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) AddSubAnchor(roomID int, userName string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) CreateRoom(options *request.RequestBroadcastCreateRoom) (*response.ResponseBroadcastCreateRoom, error)
- func (comp *Client) DeleteRole(userName string, role int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) DeleteRoom(id int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) DeleteSubAnchor(roomID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) EditRoom(options *request.RequestBroadcastEditRoom) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GetAssistantList(roomID int) (*response.ResponseBroadcastGetAssistantList, error)
- func (comp *Client) GetFollowers(limit int, pageBreak int) (*response.ResponseBroadcastGetFollowers, error)
- func (comp *Client) GetLiveInfo(options *request.RequestBroadcastGetLiveInfo) (*response.ResponseBroadcastGetLiveInfo, error)
- func (comp *Client) GetLiveReplay(options *request.RequestBroadcastGetLiveReplay) (*response.ResponseBroadcastGetLiveReplay, error)
- func (comp *Client) GetPushUrl(roomID int) (*response.ResponseBroadcastGetPushUrl, error)
- func (comp *Client) GetRoleList(options *request.RequestBroadcastGetRoleList) (*response.ResponseBroadcastGetRoleList, error)
- func (comp *Client) GetSharedCode(roomID int, params string) (*response.ResponseBroadcastGetSharedCode, error)
- func (comp *Client) GetSubAnchor(roomID int) (*response.ResponseBroadcastGetSubAnchor, error)
- func (comp *Client) GoodsAdd(options *request.RequestBroadcastGoodsAdd) (*response.ResponseBroadcastGoodsAdd, error)
- func (comp *Client) GoodsAudit(goodsID int) (*response.ResponseBroadcastGoodsAudit, error)
- func (comp *Client) GoodsDelete(goodsID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsDeleteInRoom(roomID int, goodsID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsInfo(goodsIDs []int) (*response.ResponseBroadcastGoodsInfo, error)
- func (comp *Client) GoodsList(offset, count, status string) (*response.ResponseBroadcastGoodsList, error)
- func (comp *Client) GoodsPush(roomID int, goodsID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsResetAudit(options *request.RequestBroadcastGoodsResetAudit) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsSale(roomID int, goodsID int, onSale int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsSort(roomID int, goods []request.RequestBroadcastGoodsSort) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsUpdate(options *request.RequestBroadcastGoodsUpdate) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsVideo(roomID int, goodsID int) (*response.ResponseBroadcastGoodsVideo, error)
- func (comp *Client) ModifyAssistant(options *request.RequestBroadcastModifyAssistant) (*response2.ResponseMiniProgram, error)
- func (comp *Client) ModifySubAnchor(roomID int, username string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) PushMessage(roomID int, userOpenID []string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) RemoveAssistant(options *request.RequestBroadcastRemoveAssistant) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateComment(roomID int, banComment int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateFeedPublic(roomID int, isFeedsPublic int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateKF(roomID int, closeKF int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateReplay(roomID int, closeReplay int) (*response2.ResponseMiniProgram, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) *Client
func (*Client) AddAssistant ¶
func (comp *Client) AddAssistant(options *request.RequestBroadcastAddAssistant) (*response2.ResponseMiniProgram, error)
func (*Client) AddGoods ¶
func (comp *Client) AddGoods(options *request.RequestBroadcastAddGoods) (*response2.ResponseMiniProgram, error)
func (*Client) AddSubAnchor ¶
func (*Client) CreateRoom ¶
func (comp *Client) CreateRoom(options *request.RequestBroadcastCreateRoom) (*response.ResponseBroadcastCreateRoom, error)
func (*Client) DeleteRole ¶
func (*Client) DeleteRoom ¶
func (comp *Client) DeleteRoom(id int) (*response2.ResponseMiniProgram, error)
func (*Client) DeleteSubAnchor ¶
func (comp *Client) DeleteSubAnchor(roomID int) (*response2.ResponseMiniProgram, error)
func (*Client) EditRoom ¶
func (comp *Client) EditRoom(options *request.RequestBroadcastEditRoom) (*response2.ResponseMiniProgram, error)
func (*Client) GetAssistantList ¶
func (comp *Client) GetAssistantList(roomID int) (*response.ResponseBroadcastGetAssistantList, error)
func (*Client) GetFollowers ¶
func (*Client) GetLiveInfo ¶
func (comp *Client) GetLiveInfo(options *request.RequestBroadcastGetLiveInfo) (*response.ResponseBroadcastGetLiveInfo, error)
获取直播间列表及直播间信息 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/livebroadcast/liveBroadcast.getLiveInfo.html
func (*Client) GetLiveReplay ¶
func (comp *Client) GetLiveReplay(options *request.RequestBroadcastGetLiveReplay) (*response.ResponseBroadcastGetLiveReplay, error)
func (*Client) GetPushUrl ¶
func (comp *Client) GetPushUrl(roomID int) (*response.ResponseBroadcastGetPushUrl, error)
func (*Client) GetRoleList ¶
func (comp *Client) GetRoleList(options *request.RequestBroadcastGetRoleList) (*response.ResponseBroadcastGetRoleList, error)
获取直播间推流地址 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/livebroadcast/liveBroadcast.getPushUrl.html 获取角色列表
func (*Client) GetSharedCode ¶
func (*Client) GetSubAnchor ¶
func (comp *Client) GetSubAnchor(roomID int) (*response.ResponseBroadcastGetSubAnchor, error)
func (*Client) GoodsAdd ¶
func (comp *Client) GoodsAdd(options *request.RequestBroadcastGoodsAdd) (*response.ResponseBroadcastGoodsAdd, error)
func (*Client) GoodsAudit ¶
func (comp *Client) GoodsAudit(goodsID int) (*response.ResponseBroadcastGoodsAudit, error)
func (*Client) GoodsDelete ¶
func (comp *Client) GoodsDelete(goodsID int) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsDeleteInRoom ¶
func (*Client) GoodsInfo ¶
func (comp *Client) GoodsInfo(goodsIDs []int) (*response.ResponseBroadcastGoodsInfo, error)
func (*Client) GoodsList ¶
func (comp *Client) GoodsList(offset, count, status string) (*response.ResponseBroadcastGoodsList, error)
func (*Client) GoodsResetAudit ¶
func (comp *Client) GoodsResetAudit(options *request.RequestBroadcastGoodsResetAudit) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsSale ¶
func (*Client) GoodsSort ¶
func (comp *Client) GoodsSort(roomID int, goods []request.RequestBroadcastGoodsSort) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsUpdate ¶
func (comp *Client) GoodsUpdate(options *request.RequestBroadcastGoodsUpdate) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsVideo ¶
func (*Client) ModifyAssistant ¶
func (comp *Client) ModifyAssistant(options *request.RequestBroadcastModifyAssistant) (*response2.ResponseMiniProgram, error)
func (*Client) ModifySubAnchor ¶
func (*Client) PushMessage ¶
func (comp *Client) PushMessage(roomID int, userOpenID []string) (*response2.ResponseMiniProgram, error)
向长期订阅用户群发直播间开始事件 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/livebroadcast/liveBroadcast.pushMessage.html
func (*Client) RemoveAssistant ¶
func (comp *Client) RemoveAssistant(options *request.RequestBroadcastRemoveAssistant) (*response2.ResponseMiniProgram, error)
func (*Client) UpdateComment ¶
func (comp *Client) UpdateComment(roomID int, banComment int) (*response2.ResponseMiniProgram, error)
开启/关闭直播间全局禁言 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/livebroadcast/liveBroadcast.updateComment.html
func (*Client) UpdateFeedPublic ¶
func (*Client) UpdateReplay ¶
Click to show internal directories.
Click to hide internal directories.