feat(web): add mhzc-user API module

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
liulong 2026-06-01 21:09:49 +08:00
parent 5e650aef52
commit 65de9c6fce

View 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' });
};