add golang backend for login an d webserver

This commit is contained in:
Adrian Zürcher
2025-05-28 21:48:30 +02:00
parent c8b27813ae
commit 8cfb720c42
15 changed files with 761 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package models
type User struct {
Name string `json:"user"`
Password string `json:"password,omitempty"`
Token string `json:"token,omitempty"`
}
func (u *User) IsValid() bool {
return u.Name != ""
}