package com.cool.store.controller.webb;

import com.alibaba.fastjson.JSONObject;
import com.cool.store.request.FranchiseReportRequest;
import com.cool.store.response.FranchiseReportResponse;
import com.cool.store.response.ResponseResult;
import com.cool.store.response.ShopReportResponse;
import com.cool.store.service.FranchiseReportService;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: WangShuo
 * @Date: 2025/05/13/15:46
 * @Version 1.0
 * @注释:
 */
@RestController
@RequestMapping("/pc/franchiseReport")
@Api(tags = "PC端加盟报表")
public class PCFranchiseReportController {
    @Resource
    private FranchiseReportService franchiseReportService;

    @RequestMapping("/getZxjpOpenShopReport")
    @ApiOperation("正新鸡排开店")
    public ResponseResult< List<FranchiseReportResponse>> getList(@RequestBody FranchiseReportRequest request) {
       return  ResponseResult.success( franchiseReportService.zxjpOpenShopReport(request));
     }

     @RequestMapping("/getZxjpOpenShopReportPage")
     @ApiOperation("正新鸡排开店明细")
      public ResponseResult<PageInfo<ShopReportResponse>> ZxjpOpenShopReportPage(@RequestBody FranchiseReportRequest request) {
        return  ResponseResult.success( franchiseReportService.zxjpOpenShopReportPage(request));
    }
}
