package com.tuoheng.controller.information;

import com.tuoheng.model.query.ReportQuery;
import com.tuoheng.service.information.ReportService;
import com.tuoheng.until.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 报告表前端控制器
 *
 * @Author xiaoying
 * @Date 2023/4/24 9:28
 */
@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    private ReportService reportService;

    /**
     * 查询报告列表
     *
     * @return
     */
    @GetMapping("/index")
    public JsonResult index(ReportQuery query) {
        return reportService.index(query);
    }
}
