15 lines
264 B
Go
15 lines
264 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type User struct {
|
|
Username string `json:"username"`
|
|
PasswordHash string `json:"passwordHash"`
|
|
}
|
|
|
|
type Session struct {
|
|
Token string `json:"token"`
|
|
Username string `json:"user"`
|
|
Expiry time.Time `json:"expiry"`
|
|
}
|