Files
knowai/types/user/profile.ts
2025-11-23 22:26:39 +08:00

39 lines
673 B
TypeScript

import type { User } from './base';
// 用户档案以及更新
export interface UserProfile{
user: User;
avatar: string;
introduction: string;
level: string;
}
export interface UserProfileUpdateRequest {
avatar?: string;
introduction?: string;
level?: string;
}
export interface UserProfileUpdateResponse {
profile: UserProfile;
}
// 用户关系
export interface UserRelation {
// 当前用户的id
id: string;
followerId: string[];
followingId: string[];
}
// 当前用户的id由cookie带上
export interface UserFollowRequest {
userId: string;
}
export interface UserFollowResponse {
success: boolean;
}