feat(web): add mhzc-user API module
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5e650aef52
commit
65de9c6fce
19
txw-mhzc-web/src/pages/index/api/mhzc-user/index.js
Normal file
19
txw-mhzc-web/src/pages/index/api/mhzc-user/index.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { fetchSso } from '@/core/request';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 门户用户相关 API
|
||||||
|
*/
|
||||||
|
export const getProfile = () => {
|
||||||
|
return fetchSso('/mhzc/user/profile', { method: 'GET' });
|
||||||
|
};
|
||||||
|
|
||||||
|
export const updateProfile = (data) => {
|
||||||
|
return fetchSso('/mhzc/user/profile', {
|
||||||
|
method: 'PUT',
|
||||||
|
data: JSON.stringify(data)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getSsoBind = () => {
|
||||||
|
return fetchSso('/mhzc/user/sso-bind', { method: 'GET' });
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user