refactor: Update validation error messages for clarity and consistency
This commit is contained in:
parent
b6c037cb22
commit
7720110a0a
@ -3,13 +3,18 @@ package error
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
UserIDIsEmpty = "anthrovePostID cannot be empty"
|
||||
UserIDToShort = "anthrovePostID needs to be 25 characters long"
|
||||
SourceIDEmpty = "anthroveSourceID cannot be empty"
|
||||
SourceIDToShort = "anthroveSourceID needs to be 25 characters long"
|
||||
UserSourceIDEmpty = "anthroveUserSourceID cannot be empty"
|
||||
UserSourceIDToShort = "anthroveUserSourceID needs to be 25 characters long"
|
||||
UserIDIsEmpty = "PostID cannot be empty"
|
||||
UserIDToShort = "PostID needs to be 25 characters long"
|
||||
SourceIDEmpty = "SourceID cannot be empty"
|
||||
SourceIDToShort = "SourceID needs to be 25 characters long"
|
||||
UserSourceIDEmpty = "UserSourceID cannot be empty"
|
||||
UserSourceIDToShort = "UserSourceID needs to be 25 characters long"
|
||||
TagIDEmpty = "tagID cannot be empty"
|
||||
UserFavoriteListIsEmpty = "userFavoriteList cannot be empty"
|
||||
UserFavoriteIDIsEmpty = "userFavoriteID cannot be empty"
|
||||
UserFavoriteIDToShort = "UserFavoriteID needs to be 25 characters long"
|
||||
|
||||
BatchSizeIsEmpty = "batchSize cannot be empty"
|
||||
)
|
||||
|
||||
type EntityValidationFailed struct {
|
||||
|
Loading…
Reference in New Issue
Block a user