blob: e4b4bf0256cdb513b69d4cd6ee0b0433ee5e764d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package model
import "time"
type User struct {
Id int `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Created_at *time.Time `json:"created_at"`
Last_login_at *time.Time `json:"last_login_at"`
}
type UserLogin struct {
Username string `json:"username"`
Password string `json:"password"`
}
type UserRegistration struct {
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
}
|