package com.tuoheng.controller.information;

import com.tuoheng.model.query.InformationQuery;
import com.tuoheng.service.information.InspectionService;
import com.tuoheng.until.JsonResult;
import lombok.AllArgsConstructor;
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("/information")
public class InformationController {

    @Autowired
    private InspectionService inspectionService;

    /**
     * 查询任务列表
     * @return
     */
    @GetMapping("/index")
    public JsonResult index(InformationQuery query) {
        return inspectionService.index(query);
    }


}
