mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 新增个人中心页面
This commit is contained in:
4
src/service/api/monitor/index.ts
Normal file
4
src/service/api/monitor/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export * from './online';
|
||||
export * from './oper-log';
|
||||
export * from './cache';
|
||||
export * from './login-infor';
|
@ -20,3 +20,12 @@ export function fetchForceLogout(tokenId: string) {
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/** 获取在线设备列表 */
|
||||
export function fetchGetOnlineDeviceList(params?: Api.Monitor.OnlineUserSearchParams) {
|
||||
return request<Api.Monitor.OnlineUserList>({
|
||||
url: '/monitor/online',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { request } from '../../request';
|
||||
|
||||
/** 绑定账户 */
|
||||
/** 获取跳转URL */
|
||||
export function fetchSocialAuthBinding(source: Api.System.SocialSource, tenantId: string = '000000') {
|
||||
return request<string>({
|
||||
url: `/auth/binding/${source}`,
|
||||
@ -11,3 +11,19 @@ export function fetchSocialAuthBinding(source: Api.System.SocialSource, tenantId
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 解绑账户 */
|
||||
export function fetchSocialAuthUnbinding(socialId: string) {
|
||||
return request<string>({
|
||||
url: `/auth/unlock/${socialId}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/** 查询社会化关系列表 */
|
||||
export function fetchSocialList() {
|
||||
return request<Api.System.Social[]>({
|
||||
url: '/system/social/list',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
@ -57,3 +57,30 @@ export function fetchGetDeptTree() {
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改用户基本信息 */
|
||||
export function fetchUpdateUserProfile(data: Api.System.UserProfileOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/user/profile',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改用户密码 */
|
||||
export function fetchUpdateUserPassword(data: Api.System.UserPasswordOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改用户头像 */
|
||||
export function fetchUpdateUserAvatar(formData: FormData) {
|
||||
return request<boolean>({
|
||||
url: '/system/user/profile/avatar',
|
||||
method: 'post',
|
||||
data: formData
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user