¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.basic.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.basic.pojo.StructureTestObjectPart; |
| | | import com.ruoyi.basic.service.StructureTestObjectPartService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * æ£éªå¯¹è±¡é¶ä»¶è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-08-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/structureTestObjectPart") |
| | | @AllArgsConstructor |
| | | @Api(tags = "æ£éªå¯¹è±¡é¶ä»¶è¡¨") |
| | | public class StructureTestObjectPartController { |
| | | |
| | | private StructureTestObjectPartService structureTestObjectPartService; |
| | | |
| | | @ApiOperation(value = "æ ¹æ®æ£éªå¯¹è±¡idæ¥è¯¢é¶ä»¶") |
| | | @PostMapping("/selectByTestObjectId") |
| | | public Result selectByTestObjectId(Page page,StructureTestObjectPart structureTestObjectPart){ |
| | | return Result.success(structureTestObjectPartService.selectByTestObjectId(page,structureTestObjectPart)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æ£éªå¯¹è±¡é¶ä»¶") |
| | | @PostMapping("/addTestObjectPart") |
| | | public Result addTestObjectPart(@RequestBody StructureTestObjectPart structureTestObjectPart) { |
| | | structureTestObjectPartService.addTestObjectPart(structureTestObjectPart); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°æ£éªå¯¹è±¡é¶ä»¶") |
| | | @PostMapping("/updateTestObjectPart") |
| | | public Result updateTestObjectPart(@RequestBody StructureTestObjectPart structureTestObjectPart) { |
| | | structureTestObjectPartService.updateTestObjectPart(structureTestObjectPart); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿£éªå¯¹è±¡é¶ä»¶") |
| | | @PostMapping("/deleteTestObjectPart") |
| | | public Result deleteTestObjectPart(Integer id) { |
| | | structureTestObjectPartService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| | | |