|
@@ -1,11 +1,13 @@
|
|
|
package cn.kdan.pdf.tech.core.controller;
|
|
|
|
|
|
import cn.kdan.pdf.tech.core.service.VppKeyFileService;
|
|
|
+import constant.CommonConstant;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
+import pojo.ResultMap;
|
|
|
|
|
|
/**
|
|
|
* @author ComPDFKit-WPH 2024/1/2
|
|
@@ -20,8 +22,9 @@ public class VppKeyFileController {
|
|
|
private final VppKeyFileService vppKeyFileService;
|
|
|
|
|
|
@PostMapping("/parseKeyFile")
|
|
|
- public void parseKeyFile(MultipartFile keyFile, boolean updateOrInit) {
|
|
|
+ public ResultMap<Void> parseKeyFile(MultipartFile keyFile, boolean updateOrInit) {
|
|
|
vppKeyFileService.parseKeyFile(keyFile, updateOrInit);
|
|
|
+ return new ResultMap<>(CommonConstant.SUCCESS, CommonConstant.RESULT_SUCCESS);
|
|
|
}
|
|
|
|
|
|
}
|