diff --git a/pkg/models/create_update.go b/pkg/models/create_update.go index 138568f..62b0eb6 100644 --- a/pkg/models/create_update.go +++ b/pkg/models/create_update.go @@ -9,8 +9,8 @@ type UserCreateModel struct { type UserUpdateModel struct { Email string `json:"email" validate:"required,email"` Username string `json:"username" validate:"required"` - OldPassword string `json:"oldPassword"` - NewPassword string `json:"newPassword"` + OldPassword string `json:"old_password"` + NewPassword string `json:"new_password"` } type TagTypeCreateModel struct {