View Source WeChat.MiniProgram.Live.Role (wechat v0.18.0)

小程序 - 直播成员管理

Summary

Types

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

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

成员角色 - 用于查询

Types

limit()

@type limit() :: 1..30

offset()

@type offset() :: integer()

options()

@type options() :: [role: search_role(), keyword: search_keyword()]

role()

@type role() :: 1..3

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

search_keyword()

@type search_keyword() :: String.t()

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

search_role()

@type search_role() :: -1..3

成员角色 - 用于查询

  • -1: 所有成员
  • 0: 超级管理员
  • 1: 管理员
  • 2: 主播
  • 3: 运营者

Functions

add_role(client, username, role)

设置成员角色 - 官方文档

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

delete_role(client, username, role)

@spec delete_role(WeChat.client(), WeChat.User.username(), role()) ::
  WeChat.response()

解除成员角色 - 官方文档

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

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

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

查询成员列表 - 官方文档

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