package com.tuoheng.controller.information;

import com.tuoheng.model.query.InspectionFileQuery;
import com.tuoheng.service.information.InspectionFileService;
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("/file")
public class InformationFileController {

    @Autowired
    private InspectionFileService inspectionFileService;

    /**
     * 查询问题列表
     *
     * @return
     */
    @GetMapping("/index")
    public JsonResult index(InspectionFileQuery query) {
        return inspectionFileService.index(query);
    }
}
