feat: add user following and followers endpoints, update user profile response structure
This commit is contained in:
@@ -68,3 +68,10 @@ impl From<Vec<user::Model>> for UserListSchema {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, ToSchema)]
|
||||
pub struct MeSchema {
|
||||
#[serde(flatten)]
|
||||
pub user: UserSchema,
|
||||
pub following: Vec<UserSchema>,
|
||||
}
|
||||
|
Reference in New Issue
Block a user