This commit is contained in:
2026-07-21 05:29:37 +03:00
commit edb875f197
299 changed files with 140638 additions and 0 deletions

17
model/errors.go Executable file
View File

@@ -0,0 +1,17 @@
package model
import "gordenko.dev/dima/fixme"
const (
EmptyValue = "100"
WrongValue = "101"
Duplicate = "104"
)
var ErrorMessages = map[fixme.Code]string{
EmptyValue: "Пустое значение недопустимо",
WrongValue: "Неверное значение",
Duplicate: "Дубликат!",
}
var fix = fixme.New(ErrorMessages)