feat: add user following and followers endpoints, update user profile response structure

This commit is contained in:
2025-09-06 19:43:46 +02:00
parent c7cb3f537d
commit 8552858c8c
9 changed files with 141 additions and 19 deletions

View File

@@ -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>,
}