package cn.iocoder.yudao.module.tickets.controller.app;


import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.tickets.service.DlRepairTitemService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

/**
 * 维修工单子表(DlRepairTitem)表控制层
 * @author vinjor-M
 * @date 11:48 2024/11/5
**/
@RestController
    @RequestMapping("/repair/titem")
public class ApiRepairTitemController {
    /**
     * 服务对象
     */
    @Resource
    private DlRepairTitemService dlRepairTitemService;
    /**
     * 查某工单维修项目进度
     * @author vinjor-M
     * @date 10:57 2024/11/5
     * @param ticketId 工单id
    **/
    @GetMapping("/getProjList")
    @Operation(summary = "查某工单维修项目进度")
    @TenantIgnore
    public CommonResult<?> getProjList(@RequestParam("ticketId") String ticketId){
        return success(dlRepairTitemService.getProjList(ticketId,"1"));
    }
}

