From 81314e2d6e822a3e1dec7192b40044c8d6cc87fc Mon Sep 17 00:00:00 2001 From: "yilin.chen" <yilin.chen@downtown8.com> Date: Fri, 28 Mar 2025 13:01:28 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=93=81=E7=89=8C=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/brand-store/brand-store.resolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/brand-store/brand-store.resolver.ts b/src/brand-store/brand-store.resolver.ts index df6bc1e..d5f9ff2 100644 --- a/src/brand-store/brand-store.resolver.ts +++ b/src/brand-store/brand-store.resolver.ts @@ -1,4 +1,4 @@ -import { Resolver, Mutation, Args, Context } from "@nestjs/graphql"; +import { Resolver, Mutation, Args, Context, Query } from "@nestjs/graphql"; import { BrandStoreService } from "./brand-store.service"; import { UseInterceptors } from "@nestjs/common"; import { GrpcMetadataInterceptor } from "../interceptor/grpc-metadata.interceptor"; @@ -34,7 +34,7 @@ export class BrandStoreResolver { } // 查询å“牌列表 - @Mutation("ListBrand") + @Query("ListBrand") async listBrand(@Args("input") input: any, @Context() context: any) { return this.brandStoreService.ListBrand(input, context); } -- GitLab