From 2341872c51d02a4158865005318f49e4d44fd83f Mon Sep 17 00:00:00 2001 From: Jeremy Yin Date: Wed, 19 Jun 2019 22:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E4=B8=80=E4=B8=AA=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E9=83=BD=E5=8A=A0=E8=A7=92=E8=89=B2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=9F=E8=BF=99=E4=BC=9A=E9=9C=80=E8=A6=81=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E7=BC=96=E5=86=99=E8=A7=92=E8=89=B2=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E8=A1=8C=EF=BC=8C=E5=8A=A0=E4=B8=AA=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=A3=85=E9=A5=B0=E5=99=A8=E6=9D=A5=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A7=92=E8=89=B2=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/decorators/roles.decorator.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/core/decorators/roles.decorator.ts diff --git a/src/core/decorators/roles.decorator.ts b/src/core/decorators/roles.decorator.ts new file mode 100644 index 0000000..daec197 --- /dev/null +++ b/src/core/decorators/roles.decorator.ts @@ -0,0 +1,3 @@ +import { ReflectMetadata } from '@nestjs/common'; + +export const Roles = (...args: string[]) => ReflectMetadata('roles', args);