| | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.module.model.mpk.dto.MpkFileDTO; |
| | | import com.iailab.module.model.mpk.service.MpkFileService; |
| | | import com.iailab.module.model.mpk.service.PackService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public class MpkFileController { |
| | | @Autowired |
| | | private MpkFileService mpkFileService; |
| | | |
| | | @Autowired |
| | | private PackService packService; |
| | | |
| | | @GetMapping("page") |
| | | @Operation(summary = "分页") |
| | |
| | | dto.setGroupName(dto.getMenuAndGroup().get(1)); |
| | | } |
| | | } |
| | | dto.setPyModule(packService.getModelPath(dto.getClassName())); |
| | | mpkFileService.save(dto); |
| | | return CommonResult.success(true); |
| | | } |
| | |
| | | dto.setGroupName(dto.getMenuAndGroup().get(1)); |
| | | } |
| | | } |
| | | dto.setPyModule(packService.getModelPath(dto.getClassName())); |
| | | mpkFileService.update(dto); |
| | | return CommonResult.success(true); |
| | | } |