Files
knowai/types/user/profile.d.ts
tobegold574 6a81b7bb13
Some checks reported errors
continuous-integration/drone/push Build was killed
feat(image): 新建 knowai-core:1.0.0 镜像并完成推送
- 搭建 api、auth、utils 等逻辑模块
- 通过 tsc、eslint、vitest 测试验证

BREAKING CHANGE: 新镜像分支
2025-11-10 20:20:25 +08:00

37 lines
612 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: string;
followerId: string[];
followingId: string[];
}
export interface UserFollowRequest {
userId: string;
}
export interface UserFollowResponse {
success: boolean;
}