2019-05-08 18:57:12 +08:00
|
|
|
import { stringify } from '@/utils/request.qs';
|
2019-02-27 11:06:55 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
export async function query() {
|
|
|
|
return request('/api/users');
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function queryCurrent() {
|
|
|
|
return request('/api/currentUser');
|
|
|
|
}
|
2019-05-08 18:57:12 +08:00
|
|
|
|
|
|
|
// User
|
|
|
|
|
|
|
|
export async function queryUserPage(params) {
|
|
|
|
return request(`/user-api/admins/user/page?${stringify(params)}`, {
|
|
|
|
method: 'GET',
|
|
|
|
});
|
|
|
|
}
|