Documentation ¶
Index ¶
- type Client
- func (comp *Client) AddAssistant(ctx context.Context, options *request.RequestBroadcastAddAssistant) (*response2.ResponseMiniProgram, error)
- func (comp *Client) AddGoods(ctx context.Context, options *request.RequestBroadcastAddGoods) (*response2.ResponseMiniProgram, error)
- func (comp *Client) AddRole(ctx context.Context, userName string, role int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) AddSubAnchor(ctx context.Context, roomID int, userName string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) CreateRoom(ctx context.Context, options *request.RequestBroadcastCreateRoom) (*response.ResponseBroadcastCreateRoom, error)
- func (comp *Client) DeleteRole(ctx context.Context, userName string, role int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) DeleteRoom(ctx context.Context, id int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) DeleteSubAnchor(ctx context.Context, roomID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) EditRoom(ctx context.Context, options *request.RequestBroadcastEditRoom) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GetAssistantList(ctx context.Context, roomID int) (*response.ResponseBroadcastGetAssistantList, error)
- func (comp *Client) GetFollowers(ctx context.Context, limit int, pageBreak int) (*response.ResponseBroadcastGetFollowers, error)
- func (comp *Client) GetLiveInfo(ctx context.Context, options *request.RequestBroadcastGetLiveInfo) (*response.ResponseBroadcastGetLiveInfo, error)
- func (comp *Client) GetLiveReplay(ctx context.Context, options *request.RequestBroadcastGetLiveReplay) (*response.ResponseBroadcastGetLiveReplay, error)
- func (comp *Client) GetPushUrl(ctx context.Context, roomID int) (*response.ResponseBroadcastGetPushUrl, error)
- func (comp *Client) GetRoleList(ctx context.Context, options *request.RequestBroadcastGetRoleList) (*response.ResponseBroadcastGetRoleList, error)
- func (comp *Client) GetSharedCode(ctx context.Context, roomID int, params string) (*response.ResponseBroadcastGetSharedCode, error)
- func (comp *Client) GetSubAnchor(ctx context.Context, roomID int) (*response.ResponseBroadcastGetSubAnchor, error)
- func (comp *Client) GoodsAdd(ctx context.Context, options *request.RequestBroadcastGoodsAdd) (*response.ResponseBroadcastGoodsAdd, error)
- func (comp *Client) GoodsAudit(ctx context.Context, goodsID int) (*response.ResponseBroadcastGoodsAudit, error)
- func (comp *Client) GoodsDelete(ctx context.Context, goodsID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsDeleteInRoom(ctx context.Context, roomID int, goodsID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsInfo(ctx context.Context, goodsIDs []int) (*response.ResponseBroadcastGoodsInfo, error)
- func (comp *Client) GoodsList(ctx context.Context, offset, count, status string) (*response.ResponseBroadcastGoodsList, error)
- func (comp *Client) GoodsPush(ctx context.Context, roomID int, goodsID int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsResetAudit(ctx context.Context, options *request.RequestBroadcastGoodsResetAudit) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsSale(ctx context.Context, roomID int, goodsID int, onSale int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsSort(ctx context.Context, roomID int, goods []request.RequestBroadcastGoodsSort) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsUpdate(ctx context.Context, options *request.RequestBroadcastGoodsUpdate) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GoodsVideo(ctx context.Context, roomID int, goodsID int) (*response.ResponseBroadcastGoodsVideo, error)
- func (comp *Client) ModifyAssistant(ctx context.Context, options *request.RequestBroadcastModifyAssistant) (*response2.ResponseMiniProgram, error)
- func (comp *Client) ModifySubAnchor(ctx context.Context, roomID int, username string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) PushMessage(ctx context.Context, roomID int, userOpenID []string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) RemoveAssistant(ctx context.Context, options *request.RequestBroadcastRemoveAssistant) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateComment(ctx context.Context, roomID int, banComment int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateFeedPublic(ctx context.Context, roomID int, isFeedsPublic int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateKF(ctx context.Context, roomID int, closeKF int) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UpdateReplay(ctx context.Context, 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 {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) AddAssistant ¶
func (comp *Client) AddAssistant(ctx context.Context, options *request.RequestBroadcastAddAssistant) (*response2.ResponseMiniProgram, error)
func (*Client) AddGoods ¶
func (comp *Client) AddGoods(ctx context.Context, options *request.RequestBroadcastAddGoods) (*response2.ResponseMiniProgram, error)
func (*Client) AddRole ¶
func (*Client) AddSubAnchor ¶
func (*Client) CreateRoom ¶
func (comp *Client) CreateRoom(ctx context.Context, options *request.RequestBroadcastCreateRoom) (*response.ResponseBroadcastCreateRoom, error)
func (*Client) DeleteRole ¶
func (*Client) DeleteRoom ¶
func (*Client) DeleteSubAnchor ¶
func (*Client) EditRoom ¶
func (comp *Client) EditRoom(ctx context.Context, options *request.RequestBroadcastEditRoom) (*response2.ResponseMiniProgram, error)
func (*Client) GetAssistantList ¶
func (*Client) GetFollowers ¶
func (*Client) GetLiveInfo ¶
func (comp *Client) GetLiveInfo(ctx context.Context, 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(ctx context.Context, options *request.RequestBroadcastGetLiveReplay) (*response.ResponseBroadcastGetLiveReplay, error)
func (*Client) GetPushUrl ¶
func (*Client) GetRoleList ¶
func (comp *Client) GetRoleList(ctx context.Context, 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 (*Client) GoodsAdd ¶
func (comp *Client) GoodsAdd(ctx context.Context, options *request.RequestBroadcastGoodsAdd) (*response.ResponseBroadcastGoodsAdd, error)
func (*Client) GoodsAudit ¶
func (*Client) GoodsDelete ¶
func (*Client) GoodsDeleteInRoom ¶
func (*Client) GoodsInfo ¶
func (*Client) GoodsList ¶
func (*Client) GoodsPush ¶
func (*Client) GoodsResetAudit ¶
func (comp *Client) GoodsResetAudit(ctx context.Context, options *request.RequestBroadcastGoodsResetAudit) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsSale ¶
func (*Client) GoodsSort ¶
func (comp *Client) GoodsSort(ctx context.Context, roomID int, goods []request.RequestBroadcastGoodsSort) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsUpdate ¶
func (comp *Client) GoodsUpdate(ctx context.Context, options *request.RequestBroadcastGoodsUpdate) (*response2.ResponseMiniProgram, error)
func (*Client) GoodsVideo ¶
func (*Client) ModifyAssistant ¶
func (comp *Client) ModifyAssistant(ctx context.Context, options *request.RequestBroadcastModifyAssistant) (*response2.ResponseMiniProgram, error)
func (*Client) ModifySubAnchor ¶
func (*Client) PushMessage ¶
func (comp *Client) PushMessage(ctx context.Context, 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(ctx context.Context, options *request.RequestBroadcastRemoveAssistant) (*response2.ResponseMiniProgram, error)
func (*Client) UpdateComment ¶
func (comp *Client) UpdateComment(ctx context.Context, 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) UpdateKF ¶
func (*Client) UpdateReplay ¶
Click to show internal directories.
Click to hide internal directories.