Skip to content

Commit

Permalink
fix: change naming
Browse files Browse the repository at this point in the history
  • Loading branch information
barabobBOB committed Feb 8, 2024
1 parent 1d726c4 commit 218f1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/domain/sos_post/sos_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
const (
CarerGenderMale CarerGender = "male"
CarerGenderFemale CarerGender = "female"
CarerGenderFine CarerGender = "fine"
CarerGenderAll CarerGender = "all"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/domain/sos_post/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type WriteSosPostRequest struct {
DateStartAt time.Time `json:"date_start_at" validate:"required"`
DateEndAt time.Time `json:"date_end_at" validate:"required"`
CareType CareType `json:"care_type" validate:"required,oneof= foster visiting"`
CarerGender CarerGender `json:"carer_gender" validate:"required,oneof=male female fine"`
CarerGender CarerGender `json:"carer_gender" validate:"required,oneof=male female all"`
RewardAmount RewardAmount `json:"reward_amount" validate:"required,oneof=hour"`
ConditionIDs []int `json:"condition_ids"`
PetIDs []int `json:"pet_ids"`
Expand Down Expand Up @@ -81,7 +81,7 @@ type UpdateSosPostRequest struct {
DateStartAt string `json:"date_start_at" validate:"required"`
DateEndAt string `json:"date_end_at" validate:"required"`
CareType CareType `json:"care_type" validate:"required,oneof= foster visiting"`
CarerGender CarerGender `json:"carer_gender" validate:"required,oneof=male female fine"`
CarerGender CarerGender `json:"carer_gender" validate:"required,oneof=male female all"`
RewardAmount RewardAmount `json:"reward_amount" validate:"required,oneof=hour"`
ConditionIDs []int `json:"condition_ids"`
PetIDs []int `json:"pet_ids"`
Expand Down

0 comments on commit 218f1f4

Please sign in to comment.