| | |
| | | // 图片大小(长宽)压缩比例 从0-1,1表示原图 |
| | | .scale(1f) |
| | | // 图片质量压缩比例 从0-1,越接近1质量越好 |
| | | .outputQuality(0.5f) |
| | | .outputQuality(1f) |
| | | .asBufferedImage(); |
| | | //对内存中的图片文件进行Base64处理 |
| | | ByteArrayOutputStream newBaos = new ByteArrayOutputStream();//io流 |
| | |
| | | return adminMallGoodsService.deliverGoods(deliverGoodsDto); |
| | | } |
| | | |
| | | /** |
| | | * 订单列表-删除订单 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("delOrder/{id}") |
| | | @ControllerEndpoint(operation = "订单列表-删除订单", exceptionMessage = "操作失败") |
| | | public FebsResponse delOrder(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return adminMallGoodsService.delOrder(id); |
| | | } |
| | | |
| | | @GetMapping(value = "/findDicByType/{type}") |
| | | public FebsResponse findDicByType(@PathVariable("type") String type) { |
| | | return new FebsResponse().success().data(adminMallGoodsService.findDataDicByType(type)); |