package com.cool.store.controller.webc;

import com.cool.store.response.ResponseResult;
import com.cool.store.service.opening.OpeningAcceptanceService;
import com.cool.store.vo.opening.OpeningAcceptanceDetailVO;
import groovy.util.logging.Slf4j;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Auther zx_szh
 * @Date 2025/12/22 14:22
 * @Version 1.0
 */
@lombok.extern.slf4j.Slf4j
@RestController
@RequestMapping("mini/OpeningAcceptance")
@Api(tags = "小程序-开业验收后")
@Slf4j
public class MiniOpeningAcceptanceController {

    @Resource
    private OpeningAcceptanceService openingAcceptanceService;

    @GetMapping(path = "/getAcceptanceDetail")
    @ApiOperation("获取门店开业验收数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "shopId", value = "门店ID", required = true)
    })
    public ResponseResult<OpeningAcceptanceDetailVO> getAcceptanceDetail(@RequestParam(value = "shopId",required = true)Long shopId){
        return  ResponseResult.success(openingAcceptanceService.getAcceptanceDetail(shopId));
    }

}
