First model change (#23)
All checks were successful
Release Tagging / release (push) Successful in 29s
Rust Build / Check (push) Successful in 26s
Rust Build / Test Suite (push) Successful in 26s
Rust Build / Rustfmt (push) Successful in 33s
Rust Build / Clippy (push) Successful in 30s
Rust Build / build (push) Successful in 28s

Reviewed-on: #23
Co-authored-by: phoenix <kundeng94@gmail.com>
Co-committed-by: phoenix <kundeng94@gmail.com>
This commit is contained in:
2025-04-04 01:48:27 +00:00
committed by phoenix
parent a64d35d153
commit 61ad88a258
9 changed files with 55 additions and 42 deletions

View File

@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct LoginResult {
pub id: i32,
pub id: uuid::Uuid,
pub username: String,
pub token: String,
#[serde(alias = "token_type")]
@@ -15,7 +15,7 @@ pub struct LoginResult {
impl Default for LoginResult {
fn default() -> Self {
LoginResult {
id: -1,
id: uuid::Uuid::new_v4(),
username: String::new(),
token: String::new(),
token_type: String::new(),