19 lines
385 B
Go
19 lines
385 B
Go
package authdomain
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type LoginReq struct {
|
|
Email string `json:"email" validate:"required"`
|
|
Password string `json:"password" validate:"required"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type LoginRepoResponse struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|