This commit is contained in:
2026-06-09 23:05:35 +02:00
parent ee2fc42fff
commit eb2652f7e9
27 changed files with 665 additions and 538 deletions
+3 -3
View File
@@ -7,14 +7,14 @@ use uuid::Uuid;
pub struct CreateUserRequest {
pub username: String,
pub password: String,
pub pub_key: String,
pub pub_key: Option<String>,
pub is_superuser: bool,
}
#[derive(Debug, Serialize, Deserialize, ToSchema)]
pub struct UpdateUserRequest {
pub username: String,
pub pub_key: String,
pub pub_key: Option<String>,
pub is_superuser: bool,
}
@@ -22,7 +22,7 @@ pub struct UpdateUserRequest {
pub struct UserResponse {
pub id: Uuid,
pub username: String,
pub pub_key: String,
pub pub_key: Option<String>,
pub is_superuser: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,