feat:数据看板
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.request.recipe.RevenueDataRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.ThirdFoodService;
|
||||
import com.cool.store.vo.recipe.RevenueDataVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据看板 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/10/30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pc/databoard")
|
||||
@Api(tags = "数据看板")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class DataBoardController {
|
||||
private final ThirdFoodService thirdFoodService;
|
||||
|
||||
@ApiOperation("门店营收")
|
||||
@PostMapping("/revenueData")
|
||||
public ResponseResult<List<RevenueDataVO>> getStoreRevenueData(@RequestBody @Valid RevenueDataRequest request) {
|
||||
return ResponseResult.success(thirdFoodService.getRevenueData(request));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user