WeChat.MiniProgram.Live.Role (wechat v0.7.2) View Source
小程序 - 直播成员管理
Link to this section Summary
Link to this section Types
Specs
limit() :: 1..30
Specs
offset() :: integer()
Specs
options() :: [role: search_role(), keyword: search_keyword()]
Specs
role() :: 1..3
成员角色 [1-管理员,2-主播,3-运营者],设置超级管理员将无效
Specs
search_keyword() :: String.t()
搜索的微信号或昵称,不传则返回全部
Specs
search_role() :: -1..3
成员角色 - 用于查询
-1
: 所有成员0
: 超级管理员1
: 管理员2
: 主播3
: 运营者
Link to this section Functions
Specs
add_role(WeChat.client(), WeChat.User.username(), role()) :: WeChat.response()
设置成员角色 - 官方文档
调用此接口设置小程序直播成员的管理员、运营者和主播角色
Specs
delete_role(WeChat.client(), WeChat.User.username(), role()) :: WeChat.response()
解除成员角色 - 官方文档
调用此接口移除小程序直播成员的管理员、运营者和主播角色
Specs
get_role_list(WeChat.client(), options(), offset(), limit()) :: WeChat.response()
查询成员列表 - 官方文档
调用此接口查询小程序直播成员列表