| | |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfDetEntity; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotConfDetService; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetSaveReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.*; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @Description |
| | | * @createTime 2025年05月23日 |
| | | */ |
| | | @Tag(name = "调度建议快照详情") |
| | | @Tag(name = "调度建议快照配置详情") |
| | | @RestController |
| | | @RequestMapping("/model/suggest/snapshot/conf-det") |
| | | public class StSuggestSnapshotConfDetController { |
| | |
| | | @GetMapping("/page") |
| | | @PreAuthorize("@ss.hasPermission('suggest:snapshot:query')") |
| | | public CommonResult<PageResult<StSuggestSnapshotConfDetRespVO>> getPage(@Valid StSuggestSnapshotConfDetPageReqVO pageVO) { |
| | | PageResult<StSuggestSnapshotConfDetRespVO> pageResult = stSuggestSnapshotConfDetService.page(pageVO); |
| | | return success(pageResult); |
| | | PageResult<StSuggestSnapshotConfDetEntity> pageResult = stSuggestSnapshotConfDetService.page(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, StSuggestSnapshotConfDetRespVO.class)); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | |
| | | stSuggestSnapshotConfDetService.delete(id); |
| | | return success(true); |
| | | } |
| | | |
| | | @GetMapping("/get") |
| | | @PreAuthorize("@ss.hasPermission('suggest:snapshot:info')") |
| | | public CommonResult<StSuggestSnapshotConfDetRespVO> get(@RequestParam("id") String id) { |
| | | StSuggestSnapshotConfDetRespVO result = stSuggestSnapshotConfDetService.get(id); |
| | | return success(result); |
| | | } |
| | | } |