mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
import api from './API';
|
|
|
|
|
|
export const getAllRoles = () => api.get('/api/identity/roles/all').then(({ data }) => data.items);
|
|
|
|
export const getUserRoles = id =>
|
|
api.get(`/api/identity/users/${id}/roles`).then(({ data }) => data.items);
|
|
|
|
export const getUsers = (params = { maxResultCount: 10, skipCount: 0 }) =>
|
|
api.get('/api/identity/users', { params }).then(({ data }) => data);
|
|
|
|
export const getUserById = id => api.get(`/api/identity/users/${id}`).then(({ data }) => data);
|
|
|
|
export const createUser = body => api.post('/api/identity/users', body).then(({ data }) => data);
|
|
|
|
export const updateUser = (body, id) =>
|
|
api.put(`/api/identity/users/${id}`, body).then(({ data }) => data);
|
|
|
|
export const removeUser = id => api.delete(`/api/identity/users/${id}`);
|
|
|
|
export const getProfileDetail = () => api.get('/api/account/my-profile').then(({ data }) => data);
|
|
|
|
export const updateProfileDetail = body =>
|
|
api.put('/api/account/my-profile', body).then(({ data }) => data);
|
|
|
|
export const changePassword = body =>
|
|
api.post('/api/account/my-profile/change-password', body).then(({ data }) => data);
|
|
|