1 Commits

Author SHA1 Message Date
ray
edf1a1f5ca add ErrRecordExistError 2025-11-26 11:06:13 +08:00

View File

@@ -21,6 +21,7 @@ const (
CodeEmailAccountPhoneNone = 13 // 邮箱、账号、电话不能都为空
CodeParentIDShouldNotEqualID = 14 // 父节点的点不能等于自己的id
CodeWrongOldPassword = 15 // 旧密码错误
CodeRecordExistError = 40001 // 记录已存在
)
var (
@@ -40,6 +41,7 @@ var (
MsgEmailAccountPhoneNone = "邮箱、账号、电话不能都为空"
MsgParentIDShouldNotEqualID = "父节点的点不能等于自己的id"
MsgWrongOldPassword = "旧密码错误"
MsgRecordExistError = "记录已存在"
)
var (
@@ -59,5 +61,6 @@ var (
ErrEmailAccountPhoneNone = status.Error(CodeEmailAccountPhoneNone, MsgEmailAccountPhoneNone)
ErrParentIDShouldNotEqualID = status.Error(CodeParentIDShouldNotEqualID, MsgParentIDShouldNotEqualID)
ErrWrongOldPassword = status.Error(CodeWrongOldPassword, MsgWrongOldPassword)
ErrRecordExistError = status.Error(CodeRecordExistError, MsgRecordExistError)
)