fix: payload update staff

This commit is contained in:
ericprd 2025-03-03 13:23:04 +08:00
parent 642566c8b2
commit 13a8481f22

View File

@ -49,7 +49,7 @@ func UpdateStaff(
ID: id, ID: id,
Email: spec.Email, Email: spec.Email,
Password: spec.Password, Password: spec.Password,
Username: spec.Username, Name: spec.Name,
} }
if err := authSvc.UpdateStaff(staff); err != nil { if err := authSvc.UpdateStaff(staff); err != nil {
@ -64,9 +64,9 @@ func UpdateStaff(
return return
} }
responsePayload := struct{ responsePayload := struct {
Message string Message string
} { }{
Message: "update staff success", Message: "update staff success",
} }