|
@@ -140,6 +140,13 @@ class UserService extends CrudService {
|
|
|
return user;
|
|
|
}
|
|
|
|
|
|
+ async finduserlist({ skip, limit, ...info }) {
|
|
|
+ const query = { ...info, $or: [{ role: '2' }, { role: '3' }, { role: '6' }] };
|
|
|
+ const total = await this.model.count(query);
|
|
|
+ const data = await this.model.find(query).skip(Number(skip)).limit(Number(limit));
|
|
|
+ return { data, total };
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
module.exports = UserService;
|