feat(api): 添加热门卡片与榜单接口及实现
- 新增热门帖子、热门作者、榜单接口及实现 - 新增api-documentation,更好的ai协作 - 修复types没有导出的问题 BREAKING CHANGES: 1.0.0->1.1.0(latest)
This commit is contained in:
36
types/user/profile.ts
Normal file
36
types/user/profile.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user