35 lines
1012 B
Go
35 lines
1012 B
Go
package staffdomain
|
|
|
|
type Staff struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
ProfilePicture string `json:"profile_picture"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type StaffRegister 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 StaffUpdate struct {
|
|
Email string `json:"email" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
ProfilePicture string `json:"profile_picture"`
|
|
}
|
|
|
|
type StaffProfile struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
ProfilePicture string `json:"profile_picture"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type StaffLogin struct {
|
|
Email string `json:"email" validate:"required"`
|
|
Password string `json:"password" validate:"required"`
|
|
}
|