package com.cool.store.controller.webb;

import com.cool.store.response.BuildInformationResponse;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.BuildInformationService;
import io.swagger.annotations.Api;
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;

/**
 * @Author: WangShuo
 * @Date: 2024/10/09/下午4:08
 * @Version 1.0
 * @注释:
 */
@Api("pc建店资料")
@RestController
@RequestMapping("/pc/buildInformation")
public class PCBuildInformationController {
    @Resource
    private BuildInformationService buildInformationService;

    @ApiOperation("获取详情")
    @GetMapping("/get")
    public ResponseResult<BuildInformationResponse> getBuildInformation(@RequestParam(value = "shopId", required = true) Long shopId) {
        return ResponseResult.success(buildInformationService.getBuildInformation(shopId));
    }

}
