Files
boluo-app-main/src/types/user.ts
2025-03-31 22:34:22 +08:00

57 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { RoleType } from '@/constants/app';
import { CertificationStatusType } from '@/constants/company';
// 用户信息
export interface UserInfo {
userId: string; // 用户唯一标识
nickName: string; // 用户昵称
avatarUrl: string; // 用户头像
isDefaultAvatar: boolean; // 是不是默认头像
isDefaultNickname: boolean; // 是不是默认昵称
isBindPhone?: boolean; // 是否绑定手机号
phone: string;
created?: string;
updated?: string;
isBoss?: boolean; // 是否通告主
userBoss?: {
level: string;
expireTime: string;
isExpire: boolean;
};
isCreateResume?: boolean;
imAcctNo?: string;
bossAuthStatus?: CertificationStatusType;
existAvailableJob?: boolean;
/**
* 当前身份类型
* 1 普通用户
* 2 企业用户
*/
roleType: RoleType;
}
export interface SetPhoneRequest {
encryptedData: string;
iv: string;
}
export interface UpdateUserInfoRequest {
userId: string;
avatarUrl?: string; // 新头像的 URL
nickName?: string; // 新昵称
imAcctNo?: string;
}
export interface UpdateUserInfoResponse {
userId: string;
avatarUrl?: string; // 新头像的 URL
nickName?: string; // 新昵称
imAcctNo?: string;
}
// 关注群接口请求参数
export interface FollowGroupRequest {
userId: string;
blGroupId: string; // 必选要关注的群ID
}