From 3d86753efe2260441c80d6abc40f6e8e8323fa38 Mon Sep 17 00:00:00 2001 From: Jeremy Yin Date: Tue, 9 Jul 2019 21:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=A3=85=E9=A5=B0=E5=99=A8?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E4=BB=A5=E7=9B=B4=E6=8E=A5=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E9=87=8C=E9=9D=A2=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/decorators/user.decorator.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/core/decorators/user.decorator.ts diff --git a/src/core/decorators/user.decorator.ts b/src/core/decorators/user.decorator.ts new file mode 100644 index 0000000..2dd2ced --- /dev/null +++ b/src/core/decorators/user.decorator.ts @@ -0,0 +1,3 @@ +import { createParamDecorator } from "@nestjs/common"; + +export const User = createParamDecorator((data, req) => req.user) \ No newline at end of file