import { SetMetadata } from '@nestjs/common';

export const HAS_ROLES_KEY = 'hasRoles';
export const HAS_ANY_ROLES_KEY = 'hasAnyRoles';
export const HasRoles = (...roles: string[]) => SetMetadata(HAS_ROLES_KEY, roles);
export const HasAnyRoles = (...roles: string[]) => SetMetadata(HAS_ANY_ROLES_KEY, roles);