xin
2025-06-03 95dc030ad8e77303207a1a42a3afd9a7a6612d75
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.oying.modules.pc.store.rest;
 
import com.oying.utils.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));
    }
 
}