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:
7
src/typings/api/api.d.ts
vendored
7
src/typings/api/api.d.ts
vendored
@ -155,8 +155,11 @@ declare namespace Api {
|
||||
/** userinfo */
|
||||
interface UserInfo {
|
||||
/** 用户信息 */
|
||||
user?: Api.System.User;
|
||||
/** 角色权限 */
|
||||
user?: Api.System.User & {
|
||||
/** 所属角色 */
|
||||
roles: Api.System.Role[];
|
||||
};
|
||||
/** 角色列表 */
|
||||
roles: string[];
|
||||
/** 菜单权限 */
|
||||
permissions: string[];
|
||||
|
2
src/typings/api/monitor.api.d.ts
vendored
2
src/typings/api/monitor.api.d.ts
vendored
@ -151,7 +151,7 @@ declare namespace Api {
|
||||
/** 设备类型 */
|
||||
deviceType: string;
|
||||
/** 登录时间 */
|
||||
loginTime: string;
|
||||
loginTime: number;
|
||||
/** 令牌ID */
|
||||
tokenId: string;
|
||||
}>;
|
||||
|
57
src/typings/api/system.api.d.ts
vendored
57
src/typings/api/system.api.d.ts
vendored
@ -127,6 +127,12 @@ declare namespace Api {
|
||||
> & { roleIds: CommonType.IdType[]; postIds: CommonType.IdType[] }
|
||||
>;
|
||||
|
||||
/** user profile operate params */
|
||||
type UserProfileOperateParams = CommonType.RecordNullable<Pick<User, 'nickName' | 'email' | 'phonenumber' | 'sex'>>;
|
||||
|
||||
/** user password operate params */
|
||||
type UserPasswordOperateParams = CommonType.RecordNullable<Pick<User, 'password'> & { newPassword: string }>;
|
||||
|
||||
/** user info */
|
||||
type UserInfo = {
|
||||
/** user post ids */
|
||||
@ -138,6 +144,54 @@ declare namespace Api {
|
||||
/** user list */
|
||||
type UserList = Common.PaginatingQueryRecord<User>;
|
||||
|
||||
/** social */
|
||||
type Social = Common.CommonRecord<{
|
||||
/** 用户ID */
|
||||
userId: CommonType.IdType;
|
||||
/** 租户ID */
|
||||
tenantId: CommonType.IdType;
|
||||
/** 认证的唯一ID */
|
||||
authId: string;
|
||||
/** 用户来源 */
|
||||
source: string;
|
||||
/** 用户的授权令牌 */
|
||||
accessToken: string;
|
||||
/** 用户的授权令牌的有效期,部分平台可能没有 */
|
||||
expireIn: number;
|
||||
/** 刷新令牌,部分平台可能没有 */
|
||||
refreshToken: string;
|
||||
/** 用户的 open id */
|
||||
openId: string;
|
||||
/** 授权的第三方账号 */
|
||||
userName: string;
|
||||
/** 授权的第三方昵称 */
|
||||
nickName: string;
|
||||
/** 授权的第三方邮箱 */
|
||||
email: string;
|
||||
/** 授权的第三方头像地址 */
|
||||
avatar: string;
|
||||
/** 平台的授权信息,部分平台可能没有 */
|
||||
accessCode: string;
|
||||
/** 用户的 unionid */
|
||||
unionId: string;
|
||||
/** 授予的权限,部分平台可能没有 */
|
||||
scope: string;
|
||||
/** 个别平台的授权信息,部分平台可能没有 */
|
||||
tokenType: string;
|
||||
/** id token,部分平台可能没有 */
|
||||
idToken: string;
|
||||
/** 小米平台用户的附带属性,部分平台可能没有 */
|
||||
macAlgorithm: string;
|
||||
/** 小米平台用户的附带属性,部分平台可能没有 */
|
||||
macKey: string;
|
||||
/** 用户的授权code,部分平台可能没有 */
|
||||
code: string;
|
||||
/** Twitter平台用户的附带属性,部分平台可能没有 */
|
||||
oauthToken: string;
|
||||
/** Twitter平台用户的附带属性,部分平台可能没有 */
|
||||
oauthTokenSecret: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* icon type
|
||||
*
|
||||
@ -611,7 +665,8 @@ declare namespace Api {
|
||||
| 'wechat_open'
|
||||
| 'wechat_mp'
|
||||
| 'wechat_enterprise'
|
||||
| 'gitlab';
|
||||
| 'gitlab'
|
||||
| 'github';
|
||||
|
||||
/** oss */
|
||||
type Oss = Common.CommonRecord<{
|
||||
|
3
src/typings/components.d.ts
vendored
3
src/typings/components.d.ts
vendored
@ -65,6 +65,7 @@ declare module 'vue' {
|
||||
MonacoEditor: typeof import('./../components/common/monaco-editor.vue')['default']
|
||||
NA: typeof import('naive-ui')['NA']
|
||||
NAlert: typeof import('naive-ui')['NAlert']
|
||||
NAvatar: typeof import('naive-ui')['NAvatar']
|
||||
NBreadcrumb: typeof import('naive-ui')['NBreadcrumb']
|
||||
NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem']
|
||||
NButton: typeof import('naive-ui')['NButton']
|
||||
@ -120,6 +121,7 @@ declare module 'vue' {
|
||||
NSpin: typeof import('naive-ui')['NSpin']
|
||||
NSplit: typeof import('naive-ui')['NSplit']
|
||||
NStatistic: typeof import('naive-ui')['NStatistic']
|
||||
NSvgIcon: typeof import('naive-ui')['NSvgIcon']
|
||||
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||
NTab: typeof import('naive-ui')['NTab']
|
||||
NTabPane: typeof import('naive-ui')['NTabPane']
|
||||
@ -127,6 +129,7 @@ declare module 'vue' {
|
||||
NTag: typeof import('naive-ui')['NTag']
|
||||
NText: typeof import('naive-ui')['NText']
|
||||
NThing: typeof import('naive-ui')['NThing']
|
||||
NTime: typeof import('naive-ui')['NTime']
|
||||
NTooltip: typeof import('naive-ui')['NTooltip']
|
||||
NTree: typeof import('naive-ui')['NTree']
|
||||
NTreeSelect: typeof import('naive-ui')['NTreeSelect']
|
||||
|
3
src/typings/elegant-router.d.ts
vendored
3
src/typings/elegant-router.d.ts
vendored
@ -45,6 +45,7 @@ declare module "@elegant-router/types" {
|
||||
"system_user": "/system/user";
|
||||
"tool": "/tool";
|
||||
"tool_gen": "/tool/gen";
|
||||
"user-center": "/user-center";
|
||||
};
|
||||
|
||||
/**
|
||||
@ -86,6 +87,7 @@ declare module "@elegant-router/types" {
|
||||
| "social-callback"
|
||||
| "system"
|
||||
| "tool"
|
||||
| "user-center"
|
||||
>;
|
||||
|
||||
/**
|
||||
@ -108,6 +110,7 @@ declare module "@elegant-router/types" {
|
||||
| "iframe-page"
|
||||
| "login"
|
||||
| "social-callback"
|
||||
| "user-center"
|
||||
| "home"
|
||||
| "monitor_cache"
|
||||
| "monitor_login-infor"
|
||||
|
Reference in New Issue
Block a user