package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.pojo.UserInf; import com.whyc.pojo.WorksheetMain; import com.whyc.service.WorksheetMainService; import com.whyc.util.ActionUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.io.IOException; /** * @author perryhsu * @date 2022/12/17 22:13 */ @RestController @RequestMapping("worksheetMain") @Api(tags = "工单主单") public class WorksheetMainController extends BaseController{ @Autowired private WorksheetMainService service; /**没有使用*/ @PostMapping("alarmFlowSubmit") @ApiOperation(value = "告警工单提交") @Deprecated public Response alarmFlowSubmit(@RequestBody WorksheetMain main) { UserInf user = ActionUtil.getUser(); return service.alarmFlowSubmit(main,user); } }