doum
2025-12-12 dce1e83ec27a066ebc6c17a4ac6d03c9ad6ff703
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.doumee.api.web;
 
import com.doumee.core.annotation.trace.Trace;
import com.doumee.core.model.ApiResponse;
import com.doumee.core.model.PageData;
import com.doumee.core.model.PageWrap;
import com.doumee.dao.web.dto.shop.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
 
/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Rk
 * @create 2023/3/23 17:33
 */
@Api(tags = "商户门面信息业务")
@Trace(exclude = true)
@RestController
@RequestMapping("/web/shop")
@Slf4j
public class ShopApi extends ApiController{
 
 
    /**
     * 获取店铺门面信息
     * @param shopId
     * @return
     */
    @ApiOperation(value = "获取店铺门面信息", notes = "小程序端")
    @GetMapping("/shopFaceDetailDTO")
    public ApiResponse<ShopFaceDetailDTO> getShopFaceDetailDTO(@RequestParam Integer shopId){
        return ApiResponse.success(shopService.getShopFaceDetailDTO(shopId,getMemberId()));
    }
 
    /**
     * 推荐商铺列表
     * @param pageWrap
     * @return
     */
    @ApiOperation(value = "获取店铺门面信息", notes = "小程序端")
    @GetMapping("/findShopPage")
    public ApiResponse<PageData<ShopSimpleDTO>> getShopSimpleDTOList(@RequestParam PageWrap<ShopSimpleDTO> pageWrap){
        return ApiResponse.success(shopService.getShopSimpleDTOList(pageWrap));
    }
 
    /**
     * 查询店铺统计信息
     * @param shopId
     * @return
     */
    @ApiOperation(value = "查询店铺统计信息", notes = "小程序端")
    @GetMapping("/getShopDataStatisticsDTO")
    public ApiResponse<ShopDataStatisticsDTO> getShopDataStatisticsDTO(@RequestParam Integer shopId){
        return ApiResponse.success(shopService.getShopDataStatisticsDTO(shopId));
    }
 
    /**
     * 支持维护店铺信息
     * @param shopDTO
     */
    @ApiOperation(value = "支持维护店铺信息", notes = "小程序端")
    @PostMapping("/update")
    public ApiResponse update(@RequestBody ShopDTO shopDTO){
        Integer memberId = getMemberId();
        shopService.update(shopDTO,memberId);
        return ApiResponse.success(null);
    }
}