feat: bootstrap temporserv project scaffold
Add the initial project blueprint, Go backend skeleton, frontend app shell, database schema draft, and local development/deployment files.
This commit is contained in:
23
internal/auth/service.go
Normal file
23
internal/auth/service.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user