Class JsonImAndExportRestController


  • @RestController
    @RequestMapping(value="/vue/json",
                    produces="application/json")
    public class JsonImAndExportRestController
    extends Object
    接口信息
    Author:
    zhangchongjie
    Date:
    2024/05/23
    • Constructor Detail

      • JsonImAndExportRestController

        public JsonImAndExportRestController()
    • 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: