FEAT: Users roles id = seqid

This commit is contained in:
Gabriel Rosa
2022-07-18 14:04:35 -03:00
parent 52f9d06ad0
commit 82310c6314
11 changed files with 193 additions and 54 deletions
+15
View File
@@ -18,6 +18,19 @@ export const ROLE = {
NOT_FOUND: 'ROLE.NOT_FOUND',
};
export const USER = {
INVALID_ID: 'USER.INVALID_ID',
NOT_FOUND: 'USER.NOT_FOUND',
ALREADY_EXISTS: 'USER.ALREADY_EXISTS',
ROLE_ALREADY_ASSIGNED: 'USER.ROLE_ALREADY_ASSIGNED',
ROLE_NOT_ASSIGNED: 'USER.ROLE_NOT_ASSIGNED',
};
export const CUSTOMER = {
INVALID_ID: 'CUSTOMER.INVALID_ID',
NOT_FOUND: 'CUSTOMER.NOT_FOUND',
ALREADY_EXISTS: 'CUSTOMER.ALREADY_EXISTS',
};
const TERMS_OF_USE = {
UP_TO_DATE: 'TERMS_OF_USE.UP_TO_DATE',
REQUIRED: 'TERMS_OF_USE.REQUIRED',
@@ -30,6 +43,8 @@ const ErrorCodes = {
AUTH,
ROLE,
TERMS_OF_USE,
USER,
CUSTOMER,
};
export default ErrorCodes;