From a874b928e16320839315b9abcdf2cece1229a424 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 07 十一月 2024 09:20:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileGroupController.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileGroupController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileGroupController.java index db9d1e1..596fcdd 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileGroupController.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileGroupController.java @@ -1,6 +1,7 @@ package com.iailab.module.model.mpk.controller.admin; import com.iailab.framework.common.pojo.CommonResult; +import com.iailab.framework.common.util.object.ConvertUtils; import com.iailab.module.model.mpk.dto.FileGroupDTO; import com.iailab.module.model.mpk.entity.FileGroupEntity; import com.iailab.module.model.mpk.service.FileGroupService; @@ -33,13 +34,20 @@ return success(list); } + @GetMapping("/get") + @Operation(summary = "获取详情") + public CommonResult<FileGroupDTO> get(@RequestParam("id") String id) { + FileGroupDTO data = ConvertUtils.sourceToTarget(fileGroupService.get(id), FileGroupDTO.class); + return success(data); + } + @PostMapping("/create") public CommonResult<Boolean> create(@Valid @RequestBody FileGroupEntity entity) { fileGroupService.create(entity); return success(true); } - @PostMapping("/update") + @PutMapping("/update") public CommonResult<Boolean> update(@Valid @RequestBody FileGroupEntity entity) { fileGroupService.update(entity); return success(true); -- Gitblit v1.9.3