import { createParamDecorator , ExecutionContext } from '@nestjs/common' ; import { getNestExecutionContextRequest } from '~/utils/nest.util' ; export const IsGuest = createParamDecorator ( ( data , ctx ) => { const request = getNestExecutionContextRequest ( ctx ) ; return request . isGuest ; } ) ; export const IsMaster = createParamDecorator ( ( data , ctx ) => { const request = getNestExecutionContextRequest ( ctx ) ; return request . isMaster ; } ) ;