参数装饰器,可以直接获取请求里面的参数
This commit is contained in:
parent
d0c116deab
commit
3d86753efe
|
@ -0,0 +1,3 @@
|
|||
import { createParamDecorator } from "@nestjs/common";
|
||||
|
||||
export const User = createParamDecorator((data, req) => req.user)
|
Loading…
Reference in New Issue