Refactoring validation to belong to model

This commit is contained in:
2026-03-19 00:44:37 +00:00
parent a33cedf09e
commit de6c9d6ae5
6 changed files with 224 additions and 57 deletions

View File

@@ -0,0 +1,12 @@
package repository
type ErrNoOP struct{}
type ErrEmptyUpdate struct{}
func (e *ErrNoOP) Error() string {
return "no operation required"
}
func (e *ErrEmptyUpdate) Error() string {
return "update cannot be empty"
}