11#ifndef __NIM_QCHAT_ROLE_DEF_H__
12#define __NIM_QCHAT_ROLE_DEF_H__
231 size_t joined_role_count;
242 size_t succeed_count;
322 size_t member_role_count;
330 size_t member_role_count;
362 size_t member_ids_count;
550 uint64_t parent_role_id;
562 size_t permission_count;
608 size_t permission_count;
653 size_t account_count;
673 size_t account_count;
683 size_t account_count;
NIMResCode
Definition: nim_chatroom_res_code_def.h:15
NIMQChatPermissions
Definition: nim_qchat_role_def.h:20
@ kPermissionDeleteMemberMessage
删除他人消息,Server/Channel
Definition: nim_qchat_role_def.h:40
@ kPermissionRTCConnect
RTC频道: 连接的权限,Server/Channel.
Definition: nim_qchat_role_def.h:50
@ kPermissionGetServerInviteApplyRecords
申请邀请历史查看权限,有这个权限才可以查询server级别的申请/邀请记录,Server
Definition: nim_qchat_role_def.h:72
@ kPermissionManageServer
管理服务器,Server
Definition: nim_qchat_role_def.h:22
@ kPermissionManageChannel
管理频道,Server/Channel
Definition: nim_qchat_role_def.h:24
@ kPermissionServerHandleApply
服务器申请处理权限,Server
Definition: nim_qchat_role_def.h:70
@ kPermissionAtRole
@ 身份组的权限,Server/Channel
Definition: nim_qchat_role_def.h:74
@ kPermissionManageBlackWhiteList
管理白/黑名单,Server/Channel
Definition: nim_qchat_role_def.h:46
@ kPermissionAtMember
@ 他人,Server/Channel
Definition: nim_qchat_role_def.h:42
@ kPermissionBanServerMember
封禁他人,Server
Definition: nim_qchat_role_def.h:48
@ kPermissionRTCOpenMuteOthersMic
RTC频道: 禁用/解禁他人麦克风的权限,Server/Channel.
Definition: nim_qchat_role_def.h:58
@ kPermissionUpdateMemberInfo
修改他人信息,Server
Definition: nim_qchat_role_def.h:36
@ kPermissionSendMessage
发送消息,Server/Channel
Definition: nim_qchat_role_def.h:28
@ kPermissionRTCOpenMuteAllCamera
RTC频道: 禁用/解禁全员摄像头的权限,Server/Channel.
Definition: nim_qchat_role_def.h:64
@ kPermissionManageRole
管理角色,Server/Channel
Definition: nim_qchat_role_def.h:26
@ kPermissionRTCOpenScreenShare
RTC频道: 打开自己共享屏幕的权限,Server/Channel.
Definition: nim_qchat_role_def.h:66
@ kPermissionAtAll
@ 所有人,Server/Channel
Definition: nim_qchat_role_def.h:44
@ kPermissionIviteMember
邀请他人,Server
Definition: nim_qchat_role_def.h:32
@ kPermissionRTCDisconnectOther
RTC频道: 断开他人连接的权限,Server/Channel.
Definition: nim_qchat_role_def.h:52
@ kPermissionKickMember
踢除他人,Server
Definition: nim_qchat_role_def.h:34
@ kPermissionRTCOpenMic
RTC频道: 开启自己麦克风的权限,Server/Channel.
Definition: nim_qchat_role_def.h:54
@ kPermissionRTCOpenMuteOthersCamera
RTC频道: 禁用/解禁他人摄像头的权限,Server/Channel.
Definition: nim_qchat_role_def.h:60
@ kPermissionRTCOpenMuteAllMic
RTC频道: 禁用/解禁全员麦克风的权限,Server/Channel.
Definition: nim_qchat_role_def.h:62
@ kPermissionRTCCloseOthersScreenShare
RTC频道: 关闭他人共享屏幕的权限,Server/Channel.
Definition: nim_qchat_role_def.h:68
@ kPermissionRTCOpenCamera
RTC频道: 开启自己摄像头的权限,Server/Channel.
Definition: nim_qchat_role_def.h:56
@ kPermissionUpdateMyInfo
修改自己信息,Server
Definition: nim_qchat_role_def.h:30
@ kPermissionRevokeMemberMessage
撤回他人信息,Server/Channel
Definition: nim_qchat_role_def.h:38
void(* nim_qchat_role_member_get_roles_by_ids_cb_func)(const NIMQChatGetServerRolesByMemberIdsResp *resp)
查询一批查询一批accids的服务器的自定义身份组列表首页
Definition: nim_qchat_role_def.h:422
void(* nim_qhcat_role_get_existing_accids_of_member_roles_cb_func)(const NIMQChatGetExistingAccidsOfMemberRolesResp *resp)
查询一批accids在频道中配置的权限,只会返回存在的
Definition: nim_qchat_role_def.h:426
void(* nim_qchat_role_channel_category_member_role_remove_cb_func)(const NIMQChatRemoveChannelCategoryMemberRoleResp *resp)
删除频道分组个人定制权限回调
Definition: nim_qchat_role_def.h:446
void(* nim_qchat_role_member_add_cb_func)(const NIMQChatAddMemberRoleResp *resp)
创建频道个人定制权限回调
Definition: nim_qchat_role_def.h:412
void(* nim_qchat_role_get_existing_roles_in_channel_cb_func)(const NIMQChatGetExistingRolesInChannelResp *resp)
查询一批服务器身份组在频道中的身份组信息,只会返回存在的
Definition: nim_qchat_role_def.h:424
void(* nim_qchat_role_server_add_member_cb_func)(const NIMQChatAddMembersToServerRoleResp *resp)
服务器身份组添加成员回调
Definition: nim_qchat_role_def.h:398
void(* nim_qchat_role_member_get_list_cb_func)(const NIMQChatGetMemberRolesResp *resp)
查询频道个人定制权限回调
Definition: nim_qchat_role_def.h:418
void(* nim_qchat_role_channel_category_member_role_add_cb_func)(const NIMQChatAddChannelCategoryMemberRoleResp *resp)
创建频道分组个人定制权限回调
Definition: nim_qchat_role_def.h:442
void(* nim_qchat_role_server_remove_members_cb_func)(const NIMQChatRemoveMembersFromServerRoleResp *resp)
服务器身份组删除成员回调
Definition: nim_qchat_role_def.h:400
void(* nim_qchat_role_server_batch_update_priorities_cb_func)(const NIMQChatUpdateServerRolePrioritiesResp *resp)
批量服务器身份组权限回调
Definition: nim_qchat_role_def.h:392
void(* nim_qchat_role_channel_category_remove_cb_func)(const NIMQChatRemoveChannelCategoryRoleResp *resp)
删除频道分组身份组回调
Definition: nim_qchat_role_def.h:438
void(* nim_qchat_role_channel_category_update_cb_func)(const NIMQChatUpdateChannelCategoryRoleResp *resp)
更新频道分组身份组回调
Definition: nim_qchat_role_def.h:436
NIMQChatRoleType
Definition: nim_qchat_role_def.h:96
@ kRoleTypeUnkonwn
未知
Definition: nim_qchat_role_def.h:98
@ kRoleTypeCustom
自定义身份组
Definition: nim_qchat_role_def.h:102
@ kRoleTypeEveryone
默认 Everyone 身份组
Definition: nim_qchat_role_def.h:100
void(* nim_qchat_role_channel_remove_cb_func)(const NIMQChatRemoveChannelRoleResp *resp)
删除频道身份组回调
Definition: nim_qchat_role_def.h:408
void(* nim_qchat_role_channel_category_add_cb_func)(const NIMQChatAddChannelCategoryRoleResp *resp)
创建频道分组身份组回调
Definition: nim_qchat_role_def.h:434
NIMQChatPermissionsOption
Definition: nim_qchat_role_def.h:78
@ kPermissionSwitchExtend
继承
Definition: nim_qchat_role_def.h:82
@ kPermissionSwitchDeny
拒绝
Definition: nim_qchat_role_def.h:80
@ kPermissionSwitchAllow
允许
Definition: nim_qchat_role_def.h:84
void(* nim_qchat_role_channel_category_member_role_get_list_page_cb_func)(const NIMQChatGetChannelCategoryMemberRolesPageResp *resp)
查询频道分组个人定制权限回调
Definition: nim_qchat_role_def.h:448
void(* nim_qchat_role_member_update_cb_func)(const NIMQChatUpdateMemberRoleResp *resp)
更新频道个人定制权限回调
Definition: nim_qchat_role_def.h:414
void(* nim_qchat_role_check_permission_cb_func)(const NIMQChatCheckPermissionResp *resp)
查询自己是否拥有某个权限
Definition: nim_qchat_role_def.h:430
void(* nim_qchat_role_channel_add_cb_func)(const NIMQChatAddChannelRoleResp *resp)
创建频道身份组回调
Definition: nim_qchat_role_def.h:404
void(* nim_qchat_role_server_update_cb_func)(const NIMQChatUpdateServerRoleResp *resp)
更新服务器身份组回调
Definition: nim_qchat_role_def.h:390
void(* nim_qchat_role_server_get_members_cb_func)(const NIMQChatGetMembersFromServerRoleResp *resp)
服务器身份组查询成员回调
Definition: nim_qchat_role_def.h:402
void(* nim_qchat_role_channel_get_list_cb_func)(const NIMQChatGetChannelRolesResp *resp)
查询频道身份组回调
Definition: nim_qchat_role_def.h:410
void(* nim_qchat_role_channel_update_cb_func)(const NIMQChatUpdateChannelRoleResp *resp)
更新频道身份组回调
Definition: nim_qchat_role_def.h:406
void(* nim_qchat_role_channel_category_member_role_update_cb_func)(const NIMQChatUpdateChannelCategoryMemberRoleResp *resp)
更新频道分组个人定制权限回调
Definition: nim_qchat_role_def.h:444
void(* nim_qchat_role_channel_category_get_list_page_cb_func)(const NIMQChatGetChannelCategoryRolesPageResp *resp)
查询频道分组身份组回调
Definition: nim_qchat_role_def.h:440
void(* nim_qchat_role_check_permissions_cb_func)(const NIMQChatCheckPermissionsResp *resp)
批量查询自己的权限
Definition: nim_qchat_role_def.h:432
void(* nim_qchat_role_server_create_cb_func)(const NIMQChatCreateServerRoleResp *resp)
创建服务器身份组回调
Definition: nim_qchat_role_def.h:388
void(* nim_qchat_role_server_get_list_cb_func)(const NIMQChatGetServerRolesResp *resp)
查询服务器身份组回调
Definition: nim_qchat_role_def.h:396
void(* nim_qchat_role_member_roles_cb_func)(const NIMQChatGetServerRolesByMembersIdResp *resp)
根据ACCID查询服务器身份组回调
Definition: nim_qchat_role_def.h:420
void(* nim_qchat_role_get_accids_in_server_role_cb_func)(const NIMQChatGetExistingAccidsInServerRoleResp *resp)
查询一批accids是否在某个服务器身份组,返回在的成员信息
Definition: nim_qchat_role_def.h:428
void(* nim_qchat_role_member_remove_cb_func)(const NIMQChatRemoveMemberRoleResp *resp)
删除频道个人定制权限回调
Definition: nim_qchat_role_def.h:416
void(* nim_qchat_role_server_delete_cb_func)(const NIMQChatDeleteServerRoleResp *resp)
删除服务器身份组回调
Definition: nim_qchat_role_def.h:394
Definition: nim_qchat_role_def.h:767
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:773
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:771
char * accid
用户 ID
Definition: nim_qchat_role_def.h:775
Definition: nim_qchat_role_def.h:299
Definition: nim_qchat_role_def.h:713
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:719
uint64_t parent_role_id
服务器身份组ID
Definition: nim_qchat_role_def.h:721
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:717
Definition: nim_qchat_role_def.h:546
Definition: nim_qchat_role_def.h:259
Definition: nim_qchat_role_def.h:592
Definition: nim_qchat_role_def.h:292
Definition: nim_qchat_role_def.h:513
size_t member_count
要加入的用户数量
Definition: nim_qchat_role_def.h:523
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:519
char ** members
用户数据指针首地址
Definition: nim_qchat_role_def.h:521
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:517
Definition: nim_qchat_role_def.h:238
Definition: nim_qchat_public_def.h:114
Definition: nim_qchat_role_def.h:471
Definition: nim_qchat_role_def.h:477
NIMQChatBatchUpdateServeRolePriorityGroup * update_priority_info
要更新的身份组 ID 及优先级组合
Definition: nim_qchat_role_def.h:482
Definition: nim_qchat_public_def.h:122
Definition: nim_qchat_role_def.h:190
uint64_t update_time
身份组修改时间
Definition: nim_qchat_role_def.h:204
uint64_t role_id
该定制权限所在的身份组 ID
Definition: nim_qchat_role_def.h:194
uint64_t create_time
身份组创建时间
Definition: nim_qchat_role_def.h:202
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:200
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:198
uint64_t category_id
该定制权限所在的频道分组 ID
Definition: nim_qchat_role_def.h:192
NIMQChatMemberInfo member_info
定制权限的用户信息
Definition: nim_qchat_role_def.h:196
Definition: nim_qchat_role_def.h:130
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:132
bool valid_flag
有效标志
Definition: nim_qchat_role_def.h:136
uint64_t parent_role_id
继承的服务器身份组 ID
Definition: nim_qchat_role_def.h:134
Definition: nim_qchat_role_def.h:122
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:124
uint64_t parent_role_id
继承的服务器身份组 ID
Definition: nim_qchat_role_def.h:126
Definition: nim_qchat_role_def.h:687
uint32_t permission
权限
Definition: nim_qchat_role_def.h:695
uint64_t channel_id
channel_id == 0 means check permission in server
Definition: nim_qchat_role_def.h:693
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:691
Definition: nim_qchat_role_def.h:366
Definition: nim_qchat_role_def.h:699
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:703
uint32_t * permissions
权限列表
Definition: nim_qchat_role_def.h:709
size_t permission_count
权限列表长度
Definition: nim_qchat_role_def.h:707
uint64_t channel_id
channel_id == 0 means check permission in server
Definition: nim_qchat_role_def.h:705
Definition: nim_qchat_role_def.h:373
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:377
NIMQChatPermissionsOption * options
身份组权限开关
Definition: nim_qchat_role_def.h:381
uint32_t * permissions
身份组权限类型
Definition: nim_qchat_role_def.h:379
Definition: nim_qchat_role_def.h:451
NIMQChatRoleInfo role_info
服务器身份组信息结构体
Definition: nim_qchat_role_def.h:455
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_role_def.h:457
Definition: nim_qchat_role_def.h:208
Definition: nim_qchat_role_def.h:487
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:493
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:491
Definition: nim_qchat_role_def.h:807
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:811
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:815
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:817
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:813
Definition: nim_qchat_role_def.h:326
Definition: nim_qchat_role_def.h:753
uint32_t limit
限制查询返回数量
Definition: nim_qchat_role_def.h:763
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:759
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:761
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:757
Definition: nim_qchat_role_def.h:578
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:584
uint32_t limit
限制查询返回数量
Definition: nim_qchat_role_def.h:588
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:586
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:582
Definition: nim_qchat_role_def.h:281
Definition: nim_qchat_role_def.h:677
Definition: nim_qchat_role_def.h:667
Definition: nim_qchat_role_def.h:358
Definition: nim_qchat_role_def.h:657
Definition: nim_qchat_role_def.h:624
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:632
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:630
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:634
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:628
Definition: nim_qchat_role_def.h:318
Definition: nim_qchat_role_def.h:530
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:540
char * begin_accid
起查 account ID
Definition: nim_qchat_role_def.h:542
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:534
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:536
uint64_t timestamp
时间戳,从最新起查使用 0
Definition: nim_qchat_role_def.h:538
Definition: nim_qchat_role_def.h:251
Definition: nim_qchat_role_def.h:648
Definition: nim_qchat_role_def.h:344
Definition: nim_qchat_role_def.h:638
Definition: nim_qchat_role_def.h:497
uint64_t channel_id
频道 ID, 如果非空,则只需要有该channel的管理权限即可,否则需要有server的管理权限
Definition: nim_qchat_role_def.h:507
uint64_t channel_category_id
频道分组 ID, 如果非空,则只需要有该channel_category的管理权限即可,否则需要有server的管理权限
Definition: nim_qchat_role_def.h:509
uint64_t priority
起查的身份组优先级
Definition: nim_qchat_role_def.h:505
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:501
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:503
Definition: nim_qchat_role_def.h:225
Definition: nim_qchat_member_def.h:21
Definition: nim_qchat_role_def.h:172
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:182
uint64_t create_time
身份组创建时间
Definition: nim_qchat_role_def.h:184
uint64_t role_id
该定制权限所在的身份组 ID
Definition: nim_qchat_role_def.h:176
NIMQChatMemberInfo member_info
定制权限的用户信息
Definition: nim_qchat_role_def.h:178
uint64_t update_time
身份组修改时间
Definition: nim_qchat_role_def.h:186
uint64_t channel_id
该定制权限所在的频道 ID
Definition: nim_qchat_role_def.h:174
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:180
Definition: nim_qchat_role_def.h:88
uint32_t permission
权限, 见 NIMQChatPermissions 以及自定义权限
Definition: nim_qchat_role_def.h:90
NIMQChatPermissionsOption option
开关
Definition: nim_qchat_role_def.h:92
Definition: nim_qchat_role_def.h:795
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:801
char * accid
用户账号
Definition: nim_qchat_role_def.h:803
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:799
Definition: nim_qchat_role_def.h:741
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:747
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:745
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:749
Definition: nim_qchat_role_def.h:566
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:574
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:572
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:570
Definition: nim_qchat_role_def.h:612
uint64_t channel_id
身份组 ID
Definition: nim_qchat_role_def.h:618
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:616
char * accid
用户账号
Definition: nim_qchat_role_def.h:620
Definition: nim_qchat_role_def.h:140
char * role_icon
身份组图片 URL
Definition: nim_qchat_role_def.h:148
uint64_t role_id
身份组id
Definition: nim_qchat_role_def.h:144
NIMQChatChannelCategoryRoleInfo channel_category_role
仅频道分组拥有的身份组字段
Definition: nim_qchat_role_def.h:167
NIMQChatServerRoleInfo server_role
仅服务器拥有的身份组字段
Definition: nim_qchat_role_def.h:163
char * role_name
身份组名称
Definition: nim_qchat_role_def.h:146
uint64_t update_time
身份组修改时间
Definition: nim_qchat_role_def.h:160
NIMQChatRoleType role_type
身份组类型 1 表示 Everyone,2 表示定制身份组
Definition: nim_qchat_role_def.h:156
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:154
uint64_t create_time
身份组创建时间
Definition: nim_qchat_role_def.h:158
NIMQChatChannelRoleInfo channel_role
仅频道拥有的身份组字段
Definition: nim_qchat_role_def.h:165
uint64_t server_id
服务器ID
Definition: nim_qchat_role_def.h:142
char * extension
身份组扩展字段
Definition: nim_qchat_role_def.h:150
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:152
Definition: nim_qchat_role_def.h:337
Definition: nim_qchat_role_def.h:106
uint64_t role_id
所在身份组role id
Definition: nim_qchat_role_def.h:110
NIMQChatMemberInfo member_info
member info
Definition: nim_qchat_role_def.h:108
Definition: nim_qchat_role_def.h:114
uint32_t member_count
该身份组的成员数量,Everyone 身份组数量为 -1
Definition: nim_qchat_role_def.h:116
uint64_t priority
身份组优先级,Everyone 最低为 0,数字越大优先级越低
Definition: nim_qchat_role_def.h:118
Definition: nim_qchat_role_def.h:779
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:789
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:783
size_t permission_count
权限设定数量
Definition: nim_qchat_role_def.h:791
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:785
char * accid
用户 ID
Definition: nim_qchat_role_def.h:787
Definition: nim_qchat_role_def.h:725
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:735
size_t permission_count
权限设定数量
Definition: nim_qchat_role_def.h:737
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:729
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:731
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:733
Definition: nim_qchat_role_def.h:555
Definition: nim_qchat_role_def.h:601
Definition: nim_qchat_role_def.h:461
NIMQChatRoleInfo role_info
服务器身份组信息结构体
Definition: nim_qchat_role_def.h:465
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_role_def.h:467
Definition: nim_qchat_role_def.h:215