feat: get user/staff profile

This commit is contained in:
ericprd
2025-02-27 18:59:58 +08:00
parent 290c0edff7
commit 5fb0764630
19 changed files with 426 additions and 4 deletions
+15
View File
@@ -13,4 +13,19 @@ 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"`
Username string `json:"username"`
}
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"`
}
+6
View File
@@ -21,6 +21,12 @@ type RegisterStaffReq struct {
Username string `json:"username" validate:"required"`
}
type UpdateStaffReq struct {
Email string `json:"email"`
Password string `json:"password"`
Username string `json:"username"`
}
type Staff struct {
ID string `json:"id"`
Email string `json:"email"`