| | |
| | | @PostMapping(value = "/baseDownLoad",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | ResultBody baseDownLoad(@RequestBody Map<String,Object> map) throws Exception; |
| | | |
| | | @PostMapping(value="byteUplaod",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | FileInfo byteUplaod(@RequestBody String fileName,@RequestBody byte[] bytes); |
| | | @PostMapping(value="byteUplaod") |
| | | FileInfo byteUplaod(@RequestParam("fileName") String fileName,@RequestBody byte[] bytes); |
| | | |
| | | } |
| | |
| | | newfileInfo.setName(newFileName); |
| | | newfileInfo.setId(IdUtil.fastSimpleUUID()); |
| | | newfileInfo.setSize(size); |
| | | newfileInfo.setIsImg(true); |
| | | newfileInfo.setIsImg(false); |
| | | newfileInfo.setContentType("byte[]"); |
| | | newfileInfo.setSource("aliyun"); |
| | | newfileInfo.setImgType(houzhui); |
| | | newfileInfo.setCreateTime(new Date()); |
| | | this.fileUpLoadOss(newfileInfo,newFileName,inputStream); |
| | | this.fileUpLoadOss(newfileInfo,"pdf/"+newFileName,inputStream); |
| | | baseMapper.insert(newfileInfo); |
| | | return newfileInfo; |
| | | } |
| | |
| | | /** |
| | | * byte[]上传 |
| | | */ |
| | | @PostMapping(value="byteUplaod",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | public FileInfo byteUplaod(@RequestBody String fileName,@RequestBody byte[] bytes){ |
| | | @PostMapping(value="byteUplaod") |
| | | public FileInfo byteUplaod(@RequestParam("fileName") String fileName,@RequestBody byte[] bytes){ |
| | | if(bytes.length == 0){ |
| | | return null; |
| | | } |
| | |
| | | // var my_api_server_url = 'http://zuul.kidgrow.com/'; |
| | | // var my_api_server_url = 'http://192.168.2.240:8888/'; |
| | | // var my_api_server_url = 'http://127.0.0.1:8888/'; |
| | | var my_api_server_url = 'http://127.0.0.1:8888/'; |
| | | // var my_api_server_url = 'http://192.168.2.240:8888/'; |
| | | var my_api_server_url = 'http://open.zuul.kidgrow.cloud/'; |
| | | // var my_api_server_url = 'http://open.zuul.kidgrow.cloud/'; |
| | | // var my_api_server_url = 'http://uat.zuul.kidgrow.cloud/'; |
| | | // var my_api_server_url = 'https://zuul.kidgrow.cloud/'; |
| | | //var my_api_server_url = 'http://123.57.164.62:8888/'; |