package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.WorksheetMain;
|
import com.whyc.service.WorksheetMainService;
|
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;
|
|
@RestController
|
@RequestMapping("worksheetMain")
|
@Api(tags = "工单流程")
|
public class WorksheetMainController {
|
|
@Autowired
|
private WorksheetMainService service;
|
|
@PostMapping("submit")
|
@ApiOperation("工单提交")
|
public Response submit(@RequestBody WorksheetMain main){
|
service.submit(main);
|
return new Response().setII(1,"工单提交完成");
|
}
|
|
}
|