Package net.risesoft.controller
Class JsonImAndExportRestController
- java.lang.Object
-
- net.risesoft.controller.JsonImAndExportRestController
-
@RestController @RequestMapping(value="/vue/json", produces="application/json") public class JsonImAndExportRestController extends Object接口信息- Author:
- zhangchongjie
- Date:
- 2024/05/23
-
-
Constructor Summary
Constructors Constructor Description JsonImAndExportRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.ResponseEntity<byte[]>buildJsonDownloadResponse(Object data, String baseFilename)org.springframework.http.ResponseEntity<byte[]>exportJson(String id, String type)导出 JSON 数据net.risesoft.pojo.Y9Result<String>importJson(org.springframework.web.multipart.MultipartFile file, String id, String type)导入接口信息及参数
-
-
-
Method Detail
-
exportJson
@GetMapping("/exportJson") public org.springframework.http.ResponseEntity<byte[]> exportJson(@RequestParam(required=false) String id, @RequestParam String type)导出 JSON 数据- Parameters:
id- 接口id(注意事项:id为空时,导出所有接口信息,事项配置导出接口参数:id(接口id:事项id))- Returns:
- JSON 数据
-
buildJsonDownloadResponse
protected org.springframework.http.ResponseEntity<byte[]> buildJsonDownloadResponse(Object data, String baseFilename)
-
importJson
@PostMapping(value="/importJson", consumes="multipart/form-data") public net.risesoft.pojo.Y9Result<String> importJson(org.springframework.web.multipart.MultipartFile file, @RequestParam(required=false) String id, @RequestParam String type)导入接口信息及参数- Parameters:
file- 导入文件id- (type:interfaceParam,事项配置导入接口参数:id(接口id:事项id)- Returns:
-
-