feat: login and logout

This commit is contained in:
Leon
2025-12-05 14:03:57 +08:00
parent b2cf39e731
commit 35938aaa13
5 changed files with 104 additions and 2 deletions

View File

@@ -4,4 +4,5 @@ type User struct {
ID uint `gorm:"primaryKey" json:"id"`
Username string `gorm:"unique" json:"username"`
Password string `json:"-"`
Token string `json:"-"`
}