From d93356927d8a0a5a91963c28d461d9107562d759 Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Fri, 30 May 2025 17:38:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/xin' --- oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java b/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java new file mode 100644 index 0000000..dbf828d --- /dev/null +++ b/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java @@ -0,0 +1,36 @@ +package com.oying.modules.pc.store.rest; + +import com.oying.modules.pc.common.core.domain.R; +import com.oying.modules.pc.store.domain.dto.StoreCustomerDetailDto; +import com.oying.modules.pc.store.domain.dto.StoreCustomerQueryCriteria; +import com.oying.modules.pc.store.service.StoreQueryService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; + +/** + * 店铺 + * + * @author lzp + * @date 2025-04-22 + */ +@Api(tags = "店铺(客户端)") +@RestController +@RequestMapping("/api/pc/customer/store") +@RequiredArgsConstructor +public class StoreCustomerController { + + private final StoreQueryService storeQueryService; + + @GetMapping(value = "/{storeId}") + @ApiOperation("查询店铺") + public ResponseEntity<?> getCustomerStoreById(@PathVariable("storeId") Long storeId) { + StoreCustomerQueryCriteria criteria = new StoreCustomerQueryCriteria(); + criteria.setStoreId(storeId); + StoreCustomerDetailDto detailDto = storeQueryService.getCustomerStoreDetail(criteria); + return ResponseEntity.ok(R.success(detailDto)); + } + +} -- Gitblit v1.9.3