From 0a2f6f78683ba1c4e07f1359c1e7bf105a4bd507 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 23 九月 2024 13:59:07 +0800 Subject: [PATCH] mpk 分组管理 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileMenuController.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileMenuController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileMenuController.java index f46d255..bf3818c 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileMenuController.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/FileMenuController.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.FileMenuDTO; import com.iailab.module.model.mpk.entity.FileMenuEntity; import com.iailab.module.model.mpk.service.FileMenuService; @@ -34,6 +35,13 @@ return success(list); } + @GetMapping("/get") + @Operation(summary = "获取详情") + public CommonResult<FileMenuDTO> get(@RequestParam("id") String id) { + FileMenuEntity data = fileMenuService.get(id); + return success(ConvertUtils.sourceToTarget(data, FileMenuDTO.class)); + } + @PostMapping("/create") public CommonResult<Boolean> create(@Valid @RequestBody FileMenuEntity entity) { fileMenuService.create(entity); -- Gitblit v1.9.3