feat: 在线编辑根据Id获取文件信息接口
This commit is contained in:
+14
@@ -115,6 +115,20 @@ public class OnlyOfficeController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据Id获取文件信息
|
||||||
|
* id是saveEditFile接口返回的id 也是bus_process_model_his表的id
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "根据Id获取文件信息")
|
||||||
|
@GetMapping("/queryById")
|
||||||
|
public Result<Map<String, String>> queryById(String id) {
|
||||||
|
HashMap<String, String> map = new HashMap<>();
|
||||||
|
BusProcessModelHis his = busProcessModelHisService.getById(id);
|
||||||
|
map.put("fileName", his.getFileName());
|
||||||
|
map.put("editFilePath", his.getEditFilePath());
|
||||||
|
map.put("id", his.getId());
|
||||||
|
return Result.OK(map);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "|onlyOffice接收文件")
|
@ApiOperation(value = "|onlyOffice接收文件")
|
||||||
@PostMapping("/receiveFile")
|
@PostMapping("/receiveFile")
|
||||||
|
|||||||
Reference in New Issue
Block a user