Skip to content

Commit

Permalink
Update cate.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gongwalker authored May 25, 2022
1 parent 446ef37 commit f5d469d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Validators/cate.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ func AddCateGetError(err validator.ValidationErrors) string {
case "required":
return "Please input collection"
case "max":
return "The description is more than " + err[n].Param() + " characters in length"
return "The description is more than " + err[n].Param() + " characters in length!"
}

}
if err[n].Field() == "Cdesc" {
switch err[n].Tag() {
case "required":
return "Please input description"
return "Please input description!"
case "max":
return "The description is more than " + err[n].Param() + " characters in length"
return "The description is more than " + err[n].Param() + " characters in length!"
}
}
}
Expand Down

0 comments on commit f5d469d

Please sign in to comment.