mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-25 01:30:06 +00:00
FEAT: Users roles id = seqid
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user