17 lines
342 B
Go
17 lines
342 B
Go
package authdomain
|
|
|
|
type LoginReq struct {
|
|
Email string `json:"email" validate:"required"`
|
|
Password string `json:"password" validate:"required"`
|
|
}
|
|
|
|
type AuthResponse struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type LoginRepoResponse struct {
|
|
ID string `json:"id"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|