Add GET /v1/users/quota endpoint

This commit is contained in:
Mirotin Artem
2026-05-15 16:06:18 +03:00
parent f77e9b8881
commit 0af64a4d0a
3 changed files with 116 additions and 3 deletions

View File

@@ -510,6 +510,19 @@ pub(super) struct ResetUserQuotaResponse {
pub(super) last_reset_epoch_secs: u64,
}
#[derive(Serialize)]
pub(super) struct UserQuotaListData {
pub(super) users: Vec<UserQuotaEntry>,
}
#[derive(Serialize)]
pub(super) struct UserQuotaEntry {
pub(super) username: String,
pub(super) data_quota_bytes: u64,
pub(super) used_bytes: u64,
pub(super) last_reset_epoch_secs: u64,
}
#[derive(Deserialize)]
pub(super) struct CreateUserRequest {
pub(super) username: String,