Files
TermorServer/internal/auth/service.go
benya 2b3123a9a7 feat: bootstrap temporserv project scaffold
Add the initial project blueprint, Go backend skeleton, frontend app shell, database schema draft, and local development/deployment files.
2026-04-02 22:17:48 +03:00

24 lines
433 B
Go

package auth
import "time"
type User struct {
ID string `json:"id"`
Username string `json:"username"`
IsAdmin bool `json:"isAdmin"`
CreatedAt time.Time `json:"createdAt"`
LastLoginAt time.Time `json:"lastLoginAt"`
}
func DemoUser() User {
now := time.Now().UTC()
return User{
ID: "user-demo",
Username: "demo",
IsAdmin: true,
CreatedAt: now,
LastLoginAt: now,
}
}