38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package authdomain
|
|
|
|
type RegisterUserReq struct {
|
|
Email string `json:"email" validate:"required"`
|
|
Password string `json:"password" validate:"required"`
|
|
Phone string `json:"phone" validate:"required"`
|
|
SubscribePlanID string `json:"subscribe_plan_id"`
|
|
}
|
|
|
|
type User struct {
|
|
ID string `json:"id"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Phone string `json:"phone"`
|
|
SubscribeID string `json:"subscribe_id"`
|
|
}
|
|
|
|
type RegisterStaffReq struct {
|
|
Email string `json:"email" validate:"required"`
|
|
Password string `json:"password" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
ProfilePicture string `json:"profile_picture"`
|
|
}
|
|
|
|
type UpdateStaffReq struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Staff struct {
|
|
ID string `json:"id"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Name string `json:"name"`
|
|
ProfilePicture string `json:"profile_picture"`
|
|
}
|