WeChat.MiniProgram.Live.Role (wechat v0.5.0)

小程序 - 直播成员管理

Link to this section Summary

Types

成员角色 [1-管理员,2-主播,3-运营者],设置超级管理员将无效

搜索的微信号或昵称,不传则返回全部

成员角色 - 用于查询

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-运营者],设置超级管理员将无效

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

设置成员角色 - 官方文档

调用此接口设置小程序直播成员的管理员、运营者和主播角色

Link to this function

delete_role(client, username, role)

Specs

解除成员角色 - 官方文档

调用此接口移除小程序直播成员的管理员、运营者和主播角色

Link to this function

get_role_list(client, options, offset \\ 0, limit \\ 10)

Specs

get_role_list(WeChat.client(), options(), offset(), limit()) ::
  WeChat.response()

查询成员列表 - 官方文档

调用此接口查询小程序直播成员列表