2025-03-05 21:21:44 +08:00
|
|
|
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"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-14 12:41:11 +08:00
|
|
|
type StaffUpdate struct {
|
|
|
|
|
Email string `json:"email" validate:"required"`
|
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
|
ProfilePicture string `json:"profile_picture"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-05 21:21:44 +08:00
|
|
|
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"`
|
|
|
|
|
}
|