package com.tuoheng.controller.information;

import com.tuoheng.model.query.WorkorderQuery;
import com.tuoheng.service.information.WorkorderService;
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("/workorder")
public class WorkorderController {

    @Autowired
    private WorkorderService workorderService;

    /**
     * 查询工单列表
     *
     * @return
     */
    @GetMapping("/index")
    public JsonResult index(WorkorderQuery query) {
        return workorderService.index(query);
    }
}
