New file |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.dto.otherSystem.OptimizeProject; |
| | | import com.example.erp.service.pp.OtherSystemInfoService; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.RequiredArgsConstructor; |
| | | 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 javax.validation.Valid; |
| | | |
| | | @RequiredArgsConstructor |
| | | @RestController |
| | | @Api(tags = "其他系统信息") |
| | | @RequestMapping("/getOtherSystemInfo") |
| | | public class OtherSystemInfoController { |
| | | private final OtherSystemInfoService otherSystemInfoService; |
| | | |
| | | @PostMapping("/getGlassInfo") |
| | | public Result getGlassInfo(@Valid @RequestBody OptimizeProject glassInfo) { |
| | | return Result.seccess(otherSystemInfoService.saveGlassInfo(glassInfo)); |
| | | } |
| | | } |