@hysc/meeting 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,26 +16,36 @@
16
16
  /// <reference types="node" />
17
17
  import BMStreamModel from './BMStreamModel';
18
18
  import BMUser from '../BMUser/BMUser';
19
- import { SingleRemoteStream, SingleStream } from '../type';
19
+ import { SingleLocalStream, SingleRemoteStream, SingleStream } from '../type';
20
20
  import BMRoom from '../BMRoom/BMRoom';
21
21
  import { BehaviorSubject, Subject } from 'rxjs';
22
22
  import { Device } from '@boom/core/esm/BoomAdapter/type/value';
23
23
  import BMSpeaker from './BMSpeaker';
24
+ import { ShareMediaOptions } from "@boom/core/esm/BoomCore/BCClient/BCClient";
25
+ import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from "./getHTMLMediaStreamOptions";
26
+ /**
27
+ * 全量的brtc流记录,把所有brtc用户推的流都做记录
28
+ * stream-added 的时候添加
29
+ * stream-removed 的时候删除
30
+ * mute/unmute-video/audio 的时候更新流
31
+ * 当用户进来的时候,去查看这个流对象,如果流存在,就给这个人添加流
32
+ *
33
+ */
34
+ export declare const BRTCStreamMap: Map<string, import("@boom/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default>;
35
+ export declare const BRTCShareStreamMap: Map<string, import("@boom/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default>;
24
36
  export default class BMStreamModelVM {
25
- /**
26
- * 这个是为了记录当前bloud入会之前brtc推的流
27
- */
28
- hadJoinedStreamModels: Set<any>;
29
37
  streamModels: Map<string, BMStreamModel>;
30
38
  /**
31
39
  * 因为投屏码用户进来以后,他是不在小窗口展示的,所以要把投屏的用户过滤掉给业务的展示
32
40
  */
33
41
  streamModelsWatcher: BehaviorSubject<BMStreamModel[]>;
34
- shareStreamModels: BMStreamModel[];
42
+ shareStreamModels: Map<string, BMStreamModel>;
35
43
  shareStreamModelsWatcher: BehaviorSubject<BMStreamModel[]>;
36
44
  localModel: BMStreamModel | null;
37
45
  private room;
38
46
  bloudStream: any;
47
+ audioStream: SingleLocalStream | undefined;
48
+ brtcStream: SingleLocalStream | undefined;
39
49
  /**
40
50
  * 本地是否在屏幕共享
41
51
  */
@@ -51,7 +61,7 @@ export default class BMStreamModelVM {
51
61
  /**
52
62
  * 后面打开摄像头存储的流,主要是关闭摄像头的时候得把它清除掉
53
63
  */
54
- private videoStream;
64
+ videoStream: SingleLocalStream | null;
55
65
  private _recorder;
56
66
  private _isRecording;
57
67
  private _slicingRecord;
@@ -102,8 +112,9 @@ export default class BMStreamModelVM {
102
112
  /**
103
113
  * 开关本地摄像头
104
114
  * @param status true:开,false:关
115
+ * @param videoTrack 开启美颜之后,需要传递这个参数,携带美颜之后的videoTrack
105
116
  */
106
- setLocalVideoEnable(status: boolean): Promise<undefined>;
117
+ setLocalVideoEnable(status: boolean, videoTrack?: MediaStreamTrack): Promise<void>;
107
118
  /**
108
119
  * 开关本地麦克风
109
120
  * @param status true:开,false:关
@@ -141,6 +152,7 @@ export default class BMStreamModelVM {
141
152
  * @private
142
153
  */
143
154
  private createStreamAndPublish;
155
+ videoMuteHandler(): Promise<void>;
144
156
  /**
145
157
  * 更改音视频状态或者取消发布
146
158
  * @param type 更改类型
@@ -153,13 +165,14 @@ export default class BMStreamModelVM {
153
165
  * 是否开启屏幕共享
154
166
  * @param enable
155
167
  * @param opts 开启屏幕共享参数
168
+ * @param customShare
156
169
  * @param opts.audio 是否开启音频
157
170
  * @param opts.source_name Electron 下窗口名称
158
171
  * @param opts.width 共享屏幕宽度
159
172
  * @param opts.height 共享屏幕高度
160
173
  * @param opts.contentHint 视频的contentHint 可选值: '' | 'motion' | 'detail' | 'text'
161
174
  */
162
- toggleShareScreen(enable: boolean, opts: any): Promise<unknown>;
175
+ toggleShareScreen(enable: boolean, opts: any, customShare?: Result): Promise<unknown>;
163
176
  setShareScreenContentHint(contentHint: '' | 'motion' | 'detail' | 'text'): Promise<void>;
164
177
  /**
165
178
  * 排序变化之后的处理逻辑
@@ -210,4 +223,11 @@ export default class BMStreamModelVM {
210
223
  startSpeakerDetector(): void;
211
224
  addToDetector(speaker: BMSpeaker): void;
212
225
  removeFromDetector(speakerId: string): void;
226
+ shareCustomMedia(enable: boolean, shareOptions: ShareMediaOptions): Promise<undefined>;
227
+ /**
228
+ * 根据videoElement 获取内部流数据
229
+ */
230
+ getHTMLMediaStream: typeof getHTMLMediaStreamOptions;
231
+ getMediaStream: typeof getMediaStreamInfo;
232
+ clearCache(): void;
213
233
  }
@@ -1,147 +1,147 @@
1
- import BMStreamModel from '../BMStream/BMStreamModel';
2
- import { BehaviorSubject } from 'rxjs';
3
- import BCUser from '@boom/core/esm/BoomAdapter/User/User';
4
- import BMRoom from '../BMRoom/BMRoom';
5
- declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking';
6
- interface IUserActionWatcher {
7
- operation: Operation;
8
- user: BMUser;
9
- }
10
- interface UserInfo {
11
- avatar: string;
12
- jointime: number;
13
- nickname: string;
14
- pos: string;
15
- userId: string;
16
- status?: {
17
- audioRaiseHands: boolean;
18
- videoRaiseHands: boolean;
19
- };
20
- }
21
- export interface RaiseHandInfo {
22
- status: 'raiseHandsAudio' | 'raiseHandsVideo';
23
- user: BMUser;
24
- }
25
- export default class BMUser {
26
- /**
27
- * 用户id
28
- */
29
- userId: string;
30
- /**
31
- * 用户信息
32
- */
33
- userInfo: UserInfo;
34
- nickName: string;
35
- isMaster: boolean;
36
- isManager: boolean;
37
- mirror: boolean;
38
- isLocal: boolean;
39
- isToupingma: boolean;
40
- hasMultiple: boolean;
41
- isCreate: boolean;
42
- hasShare: boolean;
43
- audienceEnableSpeaking: boolean;
44
- /** 头像 */
45
- avatar: string;
46
- private streamModels;
47
- permission: any;
48
- /**
49
- * 监听器, 监听返回对象属性
50
- * @property {string} operation
51
- * 'getManager':获得管理员权限/成为联席主持人
52
- * 'getMaster':成为主持人
53
- * 'removeManager':取消管理员权限/取消联席主持人
54
- * 'removeMaster':取消主持人
55
- * 'changeNickName':改变昵称
56
- * 'speakerEnable':扬声器开关状态改变
57
- * 'changeShare': 是否在屏幕共享
58
- * 'raiseHandsVideo': 是否视频举手
59
- * 'raiseHandsAudio': 是否音频举手
60
- * @property {BMUser} user
61
- */
62
- watcher: BehaviorSubject<IUserActionWatcher>;
63
- /**
64
- * 排序
65
- */
66
- sortNum: number;
67
- /**
68
- * 举手相关
69
- */
70
- raiseVideoHands: boolean;
71
- raiseAudioHands: boolean;
72
- isAudience: boolean;
73
- /**
74
- * 是不是普通参会者
75
- */
76
- isCommonUser: boolean;
77
- /**
78
- * 是不是web端入会
79
- */
80
- get isWeb(): boolean;
81
- constructor(user: any, isLocal?: boolean);
82
- setup(userId: string, userinfo: UserInfo): void;
83
- getMainStreamModel(): BMStreamModel | undefined;
84
- getShareStreamModel(): BMStreamModel | undefined;
85
- /**
86
- * 获取用户麦克风开启状态
87
- */
88
- get audioEnable(): boolean;
89
- get isMixer(): boolean;
90
- /**
91
- * 获取用户视频开启状态
92
- */
93
- get videoEnable(): boolean;
94
- get isSharing(): boolean;
95
- /**
96
- * 是否是信号源
97
- */
98
- get isSignal(): boolean;
99
- /**
100
- * 检测当前用户是否有主持人权限
101
- */
102
- checkLocalHasMaster(): boolean;
103
- /**
104
- * 给用户添加流
105
- * @param streamId
106
- * @param stream 流
107
- */
108
- addStream(streamId: string, stream: BMStreamModel): void;
109
- /**
110
- * 删除流
111
- * @param streamId
112
- */
113
- removeStream(streamId: string): void;
114
- /**
115
- * 获取用户id
116
- */
117
- getID(): string;
118
- /**
119
- * 获取用户昵称
120
- */
121
- getNickName(): string;
122
- /**
123
- * 获取用户信息
124
- */
125
- getUserInfo(): UserInfo;
126
- /**
127
- * 获取用户流信息
128
- */
129
- getStreams(): Map<string, BMStreamModel>;
130
- /**
131
- * updateUserInfo更新用户信息(除了isMaster,isMaster是通过change-master事件改变的)
132
- * @param bcUser
133
- * @param participant
134
- * @param bmRoom
135
- * @returns
136
- */
137
- updateUserInfo(bcUser: BCUser, participant: any, bmRoom: BMRoom): void;
138
- /** 是否有管理权限, 是主持人或联席主持人之一 */
139
- hasManager(): boolean;
140
- /** 获取用户后面的身份标识 */
141
- getNicknameSuffix(): string;
142
- /**
143
- * 更新当前用户的排序
144
- */
145
- updateSortNum(): void;
146
- }
147
- export {};
1
+ import BMStreamModel from '../BMStream/BMStreamModel';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import BCUser from '@boom/core/esm/BoomAdapter/User/User';
4
+ import BMRoom from '../BMRoom/BMRoom';
5
+ declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'getGuest' | 'removeGuest' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking';
6
+ interface IUserActionWatcher {
7
+ operation: Operation;
8
+ user: BMUser;
9
+ }
10
+ interface UserInfo {
11
+ avatar: string;
12
+ jointime: number;
13
+ nickname: string;
14
+ pos: string;
15
+ userId: string;
16
+ status?: {
17
+ audioRaiseHands: boolean;
18
+ videoRaiseHands: boolean;
19
+ };
20
+ }
21
+ export interface RaiseHandInfo {
22
+ status: 'raiseHandsAudio' | 'raiseHandsVideo';
23
+ user: BMUser;
24
+ }
25
+ export default class BMUser {
26
+ /**
27
+ * 用户id
28
+ */
29
+ userId: string;
30
+ /**
31
+ * 用户信息
32
+ */
33
+ userInfo: UserInfo;
34
+ nickName: string;
35
+ isMaster: boolean;
36
+ isManager: boolean;
37
+ mirror: boolean;
38
+ isLocal: boolean;
39
+ isToupingma: boolean;
40
+ hasMultiple: boolean;
41
+ isCreate: boolean;
42
+ hasShare: boolean;
43
+ audienceEnableSpeaking: boolean;
44
+ /** 头像 */
45
+ avatar: string;
46
+ private streamModels;
47
+ permission: any;
48
+ /**
49
+ * 监听器, 监听返回对象属性
50
+ * @property {string} operation
51
+ * 'getManager':获得管理员权限/成为联席主持人
52
+ * 'getMaster':成为主持人
53
+ * 'removeManager':取消管理员权限/取消联席主持人
54
+ * 'removeMaster':取消主持人
55
+ * 'changeNickName':改变昵称
56
+ * 'speakerEnable':扬声器开关状态改变
57
+ * 'changeShare': 是否在屏幕共享
58
+ * 'raiseHandsVideo': 是否视频举手
59
+ * 'raiseHandsAudio': 是否音频举手
60
+ * @property {BMUser} user
61
+ */
62
+ watcher: BehaviorSubject<IUserActionWatcher>;
63
+ /**
64
+ * 排序
65
+ */
66
+ sortNum: number;
67
+ /**
68
+ * 举手相关
69
+ */
70
+ raiseVideoHands: boolean;
71
+ raiseAudioHands: boolean;
72
+ isAudience: boolean;
73
+ /**
74
+ * 是不是普通参会者
75
+ */
76
+ isCommonUser: boolean;
77
+ /**
78
+ * 是不是web端入会
79
+ */
80
+ get isWeb(): boolean;
81
+ constructor(user: any, isLocal?: boolean);
82
+ setup(userId: string, userinfo: UserInfo, nickname: string): void;
83
+ getMainStreamModel(): BMStreamModel | undefined;
84
+ getShareStreamModel(): BMStreamModel | undefined;
85
+ /**
86
+ * 获取用户麦克风开启状态
87
+ */
88
+ get audioEnable(): boolean;
89
+ get isMixer(): boolean;
90
+ /**
91
+ * 获取用户视频开启状态
92
+ */
93
+ get videoEnable(): boolean;
94
+ get isSharing(): boolean;
95
+ /**
96
+ * 是否是信号源
97
+ */
98
+ get isSignal(): boolean;
99
+ /**
100
+ * 检测当前用户是否有主持人权限
101
+ */
102
+ checkLocalHasMaster(): boolean;
103
+ /**
104
+ * 给用户添加流
105
+ * @param streamId
106
+ * @param stream 流
107
+ */
108
+ addStream(streamId: string, stream: BMStreamModel): void;
109
+ /**
110
+ * 删除流
111
+ * @param streamId
112
+ */
113
+ removeStream(streamId: string): void;
114
+ /**
115
+ * 获取用户id
116
+ */
117
+ getID(): string;
118
+ /**
119
+ * 获取用户昵称
120
+ */
121
+ getNickName(): string;
122
+ /**
123
+ * 获取用户信息
124
+ */
125
+ getUserInfo(): UserInfo;
126
+ /**
127
+ * 获取用户流信息
128
+ */
129
+ getStreams(): Map<string, BMStreamModel>;
130
+ /**
131
+ * updateUserInfo更新用户信息(除了isMaster,isMaster是通过change-master事件改变的)
132
+ * @param bcUser
133
+ * @param participant
134
+ * @param bmRoom
135
+ * @returns
136
+ */
137
+ updateUserInfo(bcUser: BCUser, participant: any, bmRoom: BMRoom): void;
138
+ /** 是否有管理权限, 是主持人或联席主持人之一 */
139
+ hasManager(): boolean;
140
+ /** 获取用户后面的身份标识 */
141
+ getNicknameSuffix(): string;
142
+ /**
143
+ * 更新当前用户的排序
144
+ */
145
+ updateSortNum(): void;
146
+ }
147
+ export {};
@@ -1,111 +1,137 @@
1
- import BoomCore from '@boom/core/esm';
2
- import BMUser from './BMUser';
3
- import BCUser from '@boom/core/esm/BoomAdapter/User/User';
4
- import BMRoom from '../BMRoom/BMRoom';
5
- import { BehaviorSubject } from 'rxjs';
6
- import { UpdateMasterType } from '../type';
7
- /**
8
- * 往业务端返回的时候,需要把这些用户过滤掉
9
- */
10
- export declare const ignoreUserId: string[];
11
- export interface ChangeIsGuest {
12
- user: BMUser;
13
- preIsGuest: boolean;
14
- isGuest: boolean;
15
- }
16
- export default class BMUserVM {
17
- userList: Map<string, BMUser>;
18
- audiencesList: Map<string, BMUser>;
19
- signalList: Map<string, BMUser>;
20
- commonUserList: Map<string, BMUser>;
21
- boomCore: BoomCore;
22
- room: BMRoom | null;
23
- userListWatcher: BehaviorSubject<BMUser[]>;
24
- audiencesListWatcher: BehaviorSubject<BMUser[]>;
25
- commonUserListWatcher: BehaviorSubject<BMUser[]>;
26
- signalListWatcher: BehaviorSubject<BMUser[]>;
27
- localUser: BMUser;
28
- constructor(boomCore: BoomCore, localUser: BMUser);
29
- initWithRoom(room: BMRoom): void;
30
- handleUserRoleChange(info: ChangeIsGuest): void;
31
- /**
32
- * 添加用户, 并返回已添加的用户对象
33
- * @param bcUser bcUser对象
34
- */
35
- addUser(bcUser: BCUser): BMUser | null;
36
- /**
37
- * 移除用户
38
- * @param userId 用户id
39
- */
40
- removeUser(userId: string): void;
41
- /**
42
- * 是否在userList找到该用户,返回true or false
43
- * @param bcUser bcUser对象
44
- * @returns
45
- */
46
- findUser(bcUser: BCUser): boolean;
47
- /**
48
- * 获取用户视频开启状态
49
- * @param userId 用户id
50
- */
51
- videoEnable(userId: string): boolean;
52
- /**
53
- * 获取用户音频开启状态
54
- * @param userId
55
- */
56
- audioEnable(userId: string): boolean;
57
- /**
58
- * 检测用户是不是主持人
59
- * @param {string} userId 用户id
60
- */
61
- checkIsMaster(userId: any): boolean;
62
- /**
63
- * 检测当前用户是否有主持人权限
64
- */
65
- checkLocalHasMaster(): any;
66
- /**
67
- * 检测目标用户是否有主持人权限
68
- */
69
- checkUserHasMaster(userId: string): boolean;
70
- /**
71
- * 根据用户id获取user对象
72
- * @param {string} userId
73
- */
74
- getUser(userId: string): BMUser | undefined;
75
- /**
76
- * 刚加入房间时初始化人数
77
- */
78
- initUserList(): Promise<void>;
79
- /**
80
- * 改变userList中的主持人,返回改变后的主持人用户对象,该方法只在change-master中调用, 不对外暴露
81
- * @param userId
82
- */
83
- updateMaster(userId: string): UpdateMasterType;
84
- /**
85
- * 改变联席主持人,返回设置为联席主持人的bmuser对象
86
- * @param userId
87
- * @param status true:设置成联席主持人 false:取消联席主持人身份
88
- * @returns
89
- */
90
- updateManager(userId: string, status: boolean): BMUser;
91
- /**
92
- * 获取我自己
93
- */
94
- getLocalUser(): BMUser;
95
- private updateSelf;
96
- /**
97
- * bcUser变成BMUser
98
- * @param bcUser
99
- * @returns
100
- */
101
- toBMUser(bcUser: BCUser): BMUser;
102
- private sortUsers;
103
- private sortAudiences;
104
- private sortCommonUsers;
105
- private sortSignalUsers;
106
- private static filterUsers;
107
- /**
108
- * 排序变化之后的处理逻辑
109
- */
110
- updateSort: () => void;
111
- }
1
+ import BoomCore from '@boom/core/esm';
2
+ import BMUser from './BMUser';
3
+ import BCUser from '@boom/core/esm/BoomAdapter/User/User';
4
+ import BMRoom from '../BMRoom/BMRoom';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import { UpdateMasterType } from '../type';
7
+ /**
8
+ * 往业务端返回的时候,需要把这些用户过滤掉
9
+ */
10
+ export declare const ignoreUserId: string[];
11
+ export interface ChangeIsGuest {
12
+ user: BMUser;
13
+ preIsGuest: boolean;
14
+ isGuest: boolean;
15
+ }
16
+ export default class BMUserVM {
17
+ userList: Map<string, BMUser>;
18
+ audiencesList: Map<string, BMUser>;
19
+ signalList: Map<string, BMUser>;
20
+ commonUserList: Map<string, BMUser>;
21
+ boomCore: BoomCore;
22
+ room: BMRoom | null;
23
+ userListWatcher: BehaviorSubject<BMUser[]>;
24
+ audiencesListWatcher: BehaviorSubject<BMUser[]>;
25
+ commonUserListWatcher: BehaviorSubject<BMUser[]>;
26
+ signalListWatcher: BehaviorSubject<BMUser[]>;
27
+ masterUserWatcher: BehaviorSubject<BMUser | null>;
28
+ localUser: BMUser;
29
+ constructor(boomCore: BoomCore, localUser: BMUser);
30
+ initWithRoom(room: BMRoom): void;
31
+ handleUserRoleChange(info: ChangeIsGuest): Promise<void>;
32
+ /**
33
+ * 添加用户, 并返回已添加的用户对象
34
+ * @param bcUser bcUser对象
35
+ */
36
+ addUser(bcUser: BCUser): BMUser | null;
37
+ /**
38
+ * 移除用户
39
+ * @param userId 用户id
40
+ */
41
+ removeUser(userId: string): void;
42
+ /**
43
+ * 是否在userList找到该用户,返回true or false
44
+ * @param bcUser bcUser对象
45
+ * @returns
46
+ */
47
+ findUser(bcUser: BCUser): boolean;
48
+ /**
49
+ * 获取用户视频开启状态
50
+ * @param userId 用户id
51
+ */
52
+ videoEnable(userId: string): boolean;
53
+ /**
54
+ * 获取用户音频开启状态
55
+ * @param userId
56
+ */
57
+ audioEnable(userId: string): boolean;
58
+ /**
59
+ * 检测用户是不是主持人
60
+ * @param {string} userId 用户id
61
+ */
62
+ checkIsMaster(userId: any): boolean;
63
+ /**
64
+ * 检测当前用户是否有主持人权限
65
+ */
66
+ checkLocalHasMaster(): any;
67
+ /**
68
+ * 检测目标用户是否有主持人权限
69
+ */
70
+ checkUserHasMaster(userId: string): boolean;
71
+ /**
72
+ * 根据用户id获取user对象
73
+ * @param {string} userId
74
+ */
75
+ getUser(userId: string): BMUser | undefined;
76
+ /**
77
+ * 刚加入房间时初始化人数
78
+ */
79
+ initUserList(pageIndex: number): Promise<void>;
80
+ /**
81
+ * 改变userList中的主持人,返回改变后的主持人用户对象,该方法只在change-master中调用, 不对外暴露
82
+ * @param userId
83
+ * @param oldMasterId
84
+ * @param isKeep
85
+ */
86
+ updateMaster(userId: string, oldMasterId: string, isKeep: boolean): UpdateMasterType;
87
+ /**
88
+ * 联席主持人设置嘉宾的操作
89
+ * @param userId
90
+ */
91
+ managerChangeToGuest(userId: string): any;
92
+ /**
93
+ * 改变联席主持人,返回设置为联席主持人的bmuser对象
94
+ * @param userId
95
+ * @param status true:设置成联席主持人 false:取消联席主持人身份
96
+ * @param hasS
97
+ * @returns
98
+ */
99
+ updateManager(userId: string, status: boolean, hasS?: boolean): BMUser;
100
+ /**
101
+ * 获取我自己
102
+ */
103
+ getLocalUser(): BMUser;
104
+ updateSelf(bcUser: BCUser): void;
105
+ updateUser(bmUser: BMUser, bcUser: BCUser): void;
106
+ /**
107
+ * bcUser变成BMUser
108
+ * @param bcUser
109
+ * @returns
110
+ */
111
+ toBMUser(bcUser: BCUser): BMUser;
112
+ private sortUsers;
113
+ private sortAudiences;
114
+ private sortCommonUsers;
115
+ private sortSignalUsers;
116
+ private static filterUsers;
117
+ /**
118
+ * 排序变化之后的处理逻辑
119
+ */
120
+ updateSort: () => void;
121
+ /**
122
+ * 初始化所有的用户
123
+ * @param total
124
+ */
125
+ initUsers(total: number): Promise<void>;
126
+ /**
127
+ * 本地嘉宾用户降级为普通参会者之后要取消拉流
128
+ */
129
+ handleUnSubCommonUser(): void;
130
+ handleCommonUserChange(): void;
131
+ getUsers(page: number, pageSize: number, permission?: string): Promise<{
132
+ userList: BMUser[];
133
+ total: any;
134
+ }>;
135
+ getTotalUserNumber(): Promise<any>;
136
+ clearUsers(): void;
137
+ }
@@ -0,0 +1,20 @@
1
+ export default class BoomError extends Error {
2
+ static instanceOf(error: any): boolean;
3
+ private BoomErrorFlag;
4
+ private code;
5
+ private eName?;
6
+ private error;
7
+ /**
8
+ * @internal
9
+ * @param code
10
+ * @param name
11
+ * @param message
12
+ */
13
+ constructor(code: number, message?: any, error?: any, name?: string);
14
+ /**
15
+ * 获取错误码
16
+ *
17
+ * @returns 错误码
18
+ */
19
+ getCode(): number;
20
+ }