33 lines
835 B
Go
33 lines
835 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"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
type StaffProfile struct {
|
|
ID string `json:"id"`
|
|
Email string `json:"email"`
|
|
Name string `json:"name"`
|
|
ProfilePicture string `json:"profile_picture"`
|
|
}
|
|
|
|
type UserProfile struct {
|
|
ID string `json:"id"`
|
|
Email string `json:"email"`
|
|
SubscribePlanCode string `json:"subscribe_plan_code"`
|
|
SubscribePlanName string `json:"subscribe_plan_name"`
|
|
SubscribeStatus string `json:"subscribe_status"`
|
|
}
|