Draft: feat login

This commit is contained in:
ytshih committed 2025-09-09 15:36:23 +08:00
1 parent 6d7074198f
commit 0e3e1a5f23
38 files changed
+1546 -90

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
package models
type Room struct {
}
+14
View File
@@ -0,0 +1,14 @@
package models
import "github.com/uptrace/bun"
type User struct {
bun.BaseModel `bun:"table:user" json:"-"`
Username string `bun:"username,pk"`
Password string `bun:"password"`
}
type UserStatus struct {
Username string `json:"username"`
}