init: 0.1.2
Some checks failed
/ build and run u-api (push) Failing after 8s
/ clean (push) Successful in 0s

feat: login page && auth required
todo: file dir cleanup
This commit is contained in:
loveuer
2025-05-09 17:49:12 +08:00
parent e5cf2c1367
commit 93c4339039
30 changed files with 1166 additions and 35 deletions

10
internal/model/user.go Normal file
View File

@ -0,0 +1,10 @@
package model
type User struct {
Id int `json:"id"`
Username string `json:"username"`
Key string `json:"key"`
Password string `json:"-"`
LoginAt int64 `json:"login_at"`
Token string `json:"token"`
}