diff --git a/pkg/xerr/errCode.go b/pkg/xerr/errCode.go index c37e9b9..f5fb4b5 100644 --- a/pkg/xerr/errCode.go +++ b/pkg/xerr/errCode.go @@ -50,6 +50,7 @@ const ( InvalidAccess uint32 = 40005 InvalidCiphertext uint32 = 40006 SecretIsEmpty uint32 = 40007 + PermissionDenied uint32 = 40008 ) //coupon error diff --git a/pkg/xerr/errMsg.go b/pkg/xerr/errMsg.go index ed054ae..6987e30 100644 --- a/pkg/xerr/errMsg.go +++ b/pkg/xerr/errMsg.go @@ -17,6 +17,7 @@ func init() { SecretIsEmpty: "Secret is empty", InvalidAccess: "Invalid access", InvalidCiphertext: "Invalid ciphertext", + PermissionDenied: "Permission denied", // Database error DatabaseQueryError: "Database query error", DatabaseUpdateError: "Database update error",