| | |
| | | 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; |
| | |
| | | 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); |