package com.elephant.framework.galaxy.aroad.module.roadnet_zhjc.controller;

import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;
import com.elephant.framework.galaxy.aroad.module.roadnet_zhjc.service.roadNetZhjcService;
import com.elephant.framework.galaxy.aroad.response.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 智慧养护_综合展示
 *
 * @author wangjian
 * @date 2019-04-26 11:51:59
 */
@RestController
@AllArgsConstructor
@RequestMapping("/roadnetzhjc")
public class roadNetZhjcController extends BaseController  {

  private final roadNetZhjcService roadNetZhjcService;

  /**
   * 智慧养护综合展示根据年份进行数据查询
   * @param year 年份
   * @return
   */
  @GetMapping("/getroadnetzhjcdata")
  public R getRoadNetZhjcData(String year) {
    return new R<>(roadNetZhjcService.getRoadNetZhjcData(year));
  }
}
