This commit is contained in:
2026-02-26 19:18:33 -05:00
parent 17eaf3e324
commit 54eb7d4261
11 changed files with 169 additions and 22 deletions

View File

@@ -1,5 +1,17 @@
use iris::core::util::HashSet;
#[derive(Debug, bitcode::Encode, bitcode::Decode)]
pub struct RequestUserInfo {
pub id: UserId,
}
pub type RequestUserInfoResp = UserInfo;
#[derive(Debug, bitcode::Encode, bitcode::Decode)]
pub struct UserInfo {
pub username: String,
}
pub type UserId = u64;
pub type AccountToken = String;
@@ -107,4 +119,4 @@ pub struct NotLoggedIn;
#[derive(Debug, bitcode::Encode, bitcode::Decode)]
pub struct NoPermission;
#[derive(Debug, bitcode::Encode, bitcode::Decode)]
pub struct AccountDeleted;
pub struct InvalidUser;