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