Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f675a12790 | |||
| 990cc6f9af |
@@ -8,3 +8,13 @@ type AuthLoginRequestDTO struct {
|
||||
type AuthLoginResponseDTO struct {
|
||||
Token string `json:"jwt_token"`
|
||||
}
|
||||
|
||||
type AuthRegisterRequestDTO struct {
|
||||
Email string `json:"email"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type AuthRegisterResponseDTO struct {
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
@@ -4,15 +4,16 @@ import "time"
|
||||
|
||||
type User struct {
|
||||
ID int `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
CreateDate time.Time `json:"create_date"`
|
||||
ModifyDate time.Time `json:"modify_date"` // FIXME: zero-value issue
|
||||
}
|
||||
|
||||
var TestUser = &User{
|
||||
ID: 1,
|
||||
Username: "test",
|
||||
Password: "test",
|
||||
CreateDate: time.Now(),
|
||||
}
|
||||
// var TestUser = &User{
|
||||
// ID: 1,
|
||||
// Username: "test",
|
||||
// Password: "test",
|
||||
// CreateDate: time.Now(),
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user