| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.service.impl.ScreenService; |
| | | import com.ruoyi.system.vo.ScreenRentRankVO; |
| | | import com.ruoyi.system.vo.ScreenTopStaticsDataVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author mitao |
| | |
| | | @Api(tags = {"大屏相关接口"}) |
| | | @RestController |
| | | @RequestMapping("/screen") |
| | | @RequiredArgsConstructor |
| | | @RequiredArgsConstructor(onConstructor_ = {@Lazy}) |
| | | public class ScreenController { |
| | | private final ScreenService screenService; |
| | | @GetMapping("/statics-data") |
| | | @ApiOperation(value = "获取顶部统计数据") |
| | | public R<ScreenTopStaticsDataVO> getTopStaticsData() { |
| | | return R.ok(screenService.getTopStaticsData()); |
| | | } |
| | | @ApiOperation("区域租金排名") |
| | | @GetMapping("/rent-rank") |
| | | public R<List<ScreenRentRankVO>> rentRank() { |
| | | return R.ok(screenService.rentRank()); |
| | | } |
| | | } |