From 7720110a0a7e2fab5c72b6bbc7bc51ad56a4b187 Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 9 Aug 2024 22:45:25 +0200 Subject: [PATCH] refactor: Update validation error messages for clarity and consistency --- pkg/error/validation.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkg/error/validation.go b/pkg/error/validation.go index 6140443..360e40b 100644 --- a/pkg/error/validation.go +++ b/pkg/error/validation.go @@ -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" - TagIDEmpty = "tagID cannot be empty" + 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 {