public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
public HttpHeaders getHeadersForSuccessPostMethod(HttpServletRequest request, Long newResourceId) { HttpHeaders httpHeaders = new HttpHeaders(); try { httpHeaders.setLocation(new URI(request.getRequestURI() + "/" + newResourceId)); } catch (URISyntaxException e) { e.printStackTrace(); } httpHeaders.add("Content-Type", "application/json; charset=UTF-8"); return httpHeaders; }
private ResponseEntity<Void> deleteProduct(@PathVariable("id") Long id){ Product product = productService.getProductById(id); if(product != null) { try { productService.deleteProduct(id); return new ResponseEntity<Void>( headerGenerator.getHeadersForSuccessGetMethod(), HttpStatus.OK); }catch (Exception e) { e.printStackTrace(); return new ResponseEntity<Void>( headerGenerator.getHeadersForError(), HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<Void>(headerGenerator.getHeadersForError(), HttpStatus.NOT_FOUND); }
private ResponseEntity<Void> deleteRecommendations(@PathVariable("id") Long id){ Recommendation recommendation = recommendationService.getRecommendationById(id); if(recommendation != null) { try { recommendationService.deleteRecommendation(id); return new ResponseEntity<Void>( headerGenerator.getHeadersForSuccessGetMethod(), HttpStatus.OK); }catch (Exception e) { e.printStackTrace(); return new ResponseEntity<Void>( headerGenerator.getHeadersForError(), HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<Void>( headerGenerator.getHeadersForError(), HttpStatus.NOT_FOUND); }
public CommonResult<CommonPage<EsProduct>> search(@RequestParam(required = false) String keyword, @RequestParam(required = false) Long brandId, @RequestParam(required = false) Long productCategoryId, @RequestParam(required = false, defaultValue = "0") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSize, @RequestParam(required = false, defaultValue = "0") Integer sort) { Page<EsProduct> esProductPage = esProductService.search(keyword, brandId, productCategoryId, pageNum, pageSize, sort); return CommonResult.success(CommonPage.restPage(esProductPage)); }
public CommonResult<CommonPage<PmsProduct>> search(@RequestParam(required = false) String keyword, @RequestParam(required = false) Long brandId, @RequestParam(required = false) Long productCategoryId, @RequestParam(required = false, defaultValue = "0") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSize, @RequestParam(required = false, defaultValue = "0") Integer sort) { List<PmsProduct> productList = portalProductService.search(keyword, brandId, productCategoryId, pageNum, pageSize, sort); return CommonResult.success(CommonPage.restPage(productList)); }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult deleteBatch(@RequestParam("ids") List<Long> ids) { int count = brandService.deleteBrand(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = productAttributeService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsMenu umsMenu) { int count = menuService.create(umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = menuService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.create(umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResource umsResource) { int count = resourceService.create(umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestParam String name) { int count = productAttributeCategoryService.create(name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productAttributeCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.create(productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductParam productParam) { int count = productService.create(productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsMenu umsMenu) { int count = menuService.create(umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsMenu umsMenu) { int count = menuService.create(umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = menuService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.create(umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResource umsResource) { int count = resourceService.create(umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestParam String name) { int count = productAttributeCategoryService.create(name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productAttributeCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.create(productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductParam productParam) { int count = productService.create(productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = menuService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.create(umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResource umsResource) { int count = resourceService.create(umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult create(@RequestParam String name) { int count = productAttributeCategoryService.create(name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productAttributeCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.create(productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductParam productParam) { int count = productService.create(productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandDto pmsBrandDto) { CommonResult commonResult; int count = demoService.updateBrand(id, pmsBrandDto); if (count == 1) { commonResult = CommonResult.success(pmsBrandDto); LOGGER.debug("updateBrand success:{}", pmsBrandDto); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("updateBrand failed:{}", pmsBrandDto); } return commonResult; }
public CommonResult update(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandParam pmsBrandParam) { CommonResult commonResult; int count = brandService.updateBrand(id, pmsBrandParam); if (count == 1) { commonResult = CommonResult.success(count); } else { commonResult = CommonResult.failed(); } return commonResult; }
public CommonResult createBrand(@Validated @RequestBody PmsBrandDto pmsBrand) { CommonResult commonResult; int count = demoService.createBrand(pmsBrand); if (count == 1) { commonResult = CommonResult.success(pmsBrand); LOGGER.debug("createBrand success:{}", pmsBrand); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("createBrand failed:{}", pmsBrand); } return commonResult; }
public CommonResult create(@Validated @RequestBody PmsBrandParam pmsBrand) { CommonResult commonResult; int count = brandService.createBrand(pmsBrand); if (count == 1) { commonResult = CommonResult.success(count); } else { commonResult = CommonResult.failed(); } return commonResult; }
public CommonResult updateHidden(@PathVariable Long id, @RequestParam("hidden") Integer hidden) { int count = menuService.updateHidden(id, hidden); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult updateHidden(@PathVariable Long id, @RequestParam("hidden") Integer hidden) { int count = menuService.updateHidden(id, hidden); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult updateHidden(@PathVariable Long id, @RequestParam("hidden") Integer hidden) { int count = menuService.updateHidden(id, hidden); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.update(id, umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsMenu umsMenu) { int count = menuService.update(id, umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsResource umsResource) { int count = resourceService.update(id, umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestParam String name) { int count = productAttributeCategoryService.update(id, name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.update(id, productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@Validated @RequestBody PmsProductCategoryParam productCategoryParam) { int count = productCategoryService.create(productCategoryParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody PmsProductParam productParam) { int count = productService.update(id, productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult deleteBatch(@RequestParam("ids") List<Long> ids) { int count = brandService.deleteBrand(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) { int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = productAttributeService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.update(id, umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.update(id, umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsMenu umsMenu) { int count = menuService.update(id, umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsMenu umsMenu) { int count = menuService.update(id, umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsResource umsResource) { int count = resourceService.update(id, umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody UmsResource umsResource) { int count = resourceService.update(id, umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestParam String name) { int count = productAttributeCategoryService.update(id, name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestParam String name) { int count = productAttributeCategoryService.update(id, name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.update(id, productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.update(id, productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@Validated @RequestBody PmsProductCategoryParam productCategoryParam) { int count = productCategoryService.create(productCategoryParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@Validated @RequestBody PmsProductCategoryParam productCategoryParam) { int count = productCategoryService.create(productCategoryParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody PmsProductParam productParam) { int count = productService.update(id, productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult update(@PathVariable Long id, @RequestBody PmsProductParam productParam) { int count = productService.update(id, productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult deleteBatch(@RequestParam("ids") List<Long> ids) { int count = brandService.deleteBrand(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberProductCollection productCollection) { int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = productAttributeService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult deleteBatch(@RequestParam("ids") List<Long> ids) { int count = brandService.deleteBrand(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = productAttributeService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult add(@RequestBody MemberBrandAttention memberBrandAttention) { int count = memberAttentionService.add(memberBrandAttention); if(count>0){ return CommonResult.success(count); }else{ return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsMenu umsMenu) { int count = menuService.create(umsMenu); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = menuService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.create(umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody UmsResource umsResource) { int count = resourceService.create(umsResource); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = resourceService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestParam String name) { int count = productAttributeCategoryService.create(name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productAttributeCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.create(productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@PathVariable Long id) { int count = productCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult create(@RequestBody PmsProductParam productParam) { int count = productService.create(productParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public CommonResult delete(@RequestParam("ids") List<String> ids) { int count = memberReadHistoryService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } }
public ResponseMessage code( @RequestParam String phone) { String code = smsService.sendCode(phone); if (StringUtils.isNotEmpty(code)) { return ResponseMessage.successMessage("发送成功"); } else { return ResponseMessage.failedMessage("发送失败"); } }
public ResponseMessage uploadAvatar( @RequestBody UploadAvatar uploadAvatar) { boolean flag = userInfoService.uploadAvatar(uploadAvatar); if (flag) { return ResponseMessage.successMessage("上传头像成功"); } else { return ResponseMessage.failedMessage("上传头像失败"); } }
private void verifyToken(RequestContext ctx) { try { String token = CookieUtils.getCookie("token"); Claims claims = JWTUtils.parseJWT(token, "nimadetou".getBytes()); String subject = claims.getSubject(); UserInfoDTO userinfo = JSONUtils.parseObject(subject, UserInfoDTO.class); log.info(userinfo.getUserId()); ctx.setSendZuulResponse(true); } catch (Exception e) { ctx.setSendZuulResponse(false); } }
private void verifyToken(RequestContext ctx) { try { String token = CookieUtils.getCookie("token"); Claims claims = JWTUtils.parseJWT(token, "nimadetou".getBytes()); String subject = claims.getSubject(); UserInfoDTO userinfo = JSONUtils.parseObject(subject, UserInfoDTO.class); log.info(userinfo.getUserId()); ctx.setSendZuulResponse(true); } catch (Exception e) { ctx.setSendZuulResponse(false); } }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> login(@RequestParam("username") String username, @RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) throws Exception { logger.info("登录请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("登录数据处理开始,username:{}", username); RestAPIResult<String> result = passportService.loginHandle(username, password, RSAKey); logger.info("登录数据处理结束,result:{}", result); stopWatch.stop(); logger.info("登录调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> login(@RequestParam("username") String username, @RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) throws Exception { logger.info("登录请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("登录数据处理开始,username:{}", username); RestAPIResult<String> result = passportService.loginHandle(username, password, RSAKey); logger.info("登录数据处理结束,result:{}", result); stopWatch.stop(); logger.info("登录调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getUid(@RequestParam("shareId") String shareId, @RequestParam("lockPassword") String lockPassword) { logger.info("获取分享虚拟地址信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享虚拟地址信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getVinfoHandle(shareId, lockPassword); logger.info("获取分享虚拟地址信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享虚拟地址信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> verifykLock(@RequestParam("lockPassword") String lockPassword, @RequestParam("shareId") String shareId) { logger.info("验证分享密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("验证分享密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.verifykLockHandle(lockPassword, shareId); logger.info("验证分享密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("验证分享密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regCheckPwd(@RequestParam("password") String password, @RequestParam("RSAKey") String RSAKey) { logger.info("检查密码格式请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("检查密码格式数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.regCheckPwdHandle(password, RSAKey); logger.info("检查密码格式数据处理结束,result:{}", result); stopWatch.stop(); logger.info("检查密码格式调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadPic(@RequestParam("uid") String uid, @RequestParam("file") MultipartFile file) throws IOException { logger.info("上传用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.uploadPicHandle(uid, file); logger.info("上传用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhone(@RequestParam("phoneNum") String phoneNum) { logger.info("手机号查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号查重数据处理开始,phoneNum:{}", phoneNum); RestAPIResult<String> result = registerService.checkPhoneHandle(phoneNum); logger.info("手机号查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> regPhoneSend(@RequestBody RegPhoneSendRequest request) { logger.info("注册发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("注册发送短信数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.regPhoneSendHandle(request); logger.info("注册发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("注册发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> changePwd(@RequestBody ChangePwdRequest request) { logger.info("修改密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("修改密码数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.changePwdHandle(request); logger.info("修改密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("修改密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> loadImg(@RequestParam("uid") String uid) { logger.info("加载用户头像请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("加载用户头像数据处理开始,uid:{}", uid); RestAPIResult<String> result = registerService.loadImgHandle(uid); logger.info("加载用户头像数据处理结束,result:{}", result); stopWatch.stop(); logger.info("加载用户头像调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkUserName(@RequestParam("userName") String userName) { logger.info("用户名查重请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户名查重数据处理开始,userName:{}", userName); RestAPIResult<String> result = registerService.checkUserNameHandle(userName); logger.info("用户名查重数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户名查重调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> forgetPhoneSend(@RequestBody ForgetPhoneSendRequest request) { logger.info("忘记密码短信服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码短信服务数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.forgetPhoneSendHandle(request); logger.info("忘记密码短信服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码短信服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<UserInfoDTO> getUserInfo(@RequestParam("userId") String userId) { logger.info("根据用户ID获取用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据用户ID获取用户信息数据处理开始,userId:{}", userId); RestAPIResult<UserInfoDTO> result = passportService.getUserInfoHandle(userId); logger.info("根据用户ID获取用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据用户ID获取用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> logout(@RequestParam("token") String token) { logger.info("退出请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("退出数据处理开始,token:{}", token); RestAPIResult<String> result = passportService.logoutHandle(token); logger.info("退出数据处理结束,result:{}", result); stopWatch.stop(); logger.info("退出调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> modifyPass(@RequestBody ModifyPassRequest request) { logger.info("忘记密码的修改服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("忘记密码的修改数据处理开始,request:{}", request); RestAPIResult<String> result = passwordService.modifyPassHandle(request); logger.info("忘记密码的修改数据处理结束,result:{}", result); stopWatch.stop(); logger.info("忘记密码的修改调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> initCapacity(@RequestParam("userId") String userId) { logger.info("初始化容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("初始化容量数据处理开始,userId:{}", userId); RestAPIResult<Integer> result = capacityProvider.initCapacityHandle(userId); logger.info("初始化容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("初始化容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> renameFileOrDir(@RequestBody RenameFileOrDirRequest request) { logger.info("文件或文件夹重命名请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件或文件夹重命名数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.renameFileOrDirHandle(request); logger.info("文件或文件夹重命名数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件或文件夹重命名调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> createDir(@RequestBody CreateDirRequest request) { logger.info("创建文件夹请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件夹数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.createDirHandle(request); logger.info("创建文件夹数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件夹调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> copyOrMoveFile(@RequestBody CopyOrMoveFileRequest request) { logger.info("文件复制或移动请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("文件复制或移动数据处理开始,request:{}", request); RestAPIResult<String> result = updateContentProvider.copyOrMoveFileHandle(request); logger.info("文件复制或移动数据处理结束,result:{}", result); stopWatch.stop(); logger.info("文件复制或移动调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> createVirtualAddress(@RequestBody CreateVirtualAddressRequest request) { logger.info("创建文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("创建文件数据处理开始,request:{}", request); RestAPIResult<Integer> result = updateContentProvider.createVirtualAddressHandle(request); logger.info("创建文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("创建文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkPhoneSend(@RequestParam("username") String username) { logger.info("手机号/用户名校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("手机号/用户名校验数据处理开始,username:{}", username); RestAPIResult<String> result = passwordService.checkPhoneSendHandle(username); logger.info("手机号/用户名校验数据处理结束,result:{}", result); stopWatch.stop(); logger.info("手机号/用户名校验调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> md5Check(String fid, String md5) { logger.info("Md5校验服务请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("Md5校验服务数据处理开始,md5:{}", md5); RestAPIResult<String> result = md5Provider.md5CheckHandle(fid, md5); logger.info("Md5校验服务数据处理结束,result:{}", result); stopWatch.stop(); logger.info("Md5校验服务调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<VirtualAddressDTO> getVirtualaddress(String vid, String uid) { logger.info("根据虚拟地址ID获取实体请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取实体数据处理开始,vid:{}", vid); RestAPIResult<VirtualAddressDTO> result = queryContentProvider.getVirtualaddressHandle(vid, uid); logger.info("根据虚拟地址ID获取实体数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取实体调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getFileNameByVid(String vid, String uid) { logger.info("根据虚拟地址ID获取文件名称请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("根据虚拟地址ID获取文件名称数据处理开始,vid:{}", vid); RestAPIResult<String> result = queryContentProvider.getFileNameByVidHandle(vid, uid); logger.info("根据虚拟地址ID获取文件名称数据处理结束,result:{}", result); stopWatch.stop(); logger.info("根据虚拟地址ID获取文件名称调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> saveShare(@RequestBody SaveShareRequest request) { logger.info("保存分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("保存分享数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.saveShareHandle(request); logger.info("保存分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("保存分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> userRegist(@RequestBody UserRegistRequest request) throws Exception { logger.info("用户注册请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("用户注册数据处理开始,request:{}", request); RestAPIResult<String> result = registerService.userRegistHandle(request); logger.info("用户注册数据处理结束,result:{}", result); stopWatch.stop(); logger.info("用户注册调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String s(Model model, @PathVariable String shareId) { logger.info("查看分享页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查看分享页面数据处理开始"); String resultUrl = pageProvider.sHandle(model, shareId); logger.info("查看分享页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("查看分享页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> share(@RequestBody ShareRequest request) { logger.info("分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("分享文件数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareHandle(request); logger.info("分享文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> sendSms(@RequestBody SendSmsRequest request) { logger.info("发送短信请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("发送短信数据处理开始"); RestAPIResult<String> result = sendSmsProvider.sendSmsHandle(request); logger.info("发送短信数据处理结束,result:{}", result); stopWatch.stop(); logger.info("发送短信调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> checkLock(@RequestParam("shareId") String shareId) { logger.info("查询分享是否带密码请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询分享是否带密码数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.checkLockHandle(shareId); logger.info("查询分享是否带密码数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询分享是否带密码调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getShareUser(String shareId) { logger.info("获取分享用户信息请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享用户信息数据处理开始,shareId:{}", shareId); RestAPIResult<String> result = shareProvider.getShareUserHandle(shareId); logger.info("获取分享用户信息数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享用户信息调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> unShare(String uid, String vids) { logger.info("取消分享请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("取消分享数据处理开始,vids:{}", vids); RestAPIResult<String> result = shareProvider.unShareHandle(uid, vids); logger.info("取消分享数据处理结束,result:{}", result); stopWatch.stop(); logger.info("取消分享调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> shareList(ShareListRequest request) { logger.info("获取分享列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("获取分享列表数据处理开始,request:{}", request); RestAPIResult<String> result = shareProvider.shareListHandle(request); logger.info("获取分享列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("获取分享列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> upload(MultipartFile file) throws IOException { logger.info("上传文件(内部调用)请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件(内部调用)数据处理开始"); RestAPIResult<String> result = uploadFileProvider.uploadHandle(file); logger.info("上传文件(内部调用)数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> quickUploadFile(QuickUploadFileRequest request) throws UnsupportedEncodingException { logger.info("秒传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("秒传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.quickUploadFileHandle(request); logger.info("秒传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("秒传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> uploadFile(UploadFileRequest request) throws IOException { logger.info("上传文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("上传文件数据处理开始,request:{}", request); RestAPIResult<String> result = uploadFileProvider.uploadFileHandle(request); logger.info("上传文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("上传文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> deleteFile(String uid, String vids) throws Exception { logger.info("删除文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("删除文件数据处理开始,vids:{}", vids); RestAPIResult<String> result = updateContentProvider.deleteFileHandle(vids); logger.info("删除文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("删除文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<Integer> checkDirWhether(CheckDirWhetherRequest request) { logger.info("查询文件夹是否存在请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件夹是否存在数据处理开始,request:{}", request); RestAPIResult<Integer> result = queryContentProvider.checkDirWhetherHandle(request); logger.info("查询文件夹是否存在数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件夹是否存在调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> searchFile(SearchFileRequest request) { logger.info("搜索文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("搜索文件数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.searchFileHandle(request); logger.info("搜索文件数据处理结束,result:{}", result); stopWatch.stop(); logger.info("搜索文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFolder(ListFolderRequest request) throws Exception { logger.info("展示文件夹列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("展示文件夹列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFolderHandle(request); logger.info("展示文件夹列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("展示文件夹列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> listFile(ListFileRequest request) throws UnsupportedEncodingException { logger.info("查询文件列表请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询文件列表数据处理开始,request:{}", request); RestAPIResult<String> result = queryContentProvider.listFileHandle(request); logger.info("查询文件列表数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询文件列表调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> useCapacity(String uid) { logger.info("查询使用容量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("查询使用容量数据处理开始,uid:{}", uid); RestAPIResult<String> result = capacityProvider.useCapacityHandle(uid); logger.info("查询使用容量数据处理结束,result:{}", result); stopWatch.stop(); logger.info("查询使用容量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String share(Model model) { logger.info("跳转到分享管理页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到分享管理页面数据处理开始"); String resultUrl = pageProvider.shareHandle(model); logger.info("跳转到分享管理页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到分享管理页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String home(Model model) { logger.info("跳转到主页面请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("跳转到主页面数据处理开始"); String resultUrl = pageProvider.homeHandle(model); logger.info("跳转到主页面数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("跳转到主页面调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public String index() { logger.info("首页跳转请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("首页跳转数据处理开始"); String resultUrl = pageProvider.indexHandle(); logger.info("首页跳转数据处理结束,resultUrl:{}", resultUrl); stopWatch.stop(); logger.info("首页跳转调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return resultUrl; }
public RestAPIResult<String> getPublicKey() throws Exception { logger.info("生成公钥请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("生成公钥数据处理开始"); RestAPIResult<String> result = edgeServiceProvider.getPublicKeyHandle(); logger.info("生成公钥数据处理结束,result:{}", result); stopWatch.stop(); logger.info("生成公钥调用时间,millies:{}", stopWatch.getTotalTimeMillis()); return result; }
public void download(String uid, String vids, HttpServletResponse res) throws IOException { logger.info("下载文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("下载文件数据处理开始,vids:{}", vids); downloadProvider.downloadHandle(uid, vids, res); logger.info("下载文件数据处理结束"); stopWatch.stop(); logger.info("下载文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void addShareDownload(@RequestParam("shareId") String shareId) { logger.info("增加分享下载量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("增加分享下载量数据处理开始,shareId:{}", shareId); shareProvider.addShareDownloadCountHandle(shareId); logger.info("增加分享下载量数据处理结束"); stopWatch.stop(); logger.info("增加分享下载量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void downloadShare(String lockPassword, String shareId, HttpServletResponse res) throws IOException { logger.info("下载分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("下载分享文件数据处理开始,shareId:{}", shareId); downloadProvider.downloadShareHandle(lockPassword, shareId, res); logger.info("下载分享文件数据处理结束"); stopWatch.stop(); logger.info("下载分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void addShareDownload(@RequestParam("shareId") String shareId) { logger.info("增加分享下载量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("增加分享下载量数据处理开始,shareId:{}", shareId); shareProvider.addShareDownloadCountHandle(shareId); logger.info("增加分享下载量数据处理结束"); stopWatch.stop(); logger.info("增加分享下载量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void download(String uid, String vids, HttpServletResponse res) throws IOException { logger.info("下载文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("下载文件数据处理开始,vids:{}", vids); downloadProvider.downloadHandle(uid, vids, res); logger.info("下载文件数据处理结束"); stopWatch.stop(); logger.info("下载文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void addShareView(@RequestBody AddShareViewCountRequest request) { logger.info("增加分享访问量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("增加分享访问量数据处理开始,request:{}", request); shareProvider.addShareViewCountHandle(request); logger.info("增加分享访问量数据处理结束"); stopWatch.stop(); logger.info("增加分享访问量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void downloadShare(String lockPassword, String shareId, HttpServletResponse res) throws IOException { logger.info("下载分享文件请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("下载分享文件数据处理开始,shareId:{}", shareId); downloadProvider.downloadShareHandle(lockPassword, shareId, res); logger.info("下载分享文件数据处理结束"); stopWatch.stop(); logger.info("下载分享文件调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public void addShareView(@RequestBody AddShareViewCountRequest request) { logger.info("增加分享访问量请求URL:{}", httpServletRequest.getRequestURL()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); logger.info("增加分享访问量数据处理开始,request:{}", request); shareProvider.addShareViewCountHandle(request); logger.info("增加分享访问量数据处理结束"); stopWatch.stop(); logger.info("增加分享访问量调用时间,millies:{}", stopWatch.getTotalTimeMillis()); }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("roles"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", claims); } if ("user".equals(roles)) { request.setAttribute("claims_user", claims); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("roles"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("roles"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("roles"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", claims); } if ("user".equals(roles)) { request.setAttribute("claims_user", claims); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", claims); } if ("user".equals(roles)) { request.setAttribute("claims_user", claims); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", token); } if ("user".equals(roles)) { request.setAttribute("claims_user", token); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { // 无论如何都放行,具体能不能操作还是在具体操作中去判断 // 拦截器只负责把请求头中包含token的令牌进行解析 String header = request.getHeader("Authorization"); if (!StringUtils.isEmpty(header)) { // 如果有包含Authorization的头信息,就对其进行解析 if (header.startsWith("Bearer ")) { // 得到token final String token = header.substring(7); // 对令牌进行验证 try { Claims claims = jwtUtil.parseJWT(token); String roles = (String) claims.get("role"); if ("admin".equals(roles)) { request.setAttribute("claims_admin", claims); } if ("user".equals(roles)) { request.setAttribute("claims_user", claims); } } catch (Exception e) { throw new RuntimeException("令牌有误!"); } } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { /*** * 拦截秒杀系统的个别请求,进行登陆检查 * 其他的放行 */ String uri = request.getRequestURI(); AntPathMatcher antPathMatcher = new AntPathMatcher(); boolean match = antPathMatcher.match("/seckill/kill", uri); if (match){ UserResponseVo userResponseVo = (UserResponseVo) request.getSession().getAttribute(AuthConstant.LOGIN_USER); if (userResponseVo != null){ //全系统共享 loginUser.set(userResponseVo); return true; }else { //没登陆,拦截,重定向到登录页面 request.getSession().setAttribute("msg","请先登录!"); response.sendRedirect("http://auth.tesco.com/login.html"); return false; } } return true; }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { /*** * 放行库存系统的个别请求 */ String uri = request.getRequestURI(); AntPathMatcher antPathMatcher = new AntPathMatcher(); boolean match = antPathMatcher.match("/order/orders/status/**", uri); //放行支付成功异步通知回调 boolean match1 = antPathMatcher.match("/payed/notify", uri); if (match || match1){ return true; } UserResponseVo userResponseVo = (UserResponseVo) request.getSession().getAttribute(AuthConstant.LOGIN_USER); if (userResponseVo != null){ //全系统共享 loginUser.set(userResponseVo); return true; }else { //没登陆,拦截,重定向到登录页面 request.getSession().setAttribute("msg","请先登录!"); response.sendRedirect("http://auth.tesco.com/login.html"); return false; } }
public void handleStockRelease(StockLockedTo stockLockedTo, Message message, Channel channel) throws IOException { System.out.println("收到解锁库存的消息"); try { wareSkuService.unLockStock(stockLockedTo); //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleCloseOrder(OrdersEntity ordersEntity, Channel channel, Message message) throws IOException { System.out.println("收到过期的订单信息,准备关闭订单"+ordersEntity.getOrderSn()); try { ordersService.closeOrder(ordersEntity); //TODO 手动调用支付宝收单(防止时延造成订单已解锁,支付仍在进行) //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleCloseOrderRelease(OrderTo orderTo, Message message, Channel channel) throws IOException { System.out.println("收到订单关闭的消息,准备解锁库存"); try { wareSkuService.unLockStock(orderTo); //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleCloseOrder(OrdersEntity ordersEntity, Channel channel, Message message) throws IOException { System.out.println("收到过期的订单信息,准备关闭订单"+ordersEntity.getOrderSn()); try { ordersService.closeOrder(ordersEntity); //TODO 手动调用支付宝收单(防止时延造成订单已解锁,支付仍在进行) //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleStockRelease(StockLockedTo stockLockedTo, Message message, Channel channel) throws IOException { System.out.println("收到解锁库存的消息"); try { wareSkuService.unLockStock(stockLockedTo); //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleCloseOrder(SeckillOrderTo seckillOrderTo, Channel channel, Message message) throws IOException { System.out.println("准备创建秒杀订单"+seckillOrderTo.getOrderSn()+"的详细信息"); try { ordersService.createSeckillOrder(seckillOrderTo); //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleCloseOrderRelease(OrderTo orderTo, Message message, Channel channel) throws IOException { System.out.println("收到订单关闭的消息,准备解锁库存"); try { wareSkuService.unLockStock(orderTo); //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public void handleCloseOrder(SeckillOrderTo seckillOrderTo, Channel channel, Message message) throws IOException { System.out.println("准备创建秒杀订单"+seckillOrderTo.getOrderSn()+"的详细信息"); try { ordersService.createSeckillOrder(seckillOrderTo); //执行成功,回复mq消息消费成功 channel.basicAck(message.getMessageProperties().getDeliveryTag(),false); }catch (Exception e){ System.out.println("错误:"+e.getMessage()); //只要出现异常,消息重新入队 channel.basicReject(message.getMessageProperties().getDeliveryTag(),true); } }
public OAuth2Authentication extractAuthentication(Map<String, ?> map) { Map<String, String> parameters = new HashMap<String, String>(); Set<String> scope = extractScope(map); Authentication user = userTokenConverter.extractAuthentication(map); String clientId = (String) map.get(CLIENT_ID); parameters.put(CLIENT_ID, clientId); if (includeGrantType && map.containsKey(GRANT_TYPE)) { parameters.put(GRANT_TYPE, (String) map.get(GRANT_TYPE)); } Set<String> resourceIds = new LinkedHashSet<String>(map.containsKey(AUD) ? getAudience(map) : Collections.<String>emptySet()); Collection<? extends GrantedAuthority> authorities = null; if (user == null && map.containsKey(AUTHORITIES)) { @SuppressWarnings("unchecked") String[] roles = ((Collection<String>) map.get(AUTHORITIES)).toArray(new String[0]); authorities = AuthorityUtils.createAuthorityList(roles); } // 增加对client Authorities支持 if (user != null && map.containsKey(CLIENT_AUTHORITIES)) { String[] clentRoles = ((Collection<String>) map.get(CLIENT_AUTHORITIES)).toArray(new String[0]); authorities = AuthorityUtils.createAuthorityList(clentRoles); // 增加额外属性 parameters.put("mobile", (String) map.get("mobile")); parameters.put("tenant_id", (String) map.get("tenant_id")); parameters.put("department_id", (String) map.get("department_id")); parameters.put("user_authorities", JSON.toJSONString(map.get("user_authorities"))); parameters.put("payload", JSON.toJSONString(map.get("payload"))); // 结束增加额外属性 } // 结束增加对client Authorities支持 OAuth2Request request = new OAuth2Request(parameters, clientId, authorities, true, scope, resourceIds, null, null, null); return new OAuth2Authentication(request, user); }
public OAuth2Authentication extractAuthentication(Map<String, ?> map) { Map<String, String> parameters = new HashMap<String, String>(); Set<String> scope = extractScope(map); Authentication user = userTokenConverter.extractAuthentication(map); String clientId = (String) map.get(CLIENT_ID); parameters.put(CLIENT_ID, clientId); if (includeGrantType && map.containsKey(GRANT_TYPE)) { parameters.put(GRANT_TYPE, (String) map.get(GRANT_TYPE)); } Set<String> resourceIds = new LinkedHashSet<String>(map.containsKey(AUD) ? getAudience(map) : Collections.<String>emptySet()); Collection<? extends GrantedAuthority> authorities = null; if (user == null && map.containsKey(AUTHORITIES)) { @SuppressWarnings("unchecked") String[] roles = ((Collection<String>) map.get(AUTHORITIES)).toArray(new String[0]); authorities = AuthorityUtils.createAuthorityList(roles); } ///增加对client Authorities支持 if (user != null && map.containsKey(CLIENT_AUTHORITIES)) { String[] clentRoles = ((Collection<String>) map.get(CLIENT_AUTHORITIES)).toArray(new String[0]); authorities = AuthorityUtils.createAuthorityList(clentRoles); ///增加额外属性 parameters.put("mobile", (String) map.get("mobile")); parameters.put("tenant_id", (String) map.get("tenant_id")); parameters.put("department_id", (String) map.get("department_id")); parameters.put("user_authorities", JSON.toJSONString(map.get("user_authorities"))); parameters.put("payload", JSON.toJSONString(map.get("payload"))); ///结束增加额外属性 } ///结束增加对client Authorities支持 OAuth2Request request = new OAuth2Request(parameters, clientId, authorities, true, scope, resourceIds, null, null, null); return new OAuth2Authentication(request, user); }
public Map<String, ?> convertAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication) { Map<String, Object> response = new HashMap<String, Object>(); OAuth2Request clientToken = authentication.getOAuth2Request(); if (!authentication.isClientOnly()) { response.putAll(userTokenConverter.convertUserAuthentication(authentication.getUserAuthentication())); ///增加对client Authorities支持 if (authentication.getOAuth2Request().getAuthorities() != null && !authentication.getOAuth2Request().getAuthorities().isEmpty()) { response.put(CLIENT_AUTHORITIES, AuthorityUtils.authorityListToSet(authentication.getOAuth2Request().getAuthorities())); } ///结束增加对client Authorities支持 } else { if (clientToken.getAuthorities() != null && !clientToken.getAuthorities().isEmpty()) { response.put(UserAuthenticationConverter.AUTHORITIES, AuthorityUtils.authorityListToSet(clientToken.getAuthorities())); } } if (token.getScope() != null) { response.put(SCOPE, token.getScope()); } if (token.getAdditionalInformation().containsKey(JTI)) { response.put(JTI, token.getAdditionalInformation().get(JTI)); } if (token.getExpiration() != null) { response.put(EXP, token.getExpiration().getTime() / 1000); } if (includeGrantType && authentication.getOAuth2Request().getGrantType() != null) { response.put(GRANT_TYPE, authentication.getOAuth2Request().getGrantType()); } response.putAll(token.getAdditionalInformation()); response.put(CLIENT_ID, clientToken.getClientId()); if (clientToken.getResourceIds() != null && !clientToken.getResourceIds().isEmpty()) { response.put(AUD, clientToken.getResourceIds()); } return response; }
public Map<String, ?> convertAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication) { Map<String, Object> response = new HashMap<String, Object>(); OAuth2Request clientToken = authentication.getOAuth2Request(); if (!authentication.isClientOnly()) { response.putAll(userTokenConverter.convertUserAuthentication(authentication.getUserAuthentication())); ///增加对client Authorities支持 if (authentication.getOAuth2Request().getAuthorities() != null && !authentication.getOAuth2Request().getAuthorities().isEmpty()) { response.put(CLIENT_AUTHORITIES, AuthorityUtils.authorityListToSet(authentication.getOAuth2Request().getAuthorities())); } ///结束增加对client Authorities支持 } else { if (clientToken.getAuthorities() != null && !clientToken.getAuthorities().isEmpty()) { response.put(UserAuthenticationConverter.AUTHORITIES, AuthorityUtils.authorityListToSet(clientToken.getAuthorities())); } } if (token.getScope() != null) { response.put(SCOPE, token.getScope()); } if (token.getAdditionalInformation().containsKey(JTI)) { response.put(JTI, token.getAdditionalInformation().get(JTI)); } if (token.getExpiration() != null) { response.put(EXP, token.getExpiration().getTime() / 1000); } if (includeGrantType && authentication.getOAuth2Request().getGrantType() != null) { response.put(GRANT_TYPE, authentication.getOAuth2Request().getGrantType()); } response.putAll(token.getAdditionalInformation()); response.put(CLIENT_ID, clientToken.getClientId()); if (clientToken.getResourceIds() != null && !clientToken.getResourceIds().isEmpty()) { response.put(AUD, clientToken.getResourceIds()); } return response; }
public OAuth2AccessToken extractAccessToken(String value, Map<String, ?> map) { DefaultOAuth2AccessToken token = new DefaultOAuth2AccessToken(value); Map<String, Object> info = new HashMap<String, Object>(map); info.remove(EXP); info.remove(AUD); info.remove(CLIENT_ID); info.remove(SCOPE); if (map.containsKey(EXP)) { token.setExpiration(new Date((Long) map.get(EXP) * 1000L)); } if (map.containsKey(JTI)) { info.put(JTI, map.get(JTI)); } token.setScope(extractScope(map)); token.setAdditionalInformation(info); return token; }
public OAuth2AccessToken extractAccessToken(String value, Map<String, ?> map) { DefaultOAuth2AccessToken token = new DefaultOAuth2AccessToken(value); Map<String, Object> info = new HashMap<String, Object>(map); info.remove(EXP); info.remove(AUD); info.remove(CLIENT_ID); info.remove(SCOPE); if (map.containsKey(EXP)) { token.setExpiration(new Date((Long) map.get(EXP) * 1000L)); } if (map.containsKey(JTI)) { info.put(JTI, map.get(JTI)); } token.setScope(extractScope(map)); token.setAdditionalInformation(info); return token; }
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) { String jsonToken = httpServletRequest.getParameter("jsonToken"); if (StringUtils.isNotBlank(jsonToken)) { LoginUser loginUser = JSON.parseObject(EncryptUtil.decodeUTF8StringBase64(jsonToken), new TypeReference<LoginUser>() { }); httpServletRequest.setAttribute("jsonToken", loginUser); } return true; }
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) { String jsonToken = httpServletRequest.getParameter("jsonToken"); if (StringUtils.isNotBlank(jsonToken)) { LoginUser loginUser = JSON.parseObject(EncryptUtil.decodeUTF8StringBase64(jsonToken), new TypeReference<LoginUser>() { }); httpServletRequest.setAttribute("jsonToken", loginUser); } return true; }
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) { String jsonToken = httpServletRequest.getParameter("jsonToken"); if (StringUtils.isNotBlank(jsonToken)) { LoginUser loginUser = JSON.parseObject(EncryptUtil.decodeUTF8StringBase64(jsonToken), new TypeReference<LoginUser>() { }); httpServletRequest.setAttribute("jsonToken", loginUser); } return true; }
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) { String jsonToken = httpServletRequest.getParameter("jsonToken"); if (StringUtils.isNotBlank(jsonToken)) { LoginUser loginUser = JSON.parseObject(EncryptUtil.decodeUTF8StringBase64(jsonToken), new TypeReference<LoginUser>() { }); httpServletRequest.setAttribute("jsonToken", loginUser); } return true; }
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) { String jsonToken = httpServletRequest.getParameter("jsonToken"); if (StringUtils.isNotBlank(jsonToken)) { LoginUser loginUser = JSON.parseObject(EncryptUtil.decodeUTF8StringBase64(jsonToken), new TypeReference<LoginUser>() { }); httpServletRequest.setAttribute("jsonToken", loginUser); } return true; }
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) { String jsonToken = httpServletRequest.getParameter("jsonToken"); if (StringUtils.isNotBlank(jsonToken)) { LoginUser loginUser = JSON.parseObject(EncryptUtil.decodeUTF8StringBase64(jsonToken), new TypeReference<LoginUser>() { }); httpServletRequest.setAttribute("jsonToken", loginUser); } return true; }
public void onMessage(final Message message) { // 使用线程池多线程处理 threadPoolTaskExecutor.execute(new Runnable() { @Override public void run() { if (message instanceof TextMessage) { TextMessage textMessage = (TextMessage) message; try { LOGGER.info("消费:{}", textMessage.getText()); } catch (Exception e) { e.printStackTrace(); } } } }); }
public void onMessage(final Message message) { // 使用线程池多线程处理 threadPoolTaskExecutor.execute(new Runnable() { @Override public void run() { if (message instanceof TextMessage) { TextMessage textMessage = (TextMessage) message; try { LOGGER.info("消费消息:{}", textMessage.getText()); } catch (Exception e){ e.printStackTrace(); } } } }); }
public void onMessage(final Message message) { // 使用线程池多线程处理 threadPoolTaskExecutor.execute(new Runnable() { @Override public void run() { TextMessage textMessage = (TextMessage) message; try { String text = textMessage.getText(); LOGGER.info("消费:{}", text); } catch (Exception e) { e.printStackTrace(); } } }); }
public void onMessage(final Message message) { // 使用线程池多线程处理 threadPoolTaskExecutor.execute(new Runnable() { @Override public void run() { if (message instanceof TextMessage) { TextMessage textMessage = (TextMessage) message; try { LOGGER.info("消费:{}", textMessage.getText()); } catch (Exception e) { e.printStackTrace(); } } } }); }
public void onMessage(final Message message) { // 使用线程池多线程处理 threadPoolTaskExecutor.execute(new Runnable() { @Override public void run() { TextMessage textMessage = (TextMessage) message; try { String text = textMessage.getText(); LOGGER.info("消费:{}", text); } catch (Exception e) { e.printStackTrace(); } } }); }
public void onMessage(final Message message) { // 使用线程池多线程处理 threadPoolTaskExecutor.execute(new Runnable() { @Override public void run() { if (message instanceof TextMessage) { TextMessage textMessage = (TextMessage) message; try { LOGGER.info("消费:{}", textMessage.getText()); } catch (Exception e) { e.printStackTrace(); } } } }); }
public QueryMemberResponse queryMemberById(QueryMemberRequest request) { QueryMemberResponse queryMemberResponse=new QueryMemberResponse(); try{ request.requestCheck(); Member member=memberMapper.selectByPrimaryKey(request.getUserId()); if(member==null){ queryMemberResponse.setCode(SysRetCodeConstants.DATA_NOT_EXIST.getCode()); queryMemberResponse.setMsg(SysRetCodeConstants.DATA_NOT_EXIST.getMessage()); } queryMemberResponse=memberConverter.member2Res(member); queryMemberResponse.setCode(SysRetCodeConstants.SUCCESS.getCode()); queryMemberResponse.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("MemberServiceImpl.queryMemberById Occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(queryMemberResponse,e); } return queryMemberResponse; }
public OrderDetailResponse orderDetail(OrderDetailRequest request) { OrderDetailResponse response=new OrderDetailResponse(); try{ request.requestCheck(); Order order=orderMapper.selectByPrimaryKey(request.getOrderId()); // OrderItemExample example=new OrderItemExample(); // OrderItemExample.Criteria criteria=example.createCriteria(); // criteria.andOrderIdEqualTo(order.getOrderId()); // List<OrderItem> list=orderItemMapper.selectByExample(example); List<OrderItem> list = orderItemMapper.queryByOrderId(order.getOrderId()); OrderShipping orderShipping=orderShippingMapper.selectByPrimaryKey(order.getOrderId()); response=orderConverter.order2res(order); response.setOrderItemDto(orderConverter.item2dto(list)); response.setOrderShippingDto(orderConverter.shipping2dto(orderShipping)); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); return response; }catch (Exception e){ log.error("OrderQueryServiceImpl.orderDetail occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressDetailResponse addressDetail(AddressDetailRequest request) { AddressDetailResponse response=new AddressDetailResponse(); try{ request.requestCheck(); Address address=addressMapper.selectByPrimaryKey(request.getAddressId()); response.setAddressDto(converter.address2List(address)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressDetail occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public OrderDetailResponse orderDetail(OrderDetailRequest request) { OrderDetailResponse response=new OrderDetailResponse(); try{ request.requestCheck(); Order order=orderMapper.selectByPrimaryKey(request.getOrderId()); // OrderItemExample example=new OrderItemExample(); // OrderItemExample.Criteria criteria=example.createCriteria(); // criteria.andOrderIdEqualTo(order.getOrderId()); // List<OrderItem> list=orderItemMapper.selectByExample(example); List<OrderItem> list = orderItemMapper.queryByOrderId(order.getOrderId()); OrderShipping orderShipping=orderShippingMapper.selectByPrimaryKey(order.getOrderId()); response=orderConverter.order2res(order); response.setOrderItemDto(orderConverter.item2dto(list)); response.setOrderShippingDto(orderConverter.shipping2dto(orderShipping)); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); return response; }catch (Exception e){ log.error("OrderQueryServiceImpl.orderDetail occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public QueryMemberResponse queryMemberById(QueryMemberRequest request) { QueryMemberResponse queryMemberResponse=new QueryMemberResponse(); try{ request.requestCheck(); Member member=memberMapper.selectByPrimaryKey(request.getUserId()); if(member==null){ queryMemberResponse.setCode(SysRetCodeConstants.DATA_NOT_EXIST.getCode()); queryMemberResponse.setMsg(SysRetCodeConstants.DATA_NOT_EXIST.getMessage()); } queryMemberResponse=memberConverter.member2Res(member); queryMemberResponse.setCode(SysRetCodeConstants.SUCCESS.getCode()); queryMemberResponse.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("MemberServiceImpl.queryMemberById Occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(queryMemberResponse,e); } return queryMemberResponse; }
public OrderItemResponse orderItem(OrderItemRequest request) { OrderItemResponse response = new OrderItemResponse(); try { request.requestCheck(); OrderItem orderItem = orderItemMapper.selectByPrimaryKey(request.getOrderItemId()); response = orderConverter.item2res(orderItem); Order order = orderMapper.selectByPrimaryKey(orderItem.getOrderId()); response.setOrderDto(orderConverter.order2dto(order)); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); } catch (Exception e){ log.error("OrderQueryServiceImpl.orderItem occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressListResponse addressList(AddressListRequest request) { //TODO 地址信息要做缓存处理 AddressListResponse response=new AddressListResponse(); try{ request.requestCheck(); Example example=new Example(Address.class); example.createCriteria().andEqualTo("userId",request.getUserId()); List<Address> addresses=addressMapper.selectByExample(example); response.setAddressDtos(converter.address2List(addresses)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressList occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public OrderItemResponse orderItem(OrderItemRequest request) { OrderItemResponse response = new OrderItemResponse(); try { request.requestCheck(); OrderItem orderItem = orderItemMapper.selectByPrimaryKey(request.getOrderItemId()); response = orderConverter.item2res(orderItem); Order order = orderMapper.selectByPrimaryKey(orderItem.getOrderId()); response.setOrderDto(orderConverter.order2dto(order)); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); } catch (Exception e){ log.error("OrderQueryServiceImpl.orderItem occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressDetailResponse addressDetail(AddressDetailRequest request) { AddressDetailResponse response=new AddressDetailResponse(); try{ request.requestCheck(); Address address=addressMapper.selectByPrimaryKey(request.getAddressId()); response.setAddressDto(converter.address2List(address)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressDetail occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public OrderItemResponse orderItem(OrderItemRequest request) { OrderItemResponse response = new OrderItemResponse(); try { request.requestCheck(); OrderItem orderItem = orderItemMapper.selectByPrimaryKey(request.getOrderItemId()); response = orderConverter.item2res(orderItem); Order order = orderMapper.selectByPrimaryKey(orderItem.getOrderId()); response.setOrderDto(orderConverter.order2dto(order)); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); } catch (Exception e){ log.error("OrderQueryServiceImpl.orderItem occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressDetailResponse addressDetail(AddressDetailRequest request) { AddressDetailResponse response=new AddressDetailResponse(); try{ request.requestCheck(); Address address=addressMapper.selectByPrimaryKey(request.getAddressId()); response.setAddressDto(converter.address2List(address)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressDetail occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public DeleteOrderResponse deleteOrder(DeleteOrderRequest request) { DeleteOrderResponse response = new DeleteOrderResponse(); try { request.requestCheck(); deleteOrderWithTransaction(request); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); } catch (Exception e) { log.error("OrderCoreServiceImpl.deleteOrder Occur Exception :" + e); ExceptionProcessorUtils.wrapperHandlerException(response, e); } return response; }
public AddressDetailResponse addressDetail(AddressDetailRequest request) { AddressDetailResponse response=new AddressDetailResponse(); try{ request.requestCheck(); Address address=addressMapper.selectByPrimaryKey(request.getAddressId()); response.setAddressDto(converter.address2List(address)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressDetail occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public OrderCountResponse orderCount(OrderCountRequest request) { OrderCountResponse response=new OrderCountResponse(); try { Long count = orderMapper.countAll(); response.setCount(count.intValue()); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); }catch (Exception e){ log.error("OrderQueryServiceImpl.orderCount occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressDetailResponse addressDetail(AddressDetailRequest request) { AddressDetailResponse response=new AddressDetailResponse(); try{ request.requestCheck(); Address address=addressMapper.selectByPrimaryKey(request.getAddressId()); response.setAddressDto(converter.address2List(address)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressDetail occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public DeleteCartItemResponse deleteCartItem(DeleteCartItemRequest request) { DeleteCartItemResponse response=new DeleteCartItemResponse(); try{ RMap rMap=redissonClient.getMap(generatorCartItemKey(request.getUserId())); rMap.remove(request.getItemId()); response.setCode(ShoppingRetCode.SUCCESS.getCode()); response.setMsg(ShoppingRetCode.SUCCESS.getMessage()); }catch (Exception e){ log.error("CartServiceImpl.deleteCartItem Occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressListResponse addressList(AddressListRequest request) { //TODO 地址信息要做缓存处理 AddressListResponse response=new AddressListResponse(); try{ request.requestCheck(); Example example=new Example(Address.class); example.createCriteria().andEqualTo("userId",request.getUserId()); List<Address> addresses=addressMapper.selectByExample(example); response.setAddressDtos(converter.address2List(addresses)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressList occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public NavListResponse queryNavList() { NavListResponse response=new NavListResponse(); try { Example exampleContent = new Example(PanelContent.class); exampleContent.setOrderByClause("sort_order"); Example.Criteria criteriaContent = exampleContent.createCriteria(); criteriaContent.andEqualTo("panelId", GlobalConstants.HEADER_PANEL_ID); List<PanelContent> pannelContents = panelContentMapper.selectByExample(exampleContent); //添加缓存操作 TODO response.setPannelContentDtos(contentConverter.panelContents2Dto(pannelContents)); response.setCode(ShoppingRetCode.SUCCESS.getCode()); response.setMsg(ShoppingRetCode.SUCCESS.getMessage()); }catch (Exception e){ log.error("ContentServiceImpl.queryNavList Occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public AddressListResponse addressList(AddressListRequest request) { //TODO 地址信息要做缓存处理 AddressListResponse response=new AddressListResponse(); try{ request.requestCheck(); Example example=new Example(Address.class); example.createCriteria().andEqualTo("userId",request.getUserId()); List<Address> addresses=addressMapper.selectByExample(example); response.setAddressDtos(converter.address2List(addresses)); response.setCode(SysRetCodeConstants.SUCCESS.getCode()); response.setMsg(SysRetCodeConstants.SUCCESS.getMessage()); }catch (Exception e){ log.error("AddressServiceImpl.addressList occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public DeleteOrderResponse deleteOrder(DeleteOrderRequest request) { DeleteOrderResponse response = new DeleteOrderResponse(); try { request.requestCheck(); deleteOrderWithTransaction(request); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); } catch (Exception e) { log.error("OrderCoreServiceImpl.deleteOrder Occur Exception :" + e); ExceptionProcessorUtils.wrapperHandlerException(response, e); } return response; }
public DeleteCartItemResponse deleteCartItem(DeleteCartItemRequest request) { DeleteCartItemResponse response=new DeleteCartItemResponse(); try{ RMap rMap=redissonClient.getMap(generatorCartItemKey(request.getUserId())); rMap.remove(request.getItemId()); response.setCode(ShoppingRetCode.SUCCESS.getCode()); response.setMsg(ShoppingRetCode.SUCCESS.getMessage()); }catch (Exception e){ log.error("CartServiceImpl.deleteCartItem Occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public DeleteOrderResponse deleteOrder(DeleteOrderRequest request) { DeleteOrderResponse response = new DeleteOrderResponse(); try { request.requestCheck(); deleteOrderWithTransaction(request); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); } catch (Exception e) { log.error("OrderCoreServiceImpl.deleteOrder Occur Exception :" + e); ExceptionProcessorUtils.wrapperHandlerException(response, e); } return response; }
public DeleteCartItemResponse deleteCartItem(DeleteCartItemRequest request) { DeleteCartItemResponse response=new DeleteCartItemResponse(); try{ RMap rMap=redissonClient.getMap(generatorCartItemKey(request.getUserId())); rMap.remove(request.getItemId()); response.setCode(ShoppingRetCode.SUCCESS.getCode()); response.setMsg(ShoppingRetCode.SUCCESS.getMessage()); }catch (Exception e){ log.error("CartServiceImpl.deleteCartItem Occur Exception :"+e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public OrderCountResponse orderCount(OrderCountRequest request) { OrderCountResponse response=new OrderCountResponse(); try { Long count = orderMapper.countAll(); response.setCount(count.intValue()); response.setCode(OrderRetCode.SUCCESS.getCode()); response.setMsg(OrderRetCode.SUCCESS.getMessage()); }catch (Exception e){ log.error("OrderQueryServiceImpl.orderCount occur Exception :" +e); ExceptionProcessorUtils.wrapperHandlerException(response,e); } return response; }
public ServerResponseEntity<Void> addAccount(@Valid @RequestBody ChangeAccountDTO changeAccountDTO) { ShopUserVO shopUserVO = shopUserService.getByUserId(changeAccountDTO.getUserId()); if (shopUserVO == null) { return ServerResponseEntity.showFailMsg("无法获取账户信息"); } if (Objects.equals(shopUserVO.getHasAccount(), 1)) { return ServerResponseEntity.showFailMsg("已有账号,无需重复添加"); } if (!Objects.equals(shopUserVO.getShopId(), AuthUserContext.get().getTenantId())) { return ServerResponseEntity.fail(ResponseEnum.UNAUTHORIZED); } return shopUserAccountService.save(changeAccountDTO); }
public ServerResponseEntity<Void> addAccount(@Valid @RequestBody ChangeAccountDTO changeAccountDTO) { SysUserVO sysUserVO = SysUserService.getByUserId(changeAccountDTO.getUserId()); if (sysUserVO == null) { return ServerResponseEntity.showFailMsg("无法获取账户信息"); } if (Objects.equals(sysUserVO.getHasAccount(), 1)) { return ServerResponseEntity.showFailMsg("已有账号,无需重复添加"); } return SysUserAccountService.save(changeAccountDTO); }
public Object validateToken(ProceedingJoinPoint joinPoint) throws Throwable { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()) .getRequest(); try { JSONObject jsonObject = tokenService.getTokenData((String) request.getHeader("tokenid")); loginInfoHelperBean.setProperty(jsonObject.getString("userId")); } catch (ExpiredJwtException e) { log.error("Token expired"); ResponseBean response = new ResponseBean(false, "Token expired.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (IllegalArgumentException e) { log.error("Token required"); ResponseBean response = new ResponseBean(false, "Token required.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (Exception e) { log.error("Invalid Token"); ResponseBean response = new ResponseBean(false, "Invalid Token.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } return joinPoint.proceed(); }
public Object validateToken(ProceedingJoinPoint joinPoint) throws Throwable { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()) .getRequest(); try { JSONObject jsonObject = tokenService.getTokenData((String) request.getHeader("tokenid")); loginInfoHelperBean.setProperty(jsonObject.getString("userId")); } catch (ExpiredJwtException e) { log.error("Token expired"); ResponseBean response = new ResponseBean(false, "Token expired.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (IllegalArgumentException e) { log.error("Token required"); ResponseBean response = new ResponseBean(false, "Token required.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (Exception e) { log.error("Invalid Token"); ResponseBean response = new ResponseBean(false, "Invalid Token.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } return joinPoint.proceed(); }
protected final HttpHeaders createHeaders(HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); headers.setContentType(MediaType.APPLICATION_JSON); Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); headers.add(key, value); } return headers; }
protected final HttpHeaders createHeaders(HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); headers.setContentType(MediaType.APPLICATION_JSON); Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); headers.add(key, value); } return headers; }
protected final HttpHeaders createHeaders(HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); headers.setContentType(MediaType.APPLICATION_JSON); Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); headers.add(key, value); } return headers; }
protected final HttpHeaders createHeaders(HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); headers.setContentType(MediaType.APPLICATION_JSON); Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); headers.add(key, value); } return headers; }
protected final HttpHeaders createHeaders(HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); headers.setContentType(MediaType.APPLICATION_JSON); Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); headers.add(key, value); } return headers; }
protected final HttpHeaders createHeaders(HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); headers.setContentType(MediaType.APPLICATION_JSON); Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = request.getHeader(key); headers.add(key, value); } return headers; }
public Object validateToken(ProceedingJoinPoint joinPoint) throws Throwable { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()) .getRequest(); try { JSONObject jsonObject = tokenService.getTokenData((String) request.getHeader("tokenid")); loginInfoHelperBean.setProperty(jsonObject.getString("userId")); } catch (ExpiredJwtException e) { log.error("Token expired"); ResponseBean response = new ResponseBean(false, "Token expired.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (IllegalArgumentException e) { log.error("Token required"); ResponseBean response = new ResponseBean(false, "Token required.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (Exception e) { log.error("Invalid Token"); ResponseBean response = new ResponseBean(false, "Invalid Token.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } return joinPoint.proceed(); }
public Object validateToken(ProceedingJoinPoint joinPoint) throws Throwable { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()) .getRequest(); try { JSONObject jsonObject = tokenService.getTokenData((String) request.getHeader("tokenid")); loginInfoHelperBean.setProperty(jsonObject.getString("userId")); } catch (ExpiredJwtException e) { log.debug("Token expired"); ResponseBean response = new ResponseBean(false, "Token expired.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (IllegalArgumentException e) { log.error("Token required"); ResponseBean response = new ResponseBean(false, "Token required.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (Exception e) { log.error("Invalid Token"); ResponseBean response = new ResponseBean(false, "Invalid Token.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } return joinPoint.proceed(); }
public Object validateToken(ProceedingJoinPoint joinPoint) throws Throwable { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()) .getRequest(); try { JSONObject jsonObject = tokenService.getTokenData((String) request.getHeader("tokenid")); loginInfoHelperBean.setProperty(jsonObject.getString("userId")); } catch (ExpiredJwtException e) { log.debug("Token expired"); ResponseBean response = new ResponseBean(false, "Token expired.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (IllegalArgumentException e) { log.error("Token required"); ResponseBean response = new ResponseBean(false, "Token required.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (Exception e) { log.error("Invalid Token"); ResponseBean response = new ResponseBean(false, "Invalid Token.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } return joinPoint.proceed(); }
public Object validateToken(ProceedingJoinPoint joinPoint) throws Throwable { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()) .getRequest(); try { JSONObject jsonObject = tokenService.getTokenData((String) request.getHeader("tokenid")); loginInfoHelperBean.setProperty(jsonObject.getString("userId")); } catch (ExpiredJwtException e) { log.error("Token expired"); ResponseBean response = new ResponseBean(false, "Token expired.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (IllegalArgumentException e) { log.error("Token required"); ResponseBean response = new ResponseBean(false, "Token required.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } catch (Exception e) { log.error("Invalid Token"); ResponseBean response = new ResponseBean(false, "Invalid Token.", "failure", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.UNAUTHORIZED); } return joinPoint.proceed(); }
public @ResponseBody ResponseEntity<ResponseBean> createUser(@RequestBody UserDTO userDTO) { try { userWriteService.createUser(userDTO); ResponseBean responseBean = new ResponseBean(true, "User saved successfully.", "success", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); LOGGER.error("User creation failed:" + e.getMessage()); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (BussinessException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); LOGGER.error("User creation failed:" + e.getMessage()); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> addPaymentDetails(@RequestBody PaymentDTO paymentDTO) { try { orderWriteService.addPaymentDetails(paymentDTO); ResponseBean responseBean = new ResponseBean(true, "Payment done successfully.", "success", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (BussinessException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (Exception e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> createUser(@RequestBody UserDTO userDTO) { try { userWriteService.createUser(userDTO); ResponseBean responseBean = new ResponseBean(true, "User saved successfully.", "success", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); LOGGER.error("User creation failed:" + e.getMessage()); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (BussinessException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); LOGGER.error("User creation failed:" + e.getMessage()); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> addShippingAddress(@RequestBody ShippingAddressDTO addressDTO) { try { orderWriteService.addShippingAddressDetails(addressDTO); ResponseBean responseBean = new ResponseBean(true, "Shipping address added successfully.", "success", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (BussinessException e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } catch (Exception e) { ResponseBean responseBean = new ResponseBean(false, e.getMessage(), "failure", null); return new ResponseEntity<ResponseBean>(responseBean, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> placeOrder(@RequestBody CartDTO cart) { try { cart.setCartId(loginInfoHelperBean.getUserId()); cart.setCustomerId(loginInfoHelperBean.getUserId()); shoppingCartService.placeOrder(cart); ResponseBean response = new ResponseBean(true, "order placed.", "success", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (IllegalArgumentCustomException e) { ResponseBean response = new ResponseBean(false, "order placed failed", "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> save(@RequestBody Product product) { try { productService.save(product); ResponseBean response = new ResponseBean(true, "Data retrieved successfully", "success", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean response = new ResponseBean(false, e.getMessage(), "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> removeItem(@RequestBody CartDTO cart) { try { cart.setCartId(loginInfoHelperBean.getUserId()); cart.setCustomerId(loginInfoHelperBean.getUserId()); shoppingCartService.removeItem(cart); ResponseBean response = new ResponseBean(true, "Item removed.", "success", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (IllegalArgumentCustomException e) { ResponseBean response = new ResponseBean(false, "Item removed failed", "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> save(@RequestBody Product product) { try { productService.save(product); ResponseBean response = new ResponseBean(true, "Data retrieved successfully", "success", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean response = new ResponseBean(false, e.getMessage(), "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> findAll() { try { ResponseBean response = new ResponseBean(true, "Data retrieved successfully", "success", orderReadService.findAll(infoHelperBean.getUserId())); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean response = new ResponseBean(false, e.getMessage(), "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> findAll() { try { ResponseBean response = new ResponseBean(true, "Data retrieved successfully", "success", productService.getProducts()); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean response = new ResponseBean(false, e.getMessage(), "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> getOrderDetails() { try { ResponseBean response = new ResponseBean(true, "Data retrieved successfully", "success", orderReadService.getOrderDetails(infoHelperBean.getUserId())); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean response = new ResponseBean(false, e.getMessage(), "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public @ResponseBody ResponseEntity<ResponseBean> findAll() { try { ResponseBean response = new ResponseBean(true, "Data retrieved successfully", "success", productService.getProducts()); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } catch (RepositoryException e) { ResponseBean response = new ResponseBean(false, e.getMessage(), "failed", null); return new ResponseEntity<ResponseBean>(response, HttpStatus.OK); } }
public UmsMember getCurrentMember() { String userStr = request.getHeader(AuthConstant.USER_TOKEN_HEADER); if(StrUtil.isEmpty(userStr)){ Asserts.fail(ResultCode.UNAUTHORIZED); } UserDto userDto = JSONUtil.toBean(userStr, UserDto.class); UmsMember member = memberCacheService.getMember(userDto.getId()); if(member!=null){ return member; }else{ member = getById(userDto.getId()); memberCacheService.setMember(member); return member; } }
public UmsAdmin getCurrentAdmin() { String userStr = request.getHeader(AuthConstant.USER_TOKEN_HEADER); if(StrUtil.isEmpty(userStr)){ Asserts.fail(ResultCode.UNAUTHORIZED); } UserDto userDto = JSONUtil.toBean(userStr, UserDto.class); UmsAdmin admin = adminCacheService.getAdmin(userDto.getId()); if(admin!=null){ return admin; }else{ admin = adminMapper.selectByPrimaryKey(userDto.getId()); adminCacheService.setAdmin(admin); return admin; } }
private void insertRelationList(Long productCategoryId, List<Long> productAttributeIdList) { List<PmsProductCategoryAttributeRelation> relationList = new ArrayList<>(); for (Long productAttrId : productAttributeIdList) { PmsProductCategoryAttributeRelation relation = new PmsProductCategoryAttributeRelation(); relation.setProductAttributeId(productAttrId); relation.setProductCategoryId(productCategoryId); relationList.add(relation); } productCategoryAttributeRelationDao.insertList(relationList); }
public void delete(List<Long> ids) { if (!CollectionUtils.isEmpty(ids)) { List<EsProduct> esProductList = new ArrayList<>(); for (Long id : ids) { EsProduct esProduct = new EsProduct(); esProduct.setId(id); esProductList.add(esProduct); } productRepository.deleteAll(esProductList); } }
public int delete(List<String> ids) { List<MemberReadHistory> deleteList = new ArrayList<>(); for(String id:ids){ MemberReadHistory memberReadHistory = new MemberReadHistory(); memberReadHistory.setId(id); deleteList.add(memberReadHistory); } memberReadHistoryRepository.deleteAll(deleteList); return ids.size(); }
private void insertRelationList(Long productCategoryId, List<Long> productAttributeIdList) { List<PmsProductCategoryAttributeRelation> relationList = new ArrayList<>(); for (Long productAttrId : productAttributeIdList) { PmsProductCategoryAttributeRelation relation = new PmsProductCategoryAttributeRelation(); relation.setProductAttributeId(productAttrId); relation.setProductCategoryId(productCategoryId); relationList.add(relation); } productCategoryAttributeRelationDao.insertList(relationList); }
public int delete(List<String> ids) { List<MemberReadHistory> deleteList = new ArrayList<>(); for(String id:ids){ MemberReadHistory memberReadHistory = new MemberReadHistory(); memberReadHistory.setId(id); deleteList.add(memberReadHistory); } memberReadHistoryRepository.deleteAll(deleteList); return ids.size(); }
public void delete(List<Long> ids) { if (!CollectionUtils.isEmpty(ids)) { List<EsProduct> esProductList = new ArrayList<>(); for (Long id : ids) { EsProduct esProduct = new EsProduct(); esProduct.setId(id); esProductList.add(esProduct); } productRepository.deleteAll(esProductList); } }
private Specification<User> createSpecification(Map searchMap) { return new Specification<User>() { @Override public Predicate toPredicate(Root<User> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 手机号码 if (searchMap.get("mobile") != null && !"".equals(searchMap.get("mobile"))) { predicateList.add(cb.like(root.get("mobile").as(String.class), "%" + (String) searchMap.get("mobile") + "%")); } // 密码 if (searchMap.get("password") != null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%" + (String) searchMap.get("password") + "%")); } // 昵称 if (searchMap.get("nickname") != null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%" + (String) searchMap.get("nickname") + "%")); } // 性别 if (searchMap.get("sex") != null && !"".equals(searchMap.get("sex"))) { predicateList.add(cb.like(root.get("sex").as(String.class), "%" + (String) searchMap.get("sex") + "%")); } // 头像 if (searchMap.get("avatar") != null && !"".equals(searchMap.get("avatar"))) { predicateList.add(cb.like(root.get("avatar").as(String.class), "%" + (String) searchMap.get("avatar") + "%")); } // E-Mail if (searchMap.get("email") != null && !"".equals(searchMap.get("email"))) { predicateList.add(cb.like(root.get("email").as(String.class), "%" + (String) searchMap.get("email") + "%")); } // 兴趣 if (searchMap.get("interest") != null && !"".equals(searchMap.get("interest"))) { predicateList.add(cb.like(root.get("interest").as(String.class), "%" + (String) searchMap.get("interest") + "%")); } // 个性 if (searchMap.get("personality") != null && !"".equals(searchMap.get("personality"))) { predicateList.add(cb.like(root.get("personality").as(String.class), "%" + (String) searchMap.get("personality") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Enterprise> createSpecification(Map searchMap) { return new Specification<Enterprise>() { @Override public Predicate toPredicate(Root<Enterprise> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 企业名称 if (searchMap.get("name") != null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%" + (String) searchMap.get("name") + "%")); } // 企业简介 if (searchMap.get("summary") != null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%" + (String) searchMap.get("summary") + "%")); } // 企业地址 if (searchMap.get("address") != null && !"".equals(searchMap.get("address"))) { predicateList.add(cb.like(root.get("address").as(String.class), "%" + (String) searchMap.get("address") + "%")); } // 标签列表 if (searchMap.get("labels") != null && !"".equals(searchMap.get("labels"))) { predicateList.add(cb.like(root.get("labels").as(String.class), "%" + (String) searchMap.get("labels") + "%")); } // 坐标 if (searchMap.get("coordinate") != null && !"".equals(searchMap.get("coordinate"))) { predicateList.add(cb.like(root.get("coordinate").as(String.class), "%" + (String) searchMap.get("coordinate") + "%")); } // 是否热门 if (searchMap.get("ishot") != null && !"".equals(searchMap.get("ishot"))) { predicateList.add(cb.like(root.get("ishot").as(String.class), "%" + (String) searchMap.get("ishot") + "%")); } // LOGO if (searchMap.get("logo") != null && !"".equals(searchMap.get("logo"))) { predicateList.add(cb.like(root.get("logo").as(String.class), "%" + (String) searchMap.get("logo") + "%")); } // URL if (searchMap.get("url") != null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%" + (String) searchMap.get("url") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Reply> createSpecification(Map searchMap) { return new Specification<Reply>() { @Override public Predicate toPredicate(Root<Reply> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // 编号 if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 问题ID if (searchMap.get("problemid")!=null && !"".equals(searchMap.get("problemid"))) { predicateList.add(cb.like(root.get("problemid").as(String.class), "%"+(String)searchMap.get("problemid")+"%")); } // 回答内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 回答人ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 回答人昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Column> createSpecification(Map searchMap) { return new Specification<Column>() { @Override public Predicate toPredicate(Root<Column> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 专栏简介 if (searchMap.get("summary")!=null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%"+(String)searchMap.get("summary")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Recruit> createSpecification(Map searchMap) { return new Specification<Recruit>() { @Override public Predicate toPredicate(Root<Recruit> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 职位名称 if (searchMap.get("jobname")!=null && !"".equals(searchMap.get("jobname"))) { predicateList.add(cb.like(root.get("jobname").as(String.class), "%"+(String)searchMap.get("jobname")+"%")); } // 薪资范围 if (searchMap.get("salary")!=null && !"".equals(searchMap.get("salary"))) { predicateList.add(cb.like(root.get("salary").as(String.class), "%"+(String)searchMap.get("salary")+"%")); } // 经验要求 if (searchMap.get("condition")!=null && !"".equals(searchMap.get("condition"))) { predicateList.add(cb.like(root.get("condition").as(String.class), "%"+(String)searchMap.get("condition")+"%")); } // 学历要求 if (searchMap.get("education")!=null && !"".equals(searchMap.get("education"))) { predicateList.add(cb.like(root.get("education").as(String.class), "%"+(String)searchMap.get("education")+"%")); } // 任职方式 if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } // 办公地址 if (searchMap.get("address")!=null && !"".equals(searchMap.get("address"))) { predicateList.add(cb.like(root.get("address").as(String.class), "%"+(String)searchMap.get("address")+"%")); } // 企业ID if (searchMap.get("eid")!=null && !"".equals(searchMap.get("eid"))) { predicateList.add(cb.like(root.get("eid").as(String.class), "%"+(String)searchMap.get("eid")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } // 网址 if (searchMap.get("url")!=null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%"+(String)searchMap.get("url")+"%")); } // 标签 if (searchMap.get("label")!=null && !"".equals(searchMap.get("label"))) { predicateList.add(cb.like(root.get("label").as(String.class), "%"+(String)searchMap.get("label")+"%")); } // 职位描述 if (searchMap.get("content1")!=null && !"".equals(searchMap.get("content1"))) { predicateList.add(cb.like(root.get("content1").as(String.class), "%"+(String)searchMap.get("content1")+"%")); } // 职位要求 if (searchMap.get("content2")!=null && !"".equals(searchMap.get("content2"))) { predicateList.add(cb.like(root.get("content2").as(String.class), "%"+(String)searchMap.get("content2")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Article> createSpecification(Map searchMap) { return new Specification<Article>() { @Override public Predicate toPredicate(Root<Article> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏ID if (searchMap.get("columnid")!=null && !"".equals(searchMap.get("columnid"))) { predicateList.add(cb.like(root.get("columnid").as(String.class), "%"+(String)searchMap.get("columnid")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 文章正文 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 文章封面 if (searchMap.get("image")!=null && !"".equals(searchMap.get("image"))) { predicateList.add(cb.like(root.get("image").as(String.class), "%"+(String)searchMap.get("image")+"%")); } // 是否公开 if (searchMap.get("ispublic")!=null && !"".equals(searchMap.get("ispublic"))) { predicateList.add(cb.like(root.get("ispublic").as(String.class), "%"+(String)searchMap.get("ispublic")+"%")); } // 是否置顶 if (searchMap.get("istop")!=null && !"".equals(searchMap.get("istop"))) { predicateList.add(cb.like(root.get("istop").as(String.class), "%"+(String)searchMap.get("istop")+"%")); } // 审核状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } // 所属频道 if (searchMap.get("channelid")!=null && !"".equals(searchMap.get("channelid"))) { predicateList.add(cb.like(root.get("channelid").as(String.class), "%"+(String)searchMap.get("channelid")+"%")); } // URL if (searchMap.get("url")!=null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%"+(String)searchMap.get("url")+"%")); } // 类型 if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Recruit> createSpecification(Map searchMap) { return new Specification<Recruit>() { @Override public Predicate toPredicate(Root<Recruit> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 职位名称 if (searchMap.get("jobname")!=null && !"".equals(searchMap.get("jobname"))) { predicateList.add(cb.like(root.get("jobname").as(String.class), "%"+(String)searchMap.get("jobname")+"%")); } // 薪资范围 if (searchMap.get("salary")!=null && !"".equals(searchMap.get("salary"))) { predicateList.add(cb.like(root.get("salary").as(String.class), "%"+(String)searchMap.get("salary")+"%")); } // 经验要求 if (searchMap.get("condition")!=null && !"".equals(searchMap.get("condition"))) { predicateList.add(cb.like(root.get("condition").as(String.class), "%"+(String)searchMap.get("condition")+"%")); } // 学历要求 if (searchMap.get("education")!=null && !"".equals(searchMap.get("education"))) { predicateList.add(cb.like(root.get("education").as(String.class), "%"+(String)searchMap.get("education")+"%")); } // 任职方式 if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } // 办公地址 if (searchMap.get("address")!=null && !"".equals(searchMap.get("address"))) { predicateList.add(cb.like(root.get("address").as(String.class), "%"+(String)searchMap.get("address")+"%")); } // 企业ID if (searchMap.get("eid")!=null && !"".equals(searchMap.get("eid"))) { predicateList.add(cb.like(root.get("eid").as(String.class), "%"+(String)searchMap.get("eid")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } // 网址 if (searchMap.get("url")!=null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%"+(String)searchMap.get("url")+"%")); } // 标签 if (searchMap.get("label")!=null && !"".equals(searchMap.get("label"))) { predicateList.add(cb.like(root.get("label").as(String.class), "%"+(String)searchMap.get("label")+"%")); } // 职位描述 if (searchMap.get("content1")!=null && !"".equals(searchMap.get("content1"))) { predicateList.add(cb.like(root.get("content1").as(String.class), "%"+(String)searchMap.get("content1")+"%")); } // 职位要求 if (searchMap.get("content2")!=null && !"".equals(searchMap.get("content2"))) { predicateList.add(cb.like(root.get("content2").as(String.class), "%"+(String)searchMap.get("content2")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<User> createSpecification(Map searchMap) { return new Specification<User>() { @Override public Predicate toPredicate(Root<User> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 手机号码 if (searchMap.get("mobile") != null && !"".equals(searchMap.get("mobile"))) { predicateList.add(cb.like(root.get("mobile").as(String.class), "%" + (String) searchMap.get("mobile") + "%")); } // 密码 if (searchMap.get("password") != null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%" + (String) searchMap.get("password") + "%")); } // 昵称 if (searchMap.get("nickname") != null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%" + (String) searchMap.get("nickname") + "%")); } // 性别 if (searchMap.get("sex") != null && !"".equals(searchMap.get("sex"))) { predicateList.add(cb.like(root.get("sex").as(String.class), "%" + (String) searchMap.get("sex") + "%")); } // 头像 if (searchMap.get("avatar") != null && !"".equals(searchMap.get("avatar"))) { predicateList.add(cb.like(root.get("avatar").as(String.class), "%" + (String) searchMap.get("avatar") + "%")); } // E-Mail if (searchMap.get("email") != null && !"".equals(searchMap.get("email"))) { predicateList.add(cb.like(root.get("email").as(String.class), "%" + (String) searchMap.get("email") + "%")); } // 兴趣 if (searchMap.get("interest") != null && !"".equals(searchMap.get("interest"))) { predicateList.add(cb.like(root.get("interest").as(String.class), "%" + (String) searchMap.get("interest") + "%")); } // 个性 if (searchMap.get("personality") != null && !"".equals(searchMap.get("personality"))) { predicateList.add(cb.like(root.get("personality").as(String.class), "%" + (String) searchMap.get("personality") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Article> createSpecification(Map searchMap) { return new Specification<Article>() { @Override public Predicate toPredicate(Root<Article> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏ID if (searchMap.get("columnid")!=null && !"".equals(searchMap.get("columnid"))) { predicateList.add(cb.like(root.get("columnid").as(String.class), "%"+(String)searchMap.get("columnid")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 文章正文 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 文章封面 if (searchMap.get("image")!=null && !"".equals(searchMap.get("image"))) { predicateList.add(cb.like(root.get("image").as(String.class), "%"+(String)searchMap.get("image")+"%")); } // 是否公开 if (searchMap.get("ispublic")!=null && !"".equals(searchMap.get("ispublic"))) { predicateList.add(cb.like(root.get("ispublic").as(String.class), "%"+(String)searchMap.get("ispublic")+"%")); } // 是否置顶 if (searchMap.get("istop")!=null && !"".equals(searchMap.get("istop"))) { predicateList.add(cb.like(root.get("istop").as(String.class), "%"+(String)searchMap.get("istop")+"%")); } // 审核状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } // 所属频道 if (searchMap.get("channelid")!=null && !"".equals(searchMap.get("channelid"))) { predicateList.add(cb.like(root.get("channelid").as(String.class), "%"+(String)searchMap.get("channelid")+"%")); } // URL if (searchMap.get("url")!=null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%"+(String)searchMap.get("url")+"%")); } // 类型 if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<User> createSpecification(Map searchMap) { return new Specification<User>() { @Override public Predicate toPredicate(Root<User> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 手机号码 if (searchMap.get("mobile") != null && !"".equals(searchMap.get("mobile"))) { predicateList.add(cb.like(root.get("mobile").as(String.class), "%" + (String) searchMap.get("mobile") + "%")); } // 密码 if (searchMap.get("password") != null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%" + (String) searchMap.get("password") + "%")); } // 昵称 if (searchMap.get("nickname") != null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%" + (String) searchMap.get("nickname") + "%")); } // 性别 if (searchMap.get("sex") != null && !"".equals(searchMap.get("sex"))) { predicateList.add(cb.like(root.get("sex").as(String.class), "%" + (String) searchMap.get("sex") + "%")); } // 头像 if (searchMap.get("avatar") != null && !"".equals(searchMap.get("avatar"))) { predicateList.add(cb.like(root.get("avatar").as(String.class), "%" + (String) searchMap.get("avatar") + "%")); } // E-Mail if (searchMap.get("email") != null && !"".equals(searchMap.get("email"))) { predicateList.add(cb.like(root.get("email").as(String.class), "%" + (String) searchMap.get("email") + "%")); } // 兴趣 if (searchMap.get("interest") != null && !"".equals(searchMap.get("interest"))) { predicateList.add(cb.like(root.get("interest").as(String.class), "%" + (String) searchMap.get("interest") + "%")); } // 个性 if (searchMap.get("personality") != null && !"".equals(searchMap.get("personality"))) { predicateList.add(cb.like(root.get("personality").as(String.class), "%" + (String) searchMap.get("personality") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Article> createSpecification(Map searchMap) { return new Specification<Article>() { @Override public Predicate toPredicate(Root<Article> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏ID if (searchMap.get("columnid")!=null && !"".equals(searchMap.get("columnid"))) { predicateList.add(cb.like(root.get("columnid").as(String.class), "%"+(String)searchMap.get("columnid")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 文章正文 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 文章封面 if (searchMap.get("image")!=null && !"".equals(searchMap.get("image"))) { predicateList.add(cb.like(root.get("image").as(String.class), "%"+(String)searchMap.get("image")+"%")); } // 是否公开 if (searchMap.get("ispublic")!=null && !"".equals(searchMap.get("ispublic"))) { predicateList.add(cb.like(root.get("ispublic").as(String.class), "%"+(String)searchMap.get("ispublic")+"%")); } // 是否置顶 if (searchMap.get("istop")!=null && !"".equals(searchMap.get("istop"))) { predicateList.add(cb.like(root.get("istop").as(String.class), "%"+(String)searchMap.get("istop")+"%")); } // 审核状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } // 所属频道 if (searchMap.get("channelid")!=null && !"".equals(searchMap.get("channelid"))) { predicateList.add(cb.like(root.get("channelid").as(String.class), "%"+(String)searchMap.get("channelid")+"%")); } // URL if (searchMap.get("url")!=null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%"+(String)searchMap.get("url")+"%")); } // 类型 if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Enterprise> createSpecification(Map searchMap) { return new Specification<Enterprise>() { @Override public Predicate toPredicate(Root<Enterprise> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 企业名称 if (searchMap.get("name") != null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%" + (String) searchMap.get("name") + "%")); } // 企业简介 if (searchMap.get("summary") != null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%" + (String) searchMap.get("summary") + "%")); } // 企业地址 if (searchMap.get("address") != null && !"".equals(searchMap.get("address"))) { predicateList.add(cb.like(root.get("address").as(String.class), "%" + (String) searchMap.get("address") + "%")); } // 标签列表 if (searchMap.get("labels") != null && !"".equals(searchMap.get("labels"))) { predicateList.add(cb.like(root.get("labels").as(String.class), "%" + (String) searchMap.get("labels") + "%")); } // 坐标 if (searchMap.get("coordinate") != null && !"".equals(searchMap.get("coordinate"))) { predicateList.add(cb.like(root.get("coordinate").as(String.class), "%" + (String) searchMap.get("coordinate") + "%")); } // 是否热门 if (searchMap.get("ishot") != null && !"".equals(searchMap.get("ishot"))) { predicateList.add(cb.like(root.get("ishot").as(String.class), "%" + (String) searchMap.get("ishot") + "%")); } // LOGO if (searchMap.get("logo") != null && !"".equals(searchMap.get("logo"))) { predicateList.add(cb.like(root.get("logo").as(String.class), "%" + (String) searchMap.get("logo") + "%")); } // URL if (searchMap.get("url") != null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%" + (String) searchMap.get("url") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Notice> createSpecification(Map searchMap) { return new Specification<Notice>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<Notice> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } if (searchMap.get("receiverId")!=null && !"".equals(searchMap.get("receiverId"))) { predicateList.add(cb.like(root.get("receiverId").as(String.class), "%"+(String)searchMap.get("receiverId")+"%")); } if (searchMap.get("operatorId")!=null && !"".equals(searchMap.get("operatorId"))) { predicateList.add(cb.like(root.get("operatorId").as(String.class), "%"+(String)searchMap.get("operatorId")+"%")); } if (searchMap.get("action")!=null && !"".equals(searchMap.get("action"))) { predicateList.add(cb.like(root.get("action").as(String.class), "%"+(String)searchMap.get("action")+"%")); } if (searchMap.get("targetType")!=null && !"".equals(searchMap.get("targetType"))) { predicateList.add(cb.like(root.get("targetType").as(String.class), "%"+(String)searchMap.get("targetType")+"%")); } if (searchMap.get("targetId")!=null && !"".equals(searchMap.get("targetId"))) { predicateList.add(cb.like(root.get("targetId").as(String.class), "%"+(String)searchMap.get("targetId")+"%")); } if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Article> createSpecification(Map searchMap) { return new Specification<Article>() { @Override public Predicate toPredicate(Root<Article> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏ID if (searchMap.get("columnid")!=null && !"".equals(searchMap.get("columnid"))) { predicateList.add(cb.like(root.get("columnid").as(String.class), "%"+(String)searchMap.get("columnid")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 文章正文 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 文章封面 if (searchMap.get("image")!=null && !"".equals(searchMap.get("image"))) { predicateList.add(cb.like(root.get("image").as(String.class), "%"+(String)searchMap.get("image")+"%")); } // 是否公开 if (searchMap.get("ispublic")!=null && !"".equals(searchMap.get("ispublic"))) { predicateList.add(cb.like(root.get("ispublic").as(String.class), "%"+(String)searchMap.get("ispublic")+"%")); } // 是否置顶 if (searchMap.get("istop")!=null && !"".equals(searchMap.get("istop"))) { predicateList.add(cb.like(root.get("istop").as(String.class), "%"+(String)searchMap.get("istop")+"%")); } // 审核状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } // 所属频道 if (searchMap.get("channelid")!=null && !"".equals(searchMap.get("channelid"))) { predicateList.add(cb.like(root.get("channelid").as(String.class), "%"+(String)searchMap.get("channelid")+"%")); } // URL if (searchMap.get("url")!=null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%"+(String)searchMap.get("url")+"%")); } // 类型 if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Notice> createSpecification(Map searchMap) { return new Specification<Notice>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<Notice> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } if (searchMap.get("receiverId")!=null && !"".equals(searchMap.get("receiverId"))) { predicateList.add(cb.like(root.get("receiverId").as(String.class), "%"+(String)searchMap.get("receiverId")+"%")); } if (searchMap.get("operatorId")!=null && !"".equals(searchMap.get("operatorId"))) { predicateList.add(cb.like(root.get("operatorId").as(String.class), "%"+(String)searchMap.get("operatorId")+"%")); } if (searchMap.get("action")!=null && !"".equals(searchMap.get("action"))) { predicateList.add(cb.like(root.get("action").as(String.class), "%"+(String)searchMap.get("action")+"%")); } if (searchMap.get("targetType")!=null && !"".equals(searchMap.get("targetType"))) { predicateList.add(cb.like(root.get("targetType").as(String.class), "%"+(String)searchMap.get("targetType")+"%")); } if (searchMap.get("targetId")!=null && !"".equals(searchMap.get("targetId"))) { predicateList.add(cb.like(root.get("targetId").as(String.class), "%"+(String)searchMap.get("targetId")+"%")); } if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<User> createSpecification(Map searchMap) { return new Specification<User>() { @Override public Predicate toPredicate(Root<User> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 手机号码 if (searchMap.get("mobile") != null && !"".equals(searchMap.get("mobile"))) { predicateList.add(cb.like(root.get("mobile").as(String.class), "%" + (String) searchMap.get("mobile") + "%")); } // 密码 if (searchMap.get("password") != null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%" + (String) searchMap.get("password") + "%")); } // 昵称 if (searchMap.get("nickname") != null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%" + (String) searchMap.get("nickname") + "%")); } // 性别 if (searchMap.get("sex") != null && !"".equals(searchMap.get("sex"))) { predicateList.add(cb.like(root.get("sex").as(String.class), "%" + (String) searchMap.get("sex") + "%")); } // 头像 if (searchMap.get("avatar") != null && !"".equals(searchMap.get("avatar"))) { predicateList.add(cb.like(root.get("avatar").as(String.class), "%" + (String) searchMap.get("avatar") + "%")); } // E-Mail if (searchMap.get("email") != null && !"".equals(searchMap.get("email"))) { predicateList.add(cb.like(root.get("email").as(String.class), "%" + (String) searchMap.get("email") + "%")); } // 兴趣 if (searchMap.get("interest") != null && !"".equals(searchMap.get("interest"))) { predicateList.add(cb.like(root.get("interest").as(String.class), "%" + (String) searchMap.get("interest") + "%")); } // 个性 if (searchMap.get("personality") != null && !"".equals(searchMap.get("personality"))) { predicateList.add(cb.like(root.get("personality").as(String.class), "%" + (String) searchMap.get("personality") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Problem> createSpecification(Map searchMap) { return new Specification<Problem>() { @Override public Predicate toPredicate(Root<Problem> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } // 是否解决 if (searchMap.get("solve")!=null && !"".equals(searchMap.get("solve"))) { predicateList.add(cb.like(root.get("solve").as(String.class), "%"+(String)searchMap.get("solve")+"%")); } // 回复人昵称 if (searchMap.get("replyname")!=null && !"".equals(searchMap.get("replyname"))) { predicateList.add(cb.like(root.get("replyname").as(String.class), "%"+(String)searchMap.get("replyname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<User> createSpecification(Map searchMap) { return new Specification<User>() { @Override public Predicate toPredicate(Root<User> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 手机号码 if (searchMap.get("mobile") != null && !"".equals(searchMap.get("mobile"))) { predicateList.add(cb.like(root.get("mobile").as(String.class), "%" + (String) searchMap.get("mobile") + "%")); } // 密码 if (searchMap.get("password") != null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%" + (String) searchMap.get("password") + "%")); } // 昵称 if (searchMap.get("nickname") != null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%" + (String) searchMap.get("nickname") + "%")); } // 性别 if (searchMap.get("sex") != null && !"".equals(searchMap.get("sex"))) { predicateList.add(cb.like(root.get("sex").as(String.class), "%" + (String) searchMap.get("sex") + "%")); } // 头像 if (searchMap.get("avatar") != null && !"".equals(searchMap.get("avatar"))) { predicateList.add(cb.like(root.get("avatar").as(String.class), "%" + (String) searchMap.get("avatar") + "%")); } // E-Mail if (searchMap.get("email") != null && !"".equals(searchMap.get("email"))) { predicateList.add(cb.like(root.get("email").as(String.class), "%" + (String) searchMap.get("email") + "%")); } // 兴趣 if (searchMap.get("interest") != null && !"".equals(searchMap.get("interest"))) { predicateList.add(cb.like(root.get("interest").as(String.class), "%" + (String) searchMap.get("interest") + "%")); } // 个性 if (searchMap.get("personality") != null && !"".equals(searchMap.get("personality"))) { predicateList.add(cb.like(root.get("personality").as(String.class), "%" + (String) searchMap.get("personality") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Notice> createSpecification(Map searchMap) { return new Specification<Notice>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<Notice> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } if (searchMap.get("receiverId")!=null && !"".equals(searchMap.get("receiverId"))) { predicateList.add(cb.like(root.get("receiverId").as(String.class), "%"+(String)searchMap.get("receiverId")+"%")); } if (searchMap.get("operatorId")!=null && !"".equals(searchMap.get("operatorId"))) { predicateList.add(cb.like(root.get("operatorId").as(String.class), "%"+(String)searchMap.get("operatorId")+"%")); } if (searchMap.get("action")!=null && !"".equals(searchMap.get("action"))) { predicateList.add(cb.like(root.get("action").as(String.class), "%"+(String)searchMap.get("action")+"%")); } if (searchMap.get("targetType")!=null && !"".equals(searchMap.get("targetType"))) { predicateList.add(cb.like(root.get("targetType").as(String.class), "%"+(String)searchMap.get("targetType")+"%")); } if (searchMap.get("targetId")!=null && !"".equals(searchMap.get("targetId"))) { predicateList.add(cb.like(root.get("targetId").as(String.class), "%"+(String)searchMap.get("targetId")+"%")); } if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Enterprise> createSpecification(Map searchMap) { return new Specification<Enterprise>() { @Override public Predicate toPredicate(Root<Enterprise> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 企业名称 if (searchMap.get("name") != null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%" + (String) searchMap.get("name") + "%")); } // 企业简介 if (searchMap.get("summary") != null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%" + (String) searchMap.get("summary") + "%")); } // 企业地址 if (searchMap.get("address") != null && !"".equals(searchMap.get("address"))) { predicateList.add(cb.like(root.get("address").as(String.class), "%" + (String) searchMap.get("address") + "%")); } // 标签列表 if (searchMap.get("labels") != null && !"".equals(searchMap.get("labels"))) { predicateList.add(cb.like(root.get("labels").as(String.class), "%" + (String) searchMap.get("labels") + "%")); } // 坐标 if (searchMap.get("coordinate") != null && !"".equals(searchMap.get("coordinate"))) { predicateList.add(cb.like(root.get("coordinate").as(String.class), "%" + (String) searchMap.get("coordinate") + "%")); } // 是否热门 if (searchMap.get("ishot") != null && !"".equals(searchMap.get("ishot"))) { predicateList.add(cb.like(root.get("ishot").as(String.class), "%" + (String) searchMap.get("ishot") + "%")); } // LOGO if (searchMap.get("logo") != null && !"".equals(searchMap.get("logo"))) { predicateList.add(cb.like(root.get("logo").as(String.class), "%" + (String) searchMap.get("logo") + "%")); } // URL if (searchMap.get("url") != null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%" + (String) searchMap.get("url") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Problem> createSpecification(Map searchMap) { return new Specification<Problem>() { @Override public Predicate toPredicate(Root<Problem> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } // 是否解决 if (searchMap.get("solve")!=null && !"".equals(searchMap.get("solve"))) { predicateList.add(cb.like(root.get("solve").as(String.class), "%"+(String)searchMap.get("solve")+"%")); } // 回复人昵称 if (searchMap.get("replyname")!=null && !"".equals(searchMap.get("replyname"))) { predicateList.add(cb.like(root.get("replyname").as(String.class), "%"+(String)searchMap.get("replyname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Enterprise> createSpecification(Map searchMap) { return new Specification<Enterprise>() { @Override public Predicate toPredicate(Root<Enterprise> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id") != null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%" + (String) searchMap.get("id") + "%")); } // 企业名称 if (searchMap.get("name") != null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%" + (String) searchMap.get("name") + "%")); } // 企业简介 if (searchMap.get("summary") != null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%" + (String) searchMap.get("summary") + "%")); } // 企业地址 if (searchMap.get("address") != null && !"".equals(searchMap.get("address"))) { predicateList.add(cb.like(root.get("address").as(String.class), "%" + (String) searchMap.get("address") + "%")); } // 标签列表 if (searchMap.get("labels") != null && !"".equals(searchMap.get("labels"))) { predicateList.add(cb.like(root.get("labels").as(String.class), "%" + (String) searchMap.get("labels") + "%")); } // 坐标 if (searchMap.get("coordinate") != null && !"".equals(searchMap.get("coordinate"))) { predicateList.add(cb.like(root.get("coordinate").as(String.class), "%" + (String) searchMap.get("coordinate") + "%")); } // 是否热门 if (searchMap.get("ishot") != null && !"".equals(searchMap.get("ishot"))) { predicateList.add(cb.like(root.get("ishot").as(String.class), "%" + (String) searchMap.get("ishot") + "%")); } // LOGO if (searchMap.get("logo") != null && !"".equals(searchMap.get("logo"))) { predicateList.add(cb.like(root.get("logo").as(String.class), "%" + (String) searchMap.get("logo") + "%")); } // URL if (searchMap.get("url") != null && !"".equals(searchMap.get("url"))) { predicateList.add(cb.like(root.get("url").as(String.class), "%" + (String) searchMap.get("url") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Notice> createSpecification(Map searchMap) { return new Specification<Notice>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<Notice> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } if (searchMap.get("receiverId")!=null && !"".equals(searchMap.get("receiverId"))) { predicateList.add(cb.like(root.get("receiverId").as(String.class), "%"+(String)searchMap.get("receiverId")+"%")); } if (searchMap.get("operatorId")!=null && !"".equals(searchMap.get("operatorId"))) { predicateList.add(cb.like(root.get("operatorId").as(String.class), "%"+(String)searchMap.get("operatorId")+"%")); } if (searchMap.get("action")!=null && !"".equals(searchMap.get("action"))) { predicateList.add(cb.like(root.get("action").as(String.class), "%"+(String)searchMap.get("action")+"%")); } if (searchMap.get("targetType")!=null && !"".equals(searchMap.get("targetType"))) { predicateList.add(cb.like(root.get("targetType").as(String.class), "%"+(String)searchMap.get("targetType")+"%")); } if (searchMap.get("targetId")!=null && !"".equals(searchMap.get("targetId"))) { predicateList.add(cb.like(root.get("targetId").as(String.class), "%"+(String)searchMap.get("targetId")+"%")); } if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Problem> createSpecification(Map searchMap) { return new Specification<Problem>() { @Override public Predicate toPredicate(Root<Problem> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } // 是否解决 if (searchMap.get("solve")!=null && !"".equals(searchMap.get("solve"))) { predicateList.add(cb.like(root.get("solve").as(String.class), "%"+(String)searchMap.get("solve")+"%")); } // 回复人昵称 if (searchMap.get("replyname")!=null && !"".equals(searchMap.get("replyname"))) { predicateList.add(cb.like(root.get("replyname").as(String.class), "%"+(String)searchMap.get("replyname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Column> createSpecification(Map searchMap) { return new Specification<Column>() { @Override public Predicate toPredicate(Root<Column> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 专栏简介 if (searchMap.get("summary")!=null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%"+(String)searchMap.get("summary")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Notice> createSpecification(Map searchMap) { return new Specification<Notice>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<Notice> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } if (searchMap.get("receiverId")!=null && !"".equals(searchMap.get("receiverId"))) { predicateList.add(cb.like(root.get("receiverId").as(String.class), "%"+(String)searchMap.get("receiverId")+"%")); } if (searchMap.get("operatorId")!=null && !"".equals(searchMap.get("operatorId"))) { predicateList.add(cb.like(root.get("operatorId").as(String.class), "%"+(String)searchMap.get("operatorId")+"%")); } if (searchMap.get("action")!=null && !"".equals(searchMap.get("action"))) { predicateList.add(cb.like(root.get("action").as(String.class), "%"+(String)searchMap.get("action")+"%")); } if (searchMap.get("targetType")!=null && !"".equals(searchMap.get("targetType"))) { predicateList.add(cb.like(root.get("targetType").as(String.class), "%"+(String)searchMap.get("targetType")+"%")); } if (searchMap.get("targetId")!=null && !"".equals(searchMap.get("targetId"))) { predicateList.add(cb.like(root.get("targetId").as(String.class), "%"+(String)searchMap.get("targetId")+"%")); } if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Reply> createSpecification(Map searchMap) { return new Specification<Reply>() { @Override public Predicate toPredicate(Root<Reply> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // 编号 if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 问题ID if (searchMap.get("problemid")!=null && !"".equals(searchMap.get("problemid"))) { predicateList.add(cb.like(root.get("problemid").as(String.class), "%"+(String)searchMap.get("problemid")+"%")); } // 回答内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 回答人ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 回答人昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Notice> createSpecification(Map searchMap) { return new Specification<Notice>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<Notice> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } if (searchMap.get("receiverId")!=null && !"".equals(searchMap.get("receiverId"))) { predicateList.add(cb.like(root.get("receiverId").as(String.class), "%"+(String)searchMap.get("receiverId")+"%")); } if (searchMap.get("operatorId")!=null && !"".equals(searchMap.get("operatorId"))) { predicateList.add(cb.like(root.get("operatorId").as(String.class), "%"+(String)searchMap.get("operatorId")+"%")); } if (searchMap.get("action")!=null && !"".equals(searchMap.get("action"))) { predicateList.add(cb.like(root.get("action").as(String.class), "%"+(String)searchMap.get("action")+"%")); } if (searchMap.get("targetType")!=null && !"".equals(searchMap.get("targetType"))) { predicateList.add(cb.like(root.get("targetType").as(String.class), "%"+(String)searchMap.get("targetType")+"%")); } if (searchMap.get("targetId")!=null && !"".equals(searchMap.get("targetId"))) { predicateList.add(cb.like(root.get("targetId").as(String.class), "%"+(String)searchMap.get("targetId")+"%")); } if (searchMap.get("type")!=null && !"".equals(searchMap.get("type"))) { predicateList.add(cb.like(root.get("type").as(String.class), "%"+(String)searchMap.get("type")+"%")); } if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Column> createSpecification(Map searchMap) { return new Specification<Column>() { @Override public Predicate toPredicate(Root<Column> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 专栏简介 if (searchMap.get("summary")!=null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%"+(String)searchMap.get("summary")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Problem> createSpecification(Map searchMap) { return new Specification<Problem>() { @Override public Predicate toPredicate(Root<Problem> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } // 是否解决 if (searchMap.get("solve")!=null && !"".equals(searchMap.get("solve"))) { predicateList.add(cb.like(root.get("solve").as(String.class), "%"+(String)searchMap.get("solve")+"%")); } // 回复人昵称 if (searchMap.get("replyname")!=null && !"".equals(searchMap.get("replyname"))) { predicateList.add(cb.like(root.get("replyname").as(String.class), "%"+(String)searchMap.get("replyname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Admin> createSpecification(Map searchMap) { return new Specification<Admin>() { @Override public Predicate toPredicate(Root<Admin> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 登陆名称 if (searchMap.get("loginname")!=null && !"".equals(searchMap.get("loginname"))) { predicateList.add(cb.like(root.get("loginname").as(String.class), "%"+(String)searchMap.get("loginname")+"%")); } // 密码 if (searchMap.get("password")!=null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%"+(String)searchMap.get("password")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Problem> createSpecification(Map searchMap) { return new Specification<Problem>() { @Override public Predicate toPredicate(Root<Problem> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 标题 if (searchMap.get("title")!=null && !"".equals(searchMap.get("title"))) { predicateList.add(cb.like(root.get("title").as(String.class), "%"+(String)searchMap.get("title")+"%")); } // 内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } // 是否解决 if (searchMap.get("solve")!=null && !"".equals(searchMap.get("solve"))) { predicateList.add(cb.like(root.get("solve").as(String.class), "%"+(String)searchMap.get("solve")+"%")); } // 回复人昵称 if (searchMap.get("replyname")!=null && !"".equals(searchMap.get("replyname"))) { predicateList.add(cb.like(root.get("replyname").as(String.class), "%"+(String)searchMap.get("replyname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Admin> createSpecification(Map searchMap) { return new Specification<Admin>() { @Override public Predicate toPredicate(Root<Admin> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 登陆名称 if (searchMap.get("loginname")!=null && !"".equals(searchMap.get("loginname"))) { predicateList.add(cb.like(root.get("loginname").as(String.class), "%"+(String)searchMap.get("loginname")+"%")); } // 密码 if (searchMap.get("password")!=null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%"+(String)searchMap.get("password")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Column> createSpecification(Map searchMap) { return new Specification<Column>() { @Override public Predicate toPredicate(Root<Column> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 专栏名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 专栏简介 if (searchMap.get("summary")!=null && !"".equals(searchMap.get("summary"))) { predicateList.add(cb.like(root.get("summary").as(String.class), "%"+(String)searchMap.get("summary")+"%")); } // 用户ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Reply> createSpecification(Map searchMap) { return new Specification<Reply>() { @Override public Predicate toPredicate(Root<Reply> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // 编号 if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 问题ID if (searchMap.get("problemid")!=null && !"".equals(searchMap.get("problemid"))) { predicateList.add(cb.like(root.get("problemid").as(String.class), "%"+(String)searchMap.get("problemid")+"%")); } // 回答内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 回答人ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 回答人昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Admin> createSpecification(Map searchMap) { return new Specification<Admin>() { @Override public Predicate toPredicate(Root<Admin> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 登陆名称 if (searchMap.get("loginname")!=null && !"".equals(searchMap.get("loginname"))) { predicateList.add(cb.like(root.get("loginname").as(String.class), "%"+(String)searchMap.get("loginname")+"%")); } // 密码 if (searchMap.get("password")!=null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%"+(String)searchMap.get("password")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Channel> createSpecification(Map searchMap) { return new Specification<Channel>() { @Override public Predicate toPredicate(Root<Channel> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 频道名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Reply> createSpecification(Map searchMap) { return new Specification<Reply>() { @Override public Predicate toPredicate(Root<Reply> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // 编号 if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 问题ID if (searchMap.get("problemid")!=null && !"".equals(searchMap.get("problemid"))) { predicateList.add(cb.like(root.get("problemid").as(String.class), "%"+(String)searchMap.get("problemid")+"%")); } // 回答内容 if (searchMap.get("content")!=null && !"".equals(searchMap.get("content"))) { predicateList.add(cb.like(root.get("content").as(String.class), "%"+(String)searchMap.get("content")+"%")); } // 回答人ID if (searchMap.get("userid")!=null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%"+(String)searchMap.get("userid")+"%")); } // 回答人昵称 if (searchMap.get("nickname")!=null && !"".equals(searchMap.get("nickname"))) { predicateList.add(cb.like(root.get("nickname").as(String.class), "%"+(String)searchMap.get("nickname")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Channel> createSpecification(Map searchMap) { return new Specification<Channel>() { @Override public Predicate toPredicate(Root<Channel> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 频道名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Admin> createSpecification(Map searchMap) { return new Specification<Admin>() { @Override public Predicate toPredicate(Root<Admin> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 登陆名称 if (searchMap.get("loginname")!=null && !"".equals(searchMap.get("loginname"))) { predicateList.add(cb.like(root.get("loginname").as(String.class), "%"+(String)searchMap.get("loginname")+"%")); } // 密码 if (searchMap.get("password")!=null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%"+(String)searchMap.get("password")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Admin> createSpecification(Map searchMap) { return new Specification<Admin>() { @Override public Predicate toPredicate(Root<Admin> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 登陆名称 if (searchMap.get("loginname")!=null && !"".equals(searchMap.get("loginname"))) { predicateList.add(cb.like(root.get("loginname").as(String.class), "%"+(String)searchMap.get("loginname")+"%")); } // 密码 if (searchMap.get("password")!=null && !"".equals(searchMap.get("password"))) { predicateList.add(cb.like(root.get("password").as(String.class), "%"+(String)searchMap.get("password")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<NoticeFresh> createSpecificationWithFresh(Map searchMap) { return new Specification<NoticeFresh>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<NoticeFresh> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("userid") != null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%" + (String) searchMap.get("userid") + "%")); } if (searchMap.get("noticeid") != null && !"".equals(searchMap.get("noticeid"))) { predicateList.add(cb.like(root.get("noticeid").as(String.class), "%" + (String) searchMap.get("noticeid") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<Channel> createSpecification(Map searchMap) { return new Specification<Channel>() { @Override public Predicate toPredicate(Root<Channel> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("id")!=null && !"".equals(searchMap.get("id"))) { predicateList.add(cb.like(root.get("id").as(String.class), "%"+(String)searchMap.get("id")+"%")); } // 频道名称 if (searchMap.get("name")!=null && !"".equals(searchMap.get("name"))) { predicateList.add(cb.like(root.get("name").as(String.class), "%"+(String)searchMap.get("name")+"%")); } // 状态 if (searchMap.get("state")!=null && !"".equals(searchMap.get("state"))) { predicateList.add(cb.like(root.get("state").as(String.class), "%"+(String)searchMap.get("state")+"%")); } return cb.and( predicateList.toArray(new Predicate[predicateList.size()])); } }; }
private Specification<NoticeFresh> createSpecificationWithFresh(Map searchMap) { return new Specification<NoticeFresh>() { //此处省略了关于创建时间的条件 @Override public Predicate toPredicate(Root<NoticeFresh> root, CriteriaQuery<?> query, CriteriaBuilder cb) { List<Predicate> predicateList = new ArrayList<Predicate>(); // ID if (searchMap.get("userid") != null && !"".equals(searchMap.get("userid"))) { predicateList.add(cb.like(root.get("userid").as(String.class), "%" + (String) searchMap.get("userid") + "%")); } if (searchMap.get("noticeid") != null && !"".equals(searchMap.get("noticeid"))) { predicateList.add(cb.like(root.get("noticeid").as(String.class), "%" + (String) searchMap.get("noticeid") + "%")); } return cb.and(predicateList.toArray(new Predicate[predicateList.size()])); } }; }
public IPage<T> getPage(Map<String, Object> params, String defaultOrderField, boolean isAsc) { //分页参数 long curPage = 1; long limit = 10; if(params.get(Constant.PAGE) != null){ curPage = Long.parseLong((String)params.get(Constant.PAGE)); } if(params.get(Constant.LIMIT) != null){ limit = Long.parseLong((String)params.get(Constant.LIMIT)); } //分页对象 Page<T> page = new Page<>(curPage, limit); //分页参数 params.put(Constant.PAGE, page); //排序字段 //防止SQL注入(因为sidx、order是通过拼接SQL实现排序的,会有SQL注入风险) String orderField = SQLFilter.sqlInject((String)params.get(Constant.ORDER_FIELD)); String order = (String)params.get(Constant.ORDER); //前端字段排序 if(StringUtils.isNotEmpty(orderField) && StringUtils.isNotEmpty(order)){ if(Constant.ASC.equalsIgnoreCase(order)) { return page.addOrder(OrderItem.asc(orderField)); }else { return page.addOrder(OrderItem.desc(orderField)); } } //没有排序字段,则不排序 if(StringUtils.isBlank(defaultOrderField)){ return page; } //默认排序 if(isAsc) { page.addOrder(OrderItem.asc(defaultOrderField)); }else { page.addOrder(OrderItem.desc(defaultOrderField)); } return page; }
public IPage<T> getPage(Map<String, Object> params, String defaultOrderField, boolean isAsc) { //分页参数 long curPage = 1; long limit = 10; if(params.get(Constant.PAGE) != null){ curPage = Long.parseLong((String)params.get(Constant.PAGE)); } if(params.get(Constant.LIMIT) != null){ limit = Long.parseLong((String)params.get(Constant.LIMIT)); } //分页对象 Page<T> page = new Page<>(curPage, limit); //分页参数 params.put(Constant.PAGE, page); //排序字段 //防止SQL注入(因为sidx、order是通过拼接SQL实现排序的,会有SQL注入风险) String orderField = SQLFilter.sqlInject((String)params.get(Constant.ORDER_FIELD)); String order = (String)params.get(Constant.ORDER); //前端字段排序 if(StringUtils.isNotEmpty(orderField) && StringUtils.isNotEmpty(order)){ if(Constant.ASC.equalsIgnoreCase(order)) { return page.addOrder(OrderItem.asc(orderField)); }else { return page.addOrder(OrderItem.desc(orderField)); } } //没有排序字段,则不排序 if(StringUtils.isBlank(defaultOrderField)){ return page; } //默认排序 if(isAsc) { page.addOrder(OrderItem.asc(defaultOrderField)); }else { page.addOrder(OrderItem.desc(defaultOrderField)); } return page; }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response getRouteById(String routeId, HttpHeaders headers) { Route route = routeRepository.findById(routeId); if (route == null) { RouteServiceImpl.LOGGER.error("Find route error.Route not found,RouteId: {}",routeId); return new Response<>(0, "No content with the routeId", null); } else { return new Response<>(1, success, route); } }
public Response findOrderById(UUID id, HttpHeaders headers) { Order order = orderRepository.findById(id); if (order == null) { OrderServiceImpl.LOGGER.error("No content, id: {}",id); return new Response<>(0, "No Content by this id", null); } else { return new Response<>(1, success, order); } }
public Response updateFoodOrder(FoodOrder updateFoodOrder, HttpHeaders headers) { FoodOrder fo = foodOrderRepository.findById(updateFoodOrder.getId()); if (fo == null) { FoodServiceImpl.LOGGER.info("[Update FoodOrder] Order Id Is Non-Existent, orderId: {}", updateFoodOrder.getOrderId()); return new Response<>(0, orderIdNotExist, null); } else { fo.setFoodType(updateFoodOrder.getFoodType()); if (updateFoodOrder.getFoodType() == 1) { fo.setStationName(updateFoodOrder.getStationName()); fo.setStoreName(updateFoodOrder.getStoreName()); } fo.setFoodName(updateFoodOrder.getFoodName()); fo.setPrice(updateFoodOrder.getPrice()); foodOrderRepository.save(fo); FoodServiceImpl.LOGGER.info("[Update FoodOrder] Success."); return new Response<>(1, "Success", fo); } }
public Response deletePriceConfig(PriceConfig c, HttpHeaders headers) { PriceConfig priceConfig = priceConfigRepository.findById(c.getId()); if (priceConfig == null) { PriceServiceImpl.LOGGER.error("Delete price config error. Price config not found, PriceConfigId: {}",c.getId()); return new Response<>(0, noThatConfig, null); } else { PriceConfig pc = new PriceConfig(); pc.setId(c.getId()); pc.setRouteId(c.getRouteId()); pc.setTrainType(c.getTrainType()); pc.setBasicPriceRate(c.getBasicPriceRate()); pc.setFirstClassPriceRate(c.getFirstClassPriceRate()); priceConfigRepository.delete(pc); return new Response<>(1, "Delete success", pc); } }
public Response updateFoodOrder(FoodOrder updateFoodOrder, HttpHeaders headers) { FoodOrder fo = foodOrderRepository.findById(updateFoodOrder.getId()); if (fo == null) { FoodServiceImpl.LOGGER.info("[Update FoodOrder] Order Id Is Non-Existent, orderId: {}", updateFoodOrder.getOrderId()); return new Response<>(0, orderIdNotExist, null); } else { fo.setFoodType(updateFoodOrder.getFoodType()); if (updateFoodOrder.getFoodType() == 1) { fo.setStationName(updateFoodOrder.getStationName()); fo.setStoreName(updateFoodOrder.getStoreName()); } fo.setFoodName(updateFoodOrder.getFoodName()); fo.setPrice(updateFoodOrder.getPrice()); foodOrderRepository.save(fo); FoodServiceImpl.LOGGER.info("[Update FoodOrder] Success."); return new Response<>(1, "Success", fo); } }
public Response updatePriceConfig(PriceConfig c, HttpHeaders headers) { PriceConfig priceConfig = priceConfigRepository.findById(c.getId()); if (priceConfig == null) { PriceServiceImpl.LOGGER.error("Update price config error. Price config not found, PriceConfigId: {}",c.getId()); return new Response<>(0, noThatConfig, null); } else { priceConfig.setId(c.getId()); priceConfig.setBasicPriceRate(c.getBasicPriceRate()); priceConfig.setFirstClassPriceRate(c.getFirstClassPriceRate()); priceConfig.setRouteId(c.getRouteId()); priceConfig.setTrainType(c.getTrainType()); priceConfigRepository.save(priceConfig); return new Response<>(1, "Update success", priceConfig); } }
private int getRestTicketNumber(Date travelDate, String trainNumber, String startStationName, String endStationName, int seatType, HttpHeaders headers) { Seat seatRequest = new Seat(); String fromId = queryForStationId(startStationName, headers); String toId = queryForStationId(endStationName, headers); seatRequest.setDestStation(toId); seatRequest.setStartStation(fromId); seatRequest.setTrainNumber(trainNumber); seatRequest.setTravelDate(travelDate); seatRequest.setSeatType(seatType); TravelServiceImpl.LOGGER.info("Seat request To String: {}", seatRequest.toString()); HttpEntity requestEntity = new HttpEntity(seatRequest, null); ResponseEntity<Response<Integer>> re = restTemplate.exchange( "http://ts-seat-service:18898/api/v1/seatservice/seats/left_tickets", HttpMethod.POST, requestEntity, new ParameterizedTypeReference<Response<Integer>>() { }); TravelServiceImpl.LOGGER.info("Get Rest tickets num is: {}", re.getBody().toString()); return re.getBody().getData(); }
private int getRestTicketNumber(Date travelDate, String trainNumber, String startStationName, String endStationName, int seatType, HttpHeaders headers) { Seat seatRequest = new Seat(); String fromId = queryForStationId(startStationName, headers); String toId = queryForStationId(endStationName, headers); seatRequest.setDestStation(toId); seatRequest.setStartStation(fromId); seatRequest.setTrainNumber(trainNumber); seatRequest.setTravelDate(travelDate); seatRequest.setSeatType(seatType); TravelPlanServiceImpl.LOGGER.info("Seat Request is: {}", seatRequest.toString()); HttpEntity requestEntity = new HttpEntity(seatRequest, null); ResponseEntity<Response<Integer>> re = restTemplate.exchange( "http://ts-seat-service:18898/api/v1/seatservice/seats/left_tickets", HttpMethod.POST, requestEntity, new ParameterizedTypeReference<Response<Integer>>() { }); return re.getBody().getData(); }
public Ticket dipatchSeat(Date date, String tripId, String startStationId, String endStataionId, int seatType, HttpHeaders httpHeaders) { Seat seatRequest = new Seat(); seatRequest.setTravelDate(date); seatRequest.setTrainNumber(tripId); seatRequest.setSeatType(seatType); seatRequest.setStartStation(startStationId); seatRequest.setDestStation(endStataionId); HttpHeaders newHeaders = getAuthorizationHeadersFrom(httpHeaders); HttpEntity requestEntityTicket = new HttpEntity(seatRequest, newHeaders); ResponseEntity<Response<Ticket>> reTicket = restTemplate.exchange( "http://ts-seat-service:18898/api/v1/seatservice/seats", HttpMethod.POST, requestEntityTicket, new ParameterizedTypeReference<Response<Ticket>>() { }); return reTicket.getBody().getData(); }
public Ticket dipatchSeat(Date date, String tripId, String startStationId, String endStataionId, int seatType, HttpHeaders httpHeaders) { Seat seatRequest = new Seat(); seatRequest.setTravelDate(date); seatRequest.setTrainNumber(tripId); seatRequest.setStartStation(startStationId); seatRequest.setDestStation(endStataionId); seatRequest.setSeatType(seatType); HttpEntity requestEntityTicket = new HttpEntity(seatRequest, httpHeaders); ResponseEntity<Response<Ticket>> reTicket = restTemplate.exchange( "http://ts-seat-service:18898/api/v1/seatservice/seats", HttpMethod.POST, requestEntityTicket, new ParameterizedTypeReference<Response<Ticket>>() { }); return reTicket.getBody().getData(); }
public Response deleteById(UUID assuranceId, HttpHeaders headers) { assuranceRepository.deleteById(assuranceId); Assurance a = assuranceRepository.findById(assuranceId); if (a == null) { AssuranceServiceImpl.LOGGER.info("[DeleteAssurance] Success, assuranceId: {}", assuranceId); return new Response<>(1, "Delete Success with Assurance id", null); } else { AssuranceServiceImpl.LOGGER.error("[DeleteAssurance] Fail.Assurance not clear, assuranceId: {}", assuranceId); return new Response<>(0, "Fail.Assurance not clear", assuranceId); } }
public Response deleteOrder(String orderId, HttpHeaders headers) { UUID orderUuid = UUID.fromString(orderId); Order order = orderRepository.findById(orderUuid); if (order == null) { OrderServiceImpl.LOGGER.error("Delete order error.Order not found, OrderId: {}",orderId); return new Response<>(0, "Order Not Exist.", null); } else { orderRepository.deleteById(orderUuid); return new Response<>(1, "Delete Order Success", order); } }
public Response deleteByOrderId(UUID orderId, HttpHeaders headers) { assuranceRepository.removeAssuranceByOrderId(orderId); Assurance isExistAssurace = assuranceRepository.findByOrderId(orderId); if (isExistAssurace == null) { AssuranceServiceImpl.LOGGER.info("[DeleteAssurance] Success, orderId: {}", orderId); return new Response<>(1, "Delete Success with Order Id", null); } else { AssuranceServiceImpl.LOGGER.error("[DeleteAssurance] Fail.Assurance not clear, orderId: {}", orderId); return new Response<>(0, "Fail.Assurance not clear", orderId); } }
public Response deleteOrder(String orderId, HttpHeaders headers) { UUID orderUuid = UUID.fromString(orderId); Order order = orderRepository.findById(orderUuid); if (order == null) { OrderServiceImpl.LOGGER.error("Delete order error.Order not found, OrderId: {}",orderId); return new Response<>(0, "Order Not Exist.", null); } else { orderRepository.deleteById(orderUuid); return new Response<>(1, "Delete Order Success", order); } }
public Response findAssuranceById(UUID id, HttpHeaders headers) { Assurance assurance = assuranceRepository.findById(id); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, id: {}", id); return new Response<>(0, "No Content by this id", null); } else { AssuranceServiceImpl.LOGGER.info("Find Assurance, id: {}", id); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response deleteOrder(String orderId, HttpHeaders headers) { UUID orderUuid = UUID.fromString(orderId); Order order = orderRepository.findById(orderUuid); if (order == null) { OrderServiceImpl.LOGGER.error("Delete order error.Order not found, OrderId: {}",orderId); return new Response<>(0, "Order Not Exist.", null); } else { orderRepository.deleteById(orderUuid); return new Response<>(1, "Delete Order Success", order); } }
public Response findAssuranceByOrderId(UUID orderId, HttpHeaders headers) { Assurance assurance = assuranceRepository.findByOrderId(orderId); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, orderId: {}", orderId); return new Response<>(0, "No Content by this orderId", null); } else { AssuranceServiceImpl.LOGGER.info("Find assurance, orderId: {}", orderId); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response deleteOrder(String orderId, HttpHeaders headers) { UUID orderUuid = UUID.fromString(orderId); Order order = orderRepository.findById(orderUuid); if (order == null) { OrderServiceImpl.LOGGER.error("Delete order error.Order not found, OrderId: {}",orderId); return new Response<>(0, "Order Not Exist.", null); } else { orderRepository.deleteById(orderUuid); return new Response<>(1, "Delete Order Success", order); } }
public Response deleteById(UUID assuranceId, HttpHeaders headers) { assuranceRepository.deleteById(assuranceId); Assurance a = assuranceRepository.findById(assuranceId); if (a == null) { AssuranceServiceImpl.LOGGER.info("[DeleteAssurance] Success, assuranceId: {}", assuranceId); return new Response<>(1, "Delete Success with Assurance id", null); } else { AssuranceServiceImpl.LOGGER.error("[DeleteAssurance] Fail.Assurance not clear, assuranceId: {}", assuranceId); return new Response<>(0, "Fail.Assurance not clear", assuranceId); } }
public Response delete(UUID contactsId, HttpHeaders headers) { contactsRepository.deleteById(contactsId); Contacts contacts = contactsRepository.findById(contactsId); if (contacts == null) { ContactsServiceImpl.LOGGER.info("[Contacts-Add&Delete-Service][DeleteContacts] Success."); return new Response<>(1, "Delete success", contactsId); } else { ContactsServiceImpl.LOGGER.error("[Contacts-Add&Delete-Service][DeleteContacts] Fail.Reason not clear, contactsId: {}", contactsId); return new Response<>(0, "Delete failed", contactsId); } }
public Response deleteById(UUID assuranceId, HttpHeaders headers) { assuranceRepository.deleteById(assuranceId); Assurance a = assuranceRepository.findById(assuranceId); if (a == null) { AssuranceServiceImpl.LOGGER.info("[DeleteAssurance] Success, assuranceId: {}", assuranceId); return new Response<>(1, "Delete Success with Assurance id", null); } else { AssuranceServiceImpl.LOGGER.error("[DeleteAssurance] Fail.Assurance not clear, assuranceId: {}", assuranceId); return new Response<>(0, "Fail.Assurance not clear", assuranceId); } }
public Response deleteRoute(String routeId, HttpHeaders headers) { routeRepository.removeRouteById(routeId); Route route = routeRepository.findById(routeId); if (route == null) { return new Response<>(1, "Delete Success", routeId); } else { RouteServiceImpl.LOGGER.error("Delete error.Route not found,RouteId: {}",routeId); return new Response<>(0, "Delete failed, Reason unKnown with this routeId", routeId); } }
public Response deleteByOrderId(UUID orderId, HttpHeaders headers) { assuranceRepository.removeAssuranceByOrderId(orderId); Assurance isExistAssurace = assuranceRepository.findByOrderId(orderId); if (isExistAssurace == null) { AssuranceServiceImpl.LOGGER.info("[DeleteAssurance] Success, orderId: {}", orderId); return new Response<>(1, "Delete Success with Order Id", null); } else { AssuranceServiceImpl.LOGGER.error("[DeleteAssurance] Fail.Assurance not clear, orderId: {}", orderId); return new Response<>(0, "Fail.Assurance not clear", orderId); } }
public Response delete(UUID contactsId, HttpHeaders headers) { contactsRepository.deleteById(contactsId); Contacts contacts = contactsRepository.findById(contactsId); if (contacts == null) { ContactsServiceImpl.LOGGER.info("[Contacts-Add&Delete-Service][DeleteContacts] Success."); return new Response<>(1, "Delete success", contactsId); } else { ContactsServiceImpl.LOGGER.error("[Contacts-Add&Delete-Service][DeleteContacts] Fail.Reason not clear, contactsId: {}", contactsId); return new Response<>(0, "Delete failed", contactsId); } }
public Response deleteRoute(String routeId, HttpHeaders headers) { routeRepository.removeRouteById(routeId); Route route = routeRepository.findById(routeId); if (route == null) { return new Response<>(1, "Delete Success", routeId); } else { RouteServiceImpl.LOGGER.error("Delete error.Route not found,RouteId: {}",routeId); return new Response<>(0, "Delete failed, Reason unKnown with this routeId", routeId); } }
public Response delete(UUID contactsId, HttpHeaders headers) { contactsRepository.deleteById(contactsId); Contacts contacts = contactsRepository.findById(contactsId); if (contacts == null) { ContactsServiceImpl.LOGGER.info("[Contacts-Add&Delete-Service][DeleteContacts] Success."); return new Response<>(1, "Delete success", contactsId); } else { ContactsServiceImpl.LOGGER.error("[Contacts-Add&Delete-Service][DeleteContacts] Fail.Reason not clear, contactsId: {}", contactsId); return new Response<>(0, "Delete failed", contactsId); } }
public Response deleteByOrderId(UUID orderId, HttpHeaders headers) { assuranceRepository.removeAssuranceByOrderId(orderId); Assurance isExistAssurace = assuranceRepository.findByOrderId(orderId); if (isExistAssurace == null) { AssuranceServiceImpl.LOGGER.info("[DeleteAssurance] Success, orderId: {}", orderId); return new Response<>(1, "Delete Success with Order Id", null); } else { AssuranceServiceImpl.LOGGER.error("[DeleteAssurance] Fail.Assurance not clear, orderId: {}", orderId); return new Response<>(0, "Fail.Assurance not clear", orderId); } }
public Response deleteRoute(String routeId, HttpHeaders headers) { routeRepository.removeRouteById(routeId); Route route = routeRepository.findById(routeId); if (route == null) { return new Response<>(1, "Delete Success", routeId); } else { RouteServiceImpl.LOGGER.error("Delete error.Route not found,RouteId: {}",routeId); return new Response<>(0, "Delete failed, Reason unKnown with this routeId", routeId); } }
public Response findAssuranceById(UUID id, HttpHeaders headers) { Assurance assurance = assuranceRepository.findById(id); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, id: {}", id); return new Response<>(0, "No Content by this id", null); } else { AssuranceServiceImpl.LOGGER.info("Find Assurance, id: {}", id); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response deleteRoute(String routeId, HttpHeaders headers) { routeRepository.removeRouteById(routeId); Route route = routeRepository.findById(routeId); if (route == null) { return new Response<>(1, "Delete Success", routeId); } else { RouteServiceImpl.LOGGER.error("Delete error.Route not found,RouteId: {}",routeId); return new Response<>(0, "Delete failed, Reason unKnown with this routeId", routeId); } }
public Response findAssuranceByOrderId(UUID orderId, HttpHeaders headers) { Assurance assurance = assuranceRepository.findByOrderId(orderId); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, orderId: {}", orderId); return new Response<>(0, "No Content by this orderId", null); } else { AssuranceServiceImpl.LOGGER.info("Find assurance, orderId: {}", orderId); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response deleteRoute(String routeId, HttpHeaders headers) { routeRepository.removeRouteById(routeId); Route route = routeRepository.findById(routeId); if (route == null) { return new Response<>(1, "Delete Success", routeId); } else { RouteServiceImpl.LOGGER.error("Delete error.Route not found,RouteId: {}",routeId); return new Response<>(0, "Delete failed, Reason unKnown with this routeId", routeId); } }
public Response query(String name, HttpHeaders headers) { Config config = repository.findByName(name); if (config == null) { logger.warn("Config does not exist, name: {}, message: {}", name, "No content"); return new Response<>(0, "No content", null); } else { logger.info("Query config {} success", name); return new Response<>(1, "Success", config); } }
public Response findAssuranceById(UUID id, HttpHeaders headers) { Assurance assurance = assuranceRepository.findById(id); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, id: {}", id); return new Response<>(0, "No Content by this id", null); } else { AssuranceServiceImpl.LOGGER.info("Find Assurance, id: {}", id); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response query(String name, HttpHeaders headers) { Config config = repository.findByName(name); if (config == null) { logger.warn("Config does not exist, name: {}, message: {}", name, "No content"); return new Response<>(0, "No content", null); } else { logger.info("Query config {} success", name); return new Response<>(1, "Success", config); } }
public Response findAssuranceByOrderId(UUID orderId, HttpHeaders headers) { Assurance assurance = assuranceRepository.findByOrderId(orderId); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, orderId: {}", orderId); return new Response<>(0, "No Content by this orderId", null); } else { AssuranceServiceImpl.LOGGER.info("Find assurance, orderId: {}", orderId); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response findAssuranceById(UUID id, HttpHeaders headers) { Assurance assurance = assuranceRepository.findById(id); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, id: {}", id); return new Response<>(0, "No Content by this id", null); } else { AssuranceServiceImpl.LOGGER.info("Find Assurance, id: {}", id); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response getRouteById(String routeId, HttpHeaders headers) { Route route = routeRepository.findById(routeId); if (route == null) { RouteServiceImpl.LOGGER.error("Find route error.Route not found,RouteId: {}",routeId); return new Response<>(0, "No content with the routeId", null); } else { return new Response<>(1, success, route); } }
public Response findAssuranceById(UUID id, HttpHeaders headers) { Assurance assurance = assuranceRepository.findById(id); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, id: {}", id); return new Response<>(0, "No Content by this id", null); } else { AssuranceServiceImpl.LOGGER.info("Find Assurance, id: {}", id); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response findOrderById(UUID id, HttpHeaders headers) { Order order = orderRepository.findById(id); if (order == null) { OrderServiceImpl.LOGGER.error("No content, id: {}",id); return new Response<>(0, "No Content by this id", null); } else { return new Response<>(1, success, order); } }
public Response findAssuranceByOrderId(UUID orderId, HttpHeaders headers) { Assurance assurance = assuranceRepository.findByOrderId(orderId); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, orderId: {}", orderId); return new Response<>(0, "No Content by this orderId", null); } else { AssuranceServiceImpl.LOGGER.info("Find assurance, orderId: {}", orderId); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response getRouteById(String routeId, HttpHeaders headers) { Route route = routeRepository.findById(routeId); if (route == null) { RouteServiceImpl.LOGGER.error("Find route error.Route not found,RouteId: {}",routeId); return new Response<>(0, "No content with the routeId", null); } else { return new Response<>(1, success, route); } }
public Response findAssuranceByOrderId(UUID orderId, HttpHeaders headers) { Assurance assurance = assuranceRepository.findByOrderId(orderId); if (assurance == null) { AssuranceServiceImpl.LOGGER.warn("No content, orderId: {}", orderId); return new Response<>(0, "No Content by this orderId", null); } else { AssuranceServiceImpl.LOGGER.info("Find assurance, orderId: {}", orderId); return new Response<>(1, "Find Assurance Success", assurance); } }
public Response findOrderById(UUID id, HttpHeaders headers) { Order order = orderRepository.findById(id); if (order == null) { OrderServiceImpl.LOGGER.error("No content, id: {}",id); return new Response<>(0, "No Content by this id", null); } else { return new Response<>(1, success, order); } }
public Response createContacts(Contacts contacts, HttpHeaders headers) { Contacts contactsTemp = contactsRepository.findById(contacts.getId()); if (contactsTemp != null) { ContactsServiceImpl.LOGGER.warn("[Contacts Service][Init Contacts] Already Exists Id: {}", contacts.getId()); return new Response<>(0, "Already Exists", contactsTemp); } else { contactsRepository.save(contacts); return new Response<>(1, "Create Success", null); } }
public Response createFoodStore(FoodStore fs, HttpHeaders headers) { FoodStore fsTemp = foodStoreRepository.findById(fs.getId()); if (fsTemp != null) { FoodMapServiceImpl.LOGGER.error("[Init FoodStore] Already Exists Id: {}", fs.getId()); return new Response<>(0, "Already Exists Id", null); } else { foodStoreRepository.save(fs); return new Response<>(1, "Save Success", fs); } }
public Response createContacts(Contacts contacts, HttpHeaders headers) { Contacts contactsTemp = contactsRepository.findById(contacts.getId()); if (contactsTemp != null) { ContactsServiceImpl.LOGGER.warn("[Contacts Service][Init Contacts] Already Exists Id: {}", contacts.getId()); return new Response<>(0, "Already Exists", contactsTemp); } else { contactsRepository.save(contacts); return new Response<>(1, "Create Success", null); } }
public TrainFood createTrainFood(TrainFood tf, HttpHeaders headers) { TrainFood tfTemp = trainFoodRepository.findById(tf.getId()); if (tfTemp != null) { FoodMapServiceImpl.LOGGER.error("[Init TrainFood] Already Exists Id: {}", tf.getId()); } else { trainFoodRepository.save(tf); } return tf; }
public Response findContactsById(UUID id, HttpHeaders headers) { LOGGER.info("FIND CONTACTS BY ID: " + id); Contacts contacts = contactsRepository.findById(id); if (contacts != null) { return new Response<>(1, success, contacts); } else { LOGGER.error("No contacts according to contactsId: {}", id); return new Response<>(0, "No contacts according to contacts id", null); } }
public Response queryByOrderId(UUID orderId, HttpHeaders headers) { ConsignRecord consignRecords = repository.findByOrderId(orderId); if (consignRecords != null ) { return new Response<>(1, "Find consign by order id success", consignRecords); }else { LOGGER.warn("No Content according to orderId: {}", orderId); return new Response<>(0, "No Content according to order id", null); } }
public Response queryAll(HttpHeaders headers) { List<Config> configList = repository.findAll(); if (configList != null && !configList.isEmpty()) { logger.info("Query all config success"); return new Response<>(1, "Find all config success", configList); } else { logger.warn("Query config: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response queryAll(HttpHeaders headers) { List<Config> configList = repository.findAll(); if (configList != null && !configList.isEmpty()) { logger.info("Query all config success"); return new Response<>(1, "Find all config success", configList); } else { logger.warn("Query config: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response queryAll(HttpHeaders headers) { List<Config> configList = repository.findAll(); if (configList != null && !configList.isEmpty()) { logger.info("Query all config success"); return new Response<>(1, "Find all config success", configList); } else { logger.warn("Query config: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response queryAll(HttpHeaders headers) { List<Config> configList = repository.findAll(); if (configList != null && !configList.isEmpty()) { logger.info("Query all config success"); return new Response<>(1, "Find all config success", configList); } else { logger.warn("Query config: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response queryAll(HttpHeaders headers) { List<Config> configList = repository.findAll(); if (configList != null && !configList.isEmpty()) { logger.info("Query all config success"); return new Response<>(1, "Find all config success", configList); } else { logger.warn("Query config: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers) { List<Station> stations = repository.findAll(); if (stations != null && !stations.isEmpty()) { return new Response<>(1, "Find all content", stations); } else { StationServiceImpl.LOGGER.warn("Query stations warn.Find all stations: {}","No content"); return new Response<>(0, "No content", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response listTrainFood(HttpHeaders headers) { List<TrainFood> trainFoodList = trainFoodRepository.findAll(); if (trainFoodList != null && !trainFoodList.isEmpty()) { return new Response<>(1, success, trainFoodList); } else { FoodMapServiceImpl.LOGGER.error("List train food error: {}", noContent); return new Response<>(0, noContent, null); } }
public Response getAllRoutes(HttpHeaders headers) { ArrayList<Route> routes = routeRepository.findAll(); if (routes != null && !routes.isEmpty()) { return new Response<>(1, success, routes); } else { RouteServiceImpl.LOGGER.warn("Find all routes warn: {}","No Content"); return new Response<>(0, "No Content", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response query(HttpHeaders headers){ List<Payment> payments = paymentRepository.findAll(); if(payments!= null && !payments.isEmpty()){ return new Response<>(1,"Query Success", payments); }else { PaymentServiceImpl.LOGGER.warn("Find all payment warn: {}","No content"); return new Response<>(0, "No Content", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response getAllOrders(HttpHeaders headers) { ArrayList<Order> orders = orderRepository.findAll(); if (orders != null && !orders.isEmpty()) { return new Response<>(1, "Success.", orders); } else { OrderServiceImpl.LOGGER.warn("Find all orders warn: {}","No content"); return new Response<>(0, "No Content.", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response queryAddMoney(HttpHeaders headers) { List<Money> monies = addMoneyRepository.findAll(); if (monies != null && !monies.isEmpty()) { return new Response<>(1, "Query Money Success", null); } else { LOGGER.error("Query money failed"); return new Response<>(0, "Query money failed", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response queryPayment(HttpHeaders headers) { List<Payment> payments = paymentRepository.findAll(); if (payments != null && !payments.isEmpty()) { return new Response<>(1, "Query Payment Success", payments); }else { LOGGER.error("Query payment failed"); return new Response<>(0, "Query Payment Failed", null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response listTrainFood(HttpHeaders headers) { List<TrainFood> trainFoodList = trainFoodRepository.findAll(); if (trainFoodList != null && !trainFoodList.isEmpty()) { return new Response<>(1, success, trainFoodList); } else { FoodMapServiceImpl.LOGGER.error("List train food error: {}", noContent); return new Response<>(0, noContent, null); } }
public Response findAllFoodOrder(HttpHeaders headers) { List<FoodOrder> foodOrders = foodOrderRepository.findAll(); if (foodOrders != null && !foodOrders.isEmpty()) { return new Response<>(1, success, foodOrders); } else { FoodServiceImpl.LOGGER.error("Find all food order error: {}", "No Content"); return new Response<>(0, "No Content", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response listTrainFood(HttpHeaders headers) { List<TrainFood> trainFoodList = trainFoodRepository.findAll(); if (trainFoodList != null && !trainFoodList.isEmpty()) { return new Response<>(1, success, trainFoodList); } else { FoodMapServiceImpl.LOGGER.error("List train food error: {}", noContent); return new Response<>(0, noContent, null); } }
public Response getAllContacts(HttpHeaders headers) { ArrayList<Contacts> contacts = contactsRepository.findAll(); if (contacts != null && !contacts.isEmpty()) { return new Response<>(1, success, contacts); } else { LOGGER.error("Get all contacts error, message: {}", "No content"); return new Response<>(0, "No content", null); } }
public Response listFoodStores(HttpHeaders headers) { List<FoodStore> foodStores = foodStoreRepository.findAll(); if (foodStores != null && !foodStores.isEmpty()) { return new Response<>(1, success, foodStores); } else { FoodMapServiceImpl.LOGGER.error("List food stores error: {}", "Food store is empty"); return new Response<>(0, "Food store is empty", null); } }
public Response listFoodStoresByStationId(String stationId, HttpHeaders headers) { List<FoodStore> foodStoreList = foodStoreRepository.findByStationId(stationId); if (foodStoreList != null && !foodStoreList.isEmpty()) { return new Response<>(1, success, foodStoreList); } else { FoodMapServiceImpl.LOGGER.error("List food stores by station id error: {}, stationId: {}", "Food store is empty", stationId); return new Response<>(0, "Food store is empty", null); } }
public Response queryByConsignee(String consignee, HttpHeaders headers) { List<ConsignRecord> consignRecords = repository.findByConsignee(consignee); if (consignRecords != null && !consignRecords.isEmpty()) { return new Response<>(1, "Find consign by consignee success", consignRecords); }else { LOGGER.warn("No Content according to consignee: {}", consignee); return new Response<>(0, "No Content according to consignee", null); } }
public Response listFoodStoresByStationId(String stationId, HttpHeaders headers) { List<FoodStore> foodStoreList = foodStoreRepository.findByStationId(stationId); if (foodStoreList != null && !foodStoreList.isEmpty()) { return new Response<>(1, success, foodStoreList); } else { FoodMapServiceImpl.LOGGER.error("List food stores by station id error: {}, stationId: {}", "Food store is empty", stationId); return new Response<>(0, "Food store is empty", null); } }
public Response queryByAccountId(UUID accountId, HttpHeaders headers) { List<ConsignRecord> consignRecords = repository.findByAccountId(accountId); if (consignRecords != null && !consignRecords.isEmpty()) { return new Response<>(1, "Find consign by account id success", consignRecords); }else { LOGGER.warn("No Content according to accountId: {}", accountId); return new Response<>(0, "No Content according to accountId", null); } }
public static LoginUser getUser() { ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); LoginUser loginUser = new LoginUser(); if (servletRequestAttributes != null) { HttpServletRequest request = servletRequestAttributes.getRequest(); Map jwt = JSONObject.parseObject(EncryptUtil.decodeBase64(request.getHeader("jsonToken")), Map.class); if (jwt.get("mobile").toString() != null && !"".equals(jwt.get("mobile").toString())) { loginUser.setMobile(jwt.get("mobile").toString()); } if (jwt.get("client_id").toString() != null && !"".equals(jwt.get("client_id").toString())) { loginUser.setClientId(jwt.get("client_id").toString()); } } return loginUser; }
public static LoginUser getUser() { ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); LoginUser loginUser = new LoginUser(); if (servletRequestAttributes != null) { HttpServletRequest request = servletRequestAttributes.getRequest(); Map jwt = JSONObject.parseObject(EncryptUtil.decodeBase64(request.getHeader("jsonToken")), Map.class); if (jwt.get("mobile").toString() != null && !"".equals(jwt.get("mobile").toString())) { loginUser.setMobile(jwt.get("mobile").toString()); } if (jwt.get("client_id").toString() != null && !"".equals(jwt.get("client_id").toString())) { loginUser.setClientId(jwt.get("client_id").toString()); } } return loginUser; }
private List<RepaymentPlanDTO> convertEntityList2DtoList(List<RepaymentPlan> repaymentPlanList) { if (repaymentPlanList == null) { return null; } List<RepaymentPlanDTO> repaymentPlanDTOList = new ArrayList<>(); repaymentPlanList.forEach(repaymentPlan -> { RepaymentPlanDTO repaymentPlanDTO = new RepaymentPlanDTO(); BeanUtils.copyProperties(repaymentPlan, repaymentPlanDTO); repaymentPlanDTOList.add(repaymentPlanDTO); }); return repaymentPlanDTOList; }
public List<TenderOverviewDTO> queryTendersByProjectId(Long id) { List<Tender> tenderList = tenderMapper.selectList(new LambdaQueryWrapper<Tender>().eq(Tender::getProjectId, id)); List<TenderOverviewDTO> tenderOverviewDTOList = new ArrayList<>(); tenderList.forEach(tender -> { TenderOverviewDTO tenderOverviewDTO = new TenderOverviewDTO(); BeanUtils.copyProperties(tender, tenderOverviewDTO); tenderOverviewDTO.setConsumerUsername(CommonUtil.hiddenMobile(tenderOverviewDTO.getConsumerUsername())); tenderOverviewDTOList.add(tenderOverviewDTO); }); return tenderOverviewDTOList; }
public RocketMQLocalTransactionState executeLocalTransaction(Message message, Object o) { // 解析消息 final JSONObject jsonObject = JSON.parseObject(new String((byte[]) message.getPayload())); RepaymentPlan repaymentPlan = JSONObject.parseObject(jsonObject.getString("repaymentPlan"), RepaymentPlan.class); RepaymentRequest repaymentRequest = JSONObject.parseObject(jsonObject.getString("repaymentRequest"), RepaymentRequest.class); // 执行本地事务 final Boolean isCommit = repaymentService.confirmRepayment(repaymentPlan, repaymentRequest); // 返回结果 if (isCommit) { return RocketMQLocalTransactionState.COMMIT; } else { return RocketMQLocalTransactionState.ROLLBACK; } }
public RocketMQLocalTransactionState executeLocalTransaction(Message message, Object o) { // 解析消息 final JSONObject jsonObject = JSON.parseObject(new String((byte[]) message.getPayload())); Project project = JSONObject.parseObject(jsonObject.getString("project"), Project.class); // 执行本地事务 Boolean result = projectService.updateProjectStatusAndStartRepayment(project); // 返回执行结果 if (result) { return RocketMQLocalTransactionState.COMMIT; } else { return RocketMQLocalTransactionState.ROLLBACK; } }
public RocketMQLocalTransactionState checkLocalTransaction(Message message) { // 解析消息 final JSONObject jsonObject = JSON.parseObject(new String((byte[]) message.getPayload())); RepaymentPlan repaymentPlan = JSONObject.parseObject(jsonObject.getString("repaymentPlan"), RepaymentPlan.class); // 事务状态回查 RepaymentPlan newRepaymentPlan = repaymentPlanMapper.selectById(repaymentPlan.getId()); // 返回结果 if (newRepaymentPlan != null && "1".equals(newRepaymentPlan.getRepaymentStatus())) { return RocketMQLocalTransactionState.COMMIT; } else { return RocketMQLocalTransactionState.ROLLBACK; } }
public RocketMQLocalTransactionState checkLocalTransaction(Message message) { // 解析消息 final JSONObject jsonObject = JSON.parseObject(new String((byte[]) message.getPayload())); Project project = JSONObject.parseObject(jsonObject.getString("project"), Project.class); // 查询标的状态 Project pro = projectMapper.selectById(project.getId()); // 返回结果 if (pro.getProjectStatus().equals(ProjectCode.REPAYING.getCode())) { return RocketMQLocalTransactionState.COMMIT; } else { return RocketMQLocalTransactionState.ROLLBACK; } }
private static List<MenuVO> recursionTableList(Long parentId, List<SysMenu> menuList) { List<MenuVO> menuTableList = new ArrayList<>(); Optional.ofNullable(menuList).orElse(new ArrayList<>()) .stream() .filter(menu -> menu.getParentId().equals(parentId)) .forEach(menu -> { MenuVO menuVO = new MenuVO(); BeanUtil.copyProperties(menu, menuVO); List<MenuVO> children = recursionTableList(menu.getId(), menuList); if (CollectionUtil.isNotEmpty(children)) { menuVO.setChildren(children); } menuTableList.add(menuVO); }); return menuTableList; }
private static List<CategoryVO> recursionTree(Long parentId, List<PmsCategory> categoryList) { List<CategoryVO> list = new ArrayList<>(); Optional.ofNullable(categoryList) .ifPresent(categories -> categories.stream().filter(category -> category.getParentId().equals(parentId)) .forEach(category -> { CategoryVO categoryVO = new CategoryVO(); BeanUtil.copyProperties(category, categoryVO); List<CategoryVO> children = recursionTree(category.getId(), categoryList); categoryVO.setChildren(children); list.add(categoryVO); })); return list; }
public static List<DeptVO> recursionTableList(Long parentId, List<SysDept> deptList) { List<DeptVO> deptTableList = new ArrayList<>(); Optional.ofNullable(deptList).orElse(new ArrayList<>()) .stream() .filter(dept -> dept.getParentId().equals(parentId)) .forEach(dept -> { DeptVO deptVO = new DeptVO(); BeanUtil.copyProperties(dept, deptVO); List<DeptVO> children = recursionTableList(dept.getId(), deptList); deptVO.setChildren(children); deptTableList.add(deptVO); }); return deptTableList; }
private static List<CategoryVO> recursionTree(Long parentId, List<PmsCategory> categoryList) { List<CategoryVO> list = new ArrayList<>(); Optional.ofNullable(categoryList) .ifPresent(categories -> categories.stream().filter(category -> category.getParentId().equals(parentId)) .forEach(category -> { CategoryVO categoryVO = new CategoryVO(); BeanUtil.copyProperties(category, categoryVO); List<CategoryVO> children = recursionTree(category.getId(), categoryList); categoryVO.setChildren(children); list.add(categoryVO); })); return list; }
public Object create(CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTag.setCtime(time); cmsTag.setOrders(time); int count = cmsTagService.insertSelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsPermission.setCtime(time); upmsPermission.setOrders(time); int count = upmsPermissionService.insertSelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsPermission.setCtime(time); upmsPermission.setOrders(time); int count = upmsPermissionService.insertSelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsPage.setCtime(time); cmsPage.setOrders(time); int count = cmsPageService.insertSelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsCategory.setCtime(time); cmsCategory.setOrders(time); int count = cmsCategoryService.insertSelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsPermission.setCtime(time); upmsPermission.setOrders(time); int count = upmsPermissionService.insertSelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsArticle.setArticleId(id); int count = cmsArticleService.updateByPrimaryKeySelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsCategory.setCategoryId(id); int count = cmsCategoryService.updateByPrimaryKeySelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsMenu.setMenuId(id); int count = cmsMenuService.updateByPrimaryKeySelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsPage.setPageId(id); int count = cmsPageService.updateByPrimaryKeySelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsSetting cmsSetting) { ComplexResult result = FluentValidator.checkAll() .on(cmsSetting.getSettingKey(), new LengthValidator(1, 20, "键")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsSetting.setSettingId(id); int count = cmsSettingService.updateByPrimaryKeySelective(cmsSetting); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTag.setTagId(id); int count = cmsTagService.updateByPrimaryKeySelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTopic.setTopicId(id); int count = cmsTopicService.updateByPrimaryKeySelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsArticle.setArticleId(id); int count = cmsArticleService.updateByPrimaryKeySelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsCategory.setCategoryId(id); int count = cmsCategoryService.updateByPrimaryKeySelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsMenu.setMenuId(id); int count = cmsMenuService.updateByPrimaryKeySelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsPage.setPageId(id); int count = cmsPageService.updateByPrimaryKeySelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsSetting cmsSetting) { ComplexResult result = FluentValidator.checkAll() .on(cmsSetting.getSettingKey(), new LengthValidator(1, 20, "键")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsSetting.setSettingId(id); int count = cmsSettingService.updateByPrimaryKeySelective(cmsSetting); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTag.setTagId(id); int count = cmsTagService.updateByPrimaryKeySelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTopic.setTopicId(id); int count = cmsTopicService.updateByPrimaryKeySelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsMenu.setOrders(time); int count = cmsMenuService.insertSelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTopic.setCtime(time); int count = cmsTopicService.insertSelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsSettingExample cmsSettingExample = new CmsSettingExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsSettingExample.setOrderByClause(StringUtil.humpToLine(sort) + " " + order); } List<CmsSetting> rows = cmsSettingService.selectByExampleForOffsetPage(cmsSettingExample, offset, limit); long total = cmsSettingService.countByExample(cmsSettingExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsLogExample upmsLogExample = new UpmsLogExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsLogExample.setOrderByClause(StringUtil.humpToLine(sort) + " " + order); } if (StringUtils.isNotBlank(search)) { upmsLogExample.or() .andDescriptionLike("%" + search + "%"); } List<UpmsLog> rows = upmsLogService.selectByExampleForOffsetPage(upmsLogExample, offset, limit); long total = upmsLogService.countByExample(upmsLogExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsCommentExample cmsCommentExample = new CmsCommentExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsCommentExample.setOrderByClause(sort + " " + order); } List<CmsComment> rows = cmsCommentService.selectByExampleWithBLOBsForOffsetPage(cmsCommentExample, offset, limit); long total = cmsCommentService.countByExample(cmsCommentExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsTagExample cmsTagExample = new CmsTagExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsTagExample.setOrderByClause(sort + " " + order); } List<CmsTag> rows = cmsTagService.selectByExampleForOffsetPage(cmsTagExample, offset, limit); long total = cmsTagService.countByExample(cmsTagExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsCategoryExample cmsCategoryExample = new CmsCategoryExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsCategoryExample.setOrderByClause(sort + " " + order); } List<CmsCategory> rows = cmsCategoryService.selectByExampleForOffsetPage(cmsCategoryExample, offset, limit); long total = cmsCategoryService.countByExample(cmsCategoryExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsPageExample cmsPageExample = new CmsPageExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsPageExample.setOrderByClause(sort + " " + order); } List<CmsPage> rows = cmsPageService.selectByExampleForOffsetPage(cmsPageExample, offset, limit); long total = cmsPageService.countByExample(cmsPageExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsMenuExample cmsMenuExample = new CmsMenuExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsMenuExample.setOrderByClause(sort + " " + order); } List<CmsMenu> rows = cmsMenuService.selectByExampleForOffsetPage(cmsMenuExample, offset, limit); long total = cmsMenuService.countByExample(cmsMenuExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsTopicExample cmsTopicExample = new CmsTopicExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsTopicExample.setOrderByClause(sort + " " + order); } List<CmsTopic> rows = cmsTopicService.selectByExampleForOffsetPage(cmsTopicExample, offset, limit); long total = cmsTopicService.countByExample(cmsTopicExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsArticleExample cmsArticleExample = new CmsArticleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsArticleExample.setOrderByClause(sort + " " + order); } List<CmsArticle> rows = cmsArticleService.selectByExampleForOffsetPage(cmsArticleExample, offset, limit); long total = cmsArticleService.countByExample(cmsArticleExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsOrganizationExample upmsOrganizationExample = new UpmsOrganizationExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsOrganizationExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsOrganizationExample.or() .andNameLike("%" + search + "%"); } List<UpmsOrganization> rows = upmsOrganizationService.selectByExampleForOffsetPage(upmsOrganizationExample, offset, limit); long total = upmsOrganizationService.countByExample(upmsOrganizationExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsCommentExample cmsCommentExample = new CmsCommentExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsCommentExample.setOrderByClause(sort + " " + order); } List<CmsComment> rows = cmsCommentService.selectByExampleWithBLOBsForOffsetPage(cmsCommentExample, offset, limit); long total = cmsCommentService.countByExample(cmsCommentExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsCommentExample cmsCommentExample = new CmsCommentExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsCommentExample.setOrderByClause(sort + " " + order); } List<CmsComment> rows = cmsCommentService.selectByExampleWithBLOBsForOffsetPage(cmsCommentExample, offset, limit); long total = cmsCommentService.countByExample(cmsCommentExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsTagExample cmsTagExample = new CmsTagExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsTagExample.setOrderByClause(sort + " " + order); } List<CmsTag> rows = cmsTagService.selectByExampleForOffsetPage(cmsTagExample, offset, limit); long total = cmsTagService.countByExample(cmsTagExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsCategoryExample cmsCategoryExample = new CmsCategoryExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsCategoryExample.setOrderByClause(sort + " " + order); } List<CmsCategory> rows = cmsCategoryService.selectByExampleForOffsetPage(cmsCategoryExample, offset, limit); long total = cmsCategoryService.countByExample(cmsCategoryExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsPageExample cmsPageExample = new CmsPageExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsPageExample.setOrderByClause(sort + " " + order); } List<CmsPage> rows = cmsPageService.selectByExampleForOffsetPage(cmsPageExample, offset, limit); long total = cmsPageService.countByExample(cmsPageExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsMenuExample cmsMenuExample = new CmsMenuExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsMenuExample.setOrderByClause(sort + " " + order); } List<CmsMenu> rows = cmsMenuService.selectByExampleForOffsetPage(cmsMenuExample, offset, limit); long total = cmsMenuService.countByExample(cmsMenuExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsTopicExample cmsTopicExample = new CmsTopicExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsTopicExample.setOrderByClause(sort + " " + order); } List<CmsTopic> rows = cmsTopicService.selectByExampleForOffsetPage(cmsTopicExample, offset, limit); long total = cmsTopicService.countByExample(cmsTopicExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsRoleExample upmsRoleExample = new UpmsRoleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsRoleExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsRoleExample.or() .andTitleLike("%" + search + "%"); } List<UpmsRole> rows = upmsRoleService.selectByExampleForOffsetPage(upmsRoleExample, offset, limit); long total = upmsRoleService.countByExample(upmsRoleExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsArticleExample cmsArticleExample = new CmsArticleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsArticleExample.setOrderByClause(sort + " " + order); } List<CmsArticle> rows = cmsArticleService.selectByExampleForOffsetPage(cmsArticleExample, offset, limit); long total = cmsArticleService.countByExample(cmsArticleExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsTagExample cmsTagExample = new CmsTagExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsTagExample.setOrderByClause(sort + " " + order); } List<CmsTag> rows = cmsTagService.selectByExampleForOffsetPage(cmsTagExample, offset, limit); long total = cmsTagService.countByExample(cmsTagExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsCategoryExample cmsCategoryExample = new CmsCategoryExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsCategoryExample.setOrderByClause(sort + " " + order); } List<CmsCategory> rows = cmsCategoryService.selectByExampleForOffsetPage(cmsCategoryExample, offset, limit); long total = cmsCategoryService.countByExample(cmsCategoryExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsPageExample cmsPageExample = new CmsPageExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsPageExample.setOrderByClause(sort + " " + order); } List<CmsPage> rows = cmsPageService.selectByExampleForOffsetPage(cmsPageExample, offset, limit); long total = cmsPageService.countByExample(cmsPageExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsMenuExample cmsMenuExample = new CmsMenuExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsMenuExample.setOrderByClause(sort + " " + order); } List<CmsMenu> rows = cmsMenuService.selectByExampleForOffsetPage(cmsMenuExample, offset, limit); long total = cmsMenuService.countByExample(cmsMenuExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsTopicExample cmsTopicExample = new CmsTopicExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsTopicExample.setOrderByClause(sort + " " + order); } List<CmsTopic> rows = cmsTopicService.selectByExampleForOffsetPage(cmsTopicExample, offset, limit); long total = cmsTopicService.countByExample(cmsTopicExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { CmsArticleExample cmsArticleExample = new CmsArticleExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { cmsArticleExample.setOrderByClause(sort + " " + order); } List<CmsArticle> rows = cmsArticleService.selectByExampleForOffsetPage(cmsArticleExample, offset, limit); long total = cmsArticleService.countByExample(cmsArticleExample); Map<String, Object> result = new HashMap<>(2); result.put("rows", rows); result.put("total", total); return result; }
public Object list( @RequestParam(required = false, defaultValue = "0", value = "offset") int offset, @RequestParam(required = false, defaultValue = "10", value = "limit") int limit, @RequestParam(required = false, defaultValue = "", value = "search") String search, @RequestParam(required = false, value = "sort") String sort, @RequestParam(required = false, value = "order") String order) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) { upmsSystemExample.setOrderByClause(sort + " " + order); } if (StringUtils.isNotBlank(search)) { upmsSystemExample.or() .andTitleLike("%" + search + "%"); } List<UpmsSystem> rows = upmsSystemService.selectByExampleForOffsetPage(upmsSystemExample, offset, limit); long total = upmsSystemService.countByExample(upmsSystemExample); Map<String, Object> result = new HashMap<>(); result.put("rows", rows); result.put("total", total); return result; }
public Object create(CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsArticle.setCtime(time); cmsArticle.setOrders(time); cmsArticle.setReadnumber(0); int count = cmsArticleService.insertSelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsSystem.setCtime(time); upmsSystem.setOrders(time); int count = upmsSystemService.insertSelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsRole.setCtime(time); upmsRole.setOrders(time); int count = upmsRoleService.insertSelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsArticle.setCtime(time); cmsArticle.setOrders(time); cmsArticle.setReadnumber(0); int count = cmsArticleService.insertSelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsArticle.setCtime(time); cmsArticle.setOrders(time); cmsArticle.setReadnumber(0); int count = cmsArticleService.insertSelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsPermission.setCtime(time); upmsPermission.setOrders(time); int count = upmsPermissionService.insertSelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsArticle.setCtime(time); cmsArticle.setOrders(time); cmsArticle.setReadnumber(0); int count = cmsArticleService.insertSelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTag.setCtime(time); cmsTag.setOrders(time); int count = cmsTagService.insertSelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsSystem.setCtime(time); upmsSystem.setOrders(time); int count = upmsSystemService.insertSelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsSystem.setCtime(time); upmsSystem.setOrders(time); int count = upmsSystemService.insertSelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsPage.setCtime(time); cmsPage.setOrders(time); int count = cmsPageService.insertSelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsCategory.setCtime(time); cmsCategory.setOrders(time); int count = cmsCategoryService.insertSelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsSystem.setCtime(time); upmsSystem.setOrders(time); int count = upmsSystemService.insertSelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsMenu.setOrders(time); int count = cmsMenuService.insertSelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsSystem.setCtime(time); upmsSystem.setOrders(time); int count = upmsSystemService.insertSelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTopic.setCtime(time); int count = cmsTopicService.insertSelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsSystem.setCtime(time); upmsSystem.setOrders(time); int count = upmsSystemService.insertSelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsRole.setCtime(time); upmsRole.setOrders(time); int count = upmsRoleService.insertSelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTag.setCtime(time); cmsTag.setOrders(time); int count = cmsTagService.insertSelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTag.setCtime(time); cmsTag.setOrders(time); int count = cmsTagService.insertSelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsRole.setCtime(time); upmsRole.setOrders(time); int count = upmsRoleService.insertSelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsPage.setCtime(time); cmsPage.setOrders(time); int count = cmsPageService.insertSelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsPage.setCtime(time); cmsPage.setOrders(time); int count = cmsPageService.insertSelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsCategory.setCtime(time); cmsCategory.setOrders(time); int count = cmsCategoryService.insertSelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsRole.setCtime(time); upmsRole.setOrders(time); int count = upmsRoleService.insertSelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsCategory.setCtime(time); cmsCategory.setOrders(time); int count = cmsCategoryService.insertSelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsRole.setCtime(time); upmsRole.setOrders(time); int count = upmsRoleService.insertSelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsMenu.setOrders(time); int count = cmsMenuService.insertSelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTopic.setCtime(time); int count = cmsTopicService.insertSelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsRole.setCtime(time); upmsRole.setOrders(time); int count = upmsRoleService.insertSelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsMenu.setOrders(time); int count = cmsMenuService.insertSelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsPermission.setCtime(time); upmsPermission.setOrders(time); int count = upmsPermissionService.insertSelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTopic.setCtime(time); int count = cmsTopicService.insertSelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsPermission.setCtime(time); upmsPermission.setOrders(time); int count = upmsPermissionService.insertSelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsMenu.setOrders(time); int count = cmsMenuService.insertSelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTopic.setCtime(time); int count = cmsTopicService.insertSelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsPermission upmsPermission) { ComplexResult result = FluentValidator.checkAll() .on(upmsPermission.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsPermission.setPermissionId(id); int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsMenu.setOrders(time); int count = cmsMenuService.insertSelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object create(CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); cmsTopic.setCtime(time); int count = cmsTopicService.insertSelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsOrganization.setOrganizationId(id); int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsArticle.setArticleId(id); int count = cmsArticleService.updateByPrimaryKeySelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsCategory.setCategoryId(id); int count = cmsCategoryService.updateByPrimaryKeySelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsMenu.setMenuId(id); int count = cmsMenuService.updateByPrimaryKeySelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsPage.setPageId(id); int count = cmsPageService.updateByPrimaryKeySelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsSetting cmsSetting) { ComplexResult result = FluentValidator.checkAll() .on(cmsSetting.getSettingKey(), new LengthValidator(1, 20, "键")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsSetting.setSettingId(id); int count = cmsSettingService.updateByPrimaryKeySelective(cmsSetting); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTag.setTagId(id); int count = cmsTagService.updateByPrimaryKeySelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTopic.setTopicId(id); int count = cmsTopicService.updateByPrimaryKeySelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object create(UpmsOrganization upmsOrganization) { ComplexResult result = FluentValidator.checkAll() .on(upmsOrganization.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } long time = System.currentTimeMillis(); upmsOrganization.setCtime(time); int count = upmsOrganizationService.insertSelective(upmsOrganization); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsArticle.setArticleId(id); int count = cmsArticleService.updateByPrimaryKeySelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsCategory.setCategoryId(id); int count = cmsCategoryService.updateByPrimaryKeySelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsMenu.setMenuId(id); int count = cmsMenuService.updateByPrimaryKeySelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsPage.setPageId(id); int count = cmsPageService.updateByPrimaryKeySelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsSetting cmsSetting) { ComplexResult result = FluentValidator.checkAll() .on(cmsSetting.getSettingKey(), new LengthValidator(1, 20, "键")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsSetting.setSettingId(id); int count = cmsSettingService.updateByPrimaryKeySelective(cmsSetting); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTag.setTagId(id); int count = cmsTagService.updateByPrimaryKeySelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTopic.setTopicId(id); int count = cmsTopicService.updateByPrimaryKeySelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsUser upmsUser) { ComplexResult result = FluentValidator.checkAll() .on(upmsUser.getUsername(), new LengthValidator(1, 20, "帐号")) .on(upmsUser.getRealname(), new NotNullValidator("姓名")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } // 不允许直接改密码 upmsUser.setPassword(null); upmsUser.setUserId(id); int count = upmsUserService.updateByPrimaryKeySelective(upmsUser); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsArticle.setArticleId(id); int count = cmsArticleService.updateByPrimaryKeySelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsCategory.setCategoryId(id); int count = cmsCategoryService.updateByPrimaryKeySelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsMenu.setMenuId(id); int count = cmsMenuService.updateByPrimaryKeySelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsPage.setPageId(id); int count = cmsPageService.updateByPrimaryKeySelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsSetting cmsSetting) { ComplexResult result = FluentValidator.checkAll() .on(cmsSetting.getSettingKey(), new LengthValidator(1, 20, "键")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsSetting.setSettingId(id); int count = cmsSettingService.updateByPrimaryKeySelective(cmsSetting); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTag.setTagId(id); int count = cmsTagService.updateByPrimaryKeySelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTopic.setTopicId(id); int count = cmsTopicService.updateByPrimaryKeySelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsSystem upmsSystem) { ComplexResult result = FluentValidator.checkAll() .on(upmsSystem.getTitle(), new LengthValidator(1, 20, "标题")) .on(upmsSystem.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsSystem.setSystemId(id); int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsArticle cmsArticle) { ComplexResult result = FluentValidator.checkAll() .on(cmsArticle.getTitle(), new LengthValidator(1, 200, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsArticle.setArticleId(id); int count = cmsArticleService.updateByPrimaryKeySelective(cmsArticle); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsCategory cmsCategory) { ComplexResult result = FluentValidator.checkAll() .on(cmsCategory.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsCategory.setCategoryId(id); int count = cmsCategoryService.updateByPrimaryKeySelective(cmsCategory); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsMenu cmsMenu) { ComplexResult result = FluentValidator.checkAll() .on(cmsMenu.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsMenu.setMenuId(id); int count = cmsMenuService.updateByPrimaryKeySelective(cmsMenu); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsPage cmsPage) { ComplexResult result = FluentValidator.checkAll() .on(cmsPage.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsPage.setPageId(id); int count = cmsPageService.updateByPrimaryKeySelective(cmsPage); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsSetting cmsSetting) { ComplexResult result = FluentValidator.checkAll() .on(cmsSetting.getSettingKey(), new LengthValidator(1, 20, "键")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsSetting.setSettingId(id); int count = cmsSettingService.updateByPrimaryKeySelective(cmsSetting); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTag cmsTag) { ComplexResult result = FluentValidator.checkAll() .on(cmsTag.getName(), new LengthValidator(1, 20, "名称")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTag.setTagId(id); int count = cmsTagService.updateByPrimaryKeySelective(cmsTag); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, CmsTopic cmsTopic) { ComplexResult result = FluentValidator.checkAll() .on(cmsTopic.getTitle(), new LengthValidator(1, 100, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors()); } cmsTopic.setTopicId(id); int count = cmsTopicService.updateByPrimaryKeySelective(cmsTopic); return new CmsResult(CmsResultConstant.SUCCESS, count); }
public Object update(@PathVariable("id") int id, UpmsRole upmsRole) { ComplexResult result = FluentValidator.checkAll() .on(upmsRole.getName(), new LengthValidator(1, 20, "名称")) .on(upmsRole.getTitle(), new LengthValidator(1, 20, "标题")) .doValidate() .result(ResultCollectors.toComplex()); if (!result.isSuccess()) { return new UpmsResult(UpmsResultConstant.INVALID_LENGTH, result.getErrors()); } upmsRole.setRoleId(id); int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole); return new UpmsResult(UpmsResultConstant.SUCCESS, count); }
public String update(@PathVariable("id") int id, ModelMap modelMap) { CmsTopicExample cmsTopicExample = new CmsTopicExample(); cmsTopicExample.setOrderByClause("ctime desc"); List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample); CmsArticle article = cmsArticleService.selectByPrimaryKey(id); modelMap.put("cmsTopics", cmsTopics); modelMap.put("article", article); return "/manage/article/update.jsp"; }
public String role(@PathVariable("id") int id, ModelMap modelMap) { // 所有角色 List<UpmsRole> upmsRoles = upmsRoleService.selectByExample(new UpmsRoleExample()); // 用户拥有角色 UpmsUserRoleExample upmsUserRoleExample = new UpmsUserRoleExample(); upmsUserRoleExample.createCriteria() .andUserIdEqualTo(id); List<UpmsUserRole> upmsUserRoles = upmsUserRoleService.selectByExample(upmsUserRoleExample); modelMap.put("upmsRoles", upmsRoles); modelMap.put("upmsUserRoles", upmsUserRoles); return "/manage/user/role.jsp"; }
public String update(@PathVariable("id") int id, ModelMap modelMap) { CmsTopicExample cmsTopicExample = new CmsTopicExample(); cmsTopicExample.setOrderByClause("ctime desc"); List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample); CmsArticle article = cmsArticleService.selectByPrimaryKey(id); modelMap.put("cmsTopics", cmsTopics); modelMap.put("article", article); return "/manage/article/update.jsp"; }
public String organization(@PathVariable("id") int id, ModelMap modelMap) { // 所有组织 List<UpmsOrganization> upmsOrganizations = upmsOrganizationService.selectByExample(new UpmsOrganizationExample()); // 用户拥有组织 UpmsUserOrganizationExample upmsUserOrganizationExample = new UpmsUserOrganizationExample(); upmsUserOrganizationExample.createCriteria() .andUserIdEqualTo(id); List<UpmsUserOrganization> upmsUserOrganizations = upmsUserOrganizationService.selectByExample(upmsUserOrganizationExample); modelMap.put("upmsOrganizations", upmsOrganizations); modelMap.put("upmsUserOrganizations", upmsUserOrganizations); return "/manage/user/organization.jsp"; }
public String update(@PathVariable("id") int id, ModelMap modelMap) { CmsTopicExample cmsTopicExample = new CmsTopicExample(); cmsTopicExample.setOrderByClause("ctime desc"); List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample); CmsArticle article = cmsArticleService.selectByPrimaryKey(id); modelMap.put("cmsTopics", cmsTopics); modelMap.put("article", article); return "/manage/article/update.jsp"; }
public String update(@PathVariable("id") int id, ModelMap modelMap) { UpmsSystemExample upmsSystemExample = new UpmsSystemExample(); upmsSystemExample.createCriteria() .andStatusEqualTo((byte) 1); List<UpmsSystem> upmsSystems = upmsSystemService.selectByExample(upmsSystemExample); UpmsPermission permission = upmsPermissionService.selectByPrimaryKey(id); modelMap.put("permission", permission); modelMap.put("upmsSystems", upmsSystems); return "/manage/permission/update.jsp"; }
public ServerResponseEntity<Void> save(ChangeAccountDTO changeAccountDTO) { AuthAccountDTO authAccountDTO = getAuthAccountDTO(changeAccountDTO); authAccountDTO.setCreateIp(IpHelper.getIpAddr()); authAccountDTO.setIsAdmin(0); // 保存 ServerResponseEntity<Long> serverResponseEntity = accountFeignClient.save(authAccountDTO); if (!serverResponseEntity.isSuccess()) { return ServerResponseEntity.transform(serverResponseEntity); } SysUser sysUser = new SysUser(); sysUser.setSysUserId(changeAccountDTO.getUserId()); sysUser.setHasAccount(1); sysUserMapper.update(sysUser); return ServerResponseEntity.success(); }
public ServerResponseEntity<Void> save(ChangeAccountDTO changeAccountDTO) { AuthAccountDTO authAccountDTO = getAuthAccountDTO(changeAccountDTO); authAccountDTO.setCreateIp(IpHelper.getIpAddr()); authAccountDTO.setIsAdmin(0); // 保存 ServerResponseEntity<Long> serverResponseEntity = accountFeignClient.save(authAccountDTO); if (!serverResponseEntity.isSuccess()) { return ServerResponseEntity.transform(serverResponseEntity); } ShopUser shopUser = new ShopUser(); shopUser.setShopUserId(changeAccountDTO.getUserId()); shopUser.setHasAccount(1); shopUser.setShopId(AuthUserContext.get().getTenantId()); shopUserMapper.update(shopUser); return ServerResponseEntity.success(); }
public User findByUserId(String userId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(User.class); query.setFilter("userId == :userId"); query.setUnique(true); User user = (User) query.execute(userId); return user; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public UserCart findByUserIdAndActive(String userId, String completed) throws RepositoryException { PersistenceManager pm = pm(); try { Query<UserCart> query = pm.newQuery(UserCart.class); query.setFilter("userId == :userId && status == :completed"); query.setUnique(true); UserCart userCart = (UserCart) pm.detachCopy(query.execute(userId, completed)); return userCart; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public UserCart findByUserIdAndActive(String userId, String completed) throws RepositoryException { PersistenceManager pm = pm(); try { Query<UserCart> query = pm.newQuery(UserCart.class); query.setFilter("userId == :userId && status == :completed"); query.setUnique(true); UserCart userCart = (UserCart) pm.detachCopy(query.execute(userId, completed)); return userCart; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public Order findByUserIdAndStatus(String userId, Status status) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(Order.class); query.setFilter("this.userId == :userId && this.status== :status"); query.setUnique(true); Order document = (Order) query.execute(userId, status); return pm.detachCopy(document); } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public User findByUserId(String userId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(User.class); query.setFilter("userId == :userId"); query.setUnique(true); User user = (User) query.execute(userId); return user; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public Order findByOrderId(String orderId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(Order.class); query.setFilter("this.orderId == :orderId"); query.setUnique(true); Order orderDocument = (Order) query.execute(orderId); return pm.detachCopy(orderDocument); } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public User findByUserId(String userId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(User.class); query.setFilter("userId == :userId"); query.setUnique(true); User user = (User) query.execute(userId); return user; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public Order findByUserIdAndStatus(String userId, Status status) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(Order.class); query.setFilter("this.userId == :userId && this.status== :status"); query.setUnique(true); Order document = (Order) query.execute(userId, status); return pm.detachCopy(document); } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public User findByUserId(String userId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(User.class); query.setFilter("userId == :userId"); query.setUnique(true); User user = (User) query.execute(userId); return user; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public List<Order> findAll(String userId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(Order.class); query.setFilter("this.userId == :userId"); List<Order> orDocuments = (List<Order>) query.execute(userId); return orDocuments; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public List<Product> findAll() throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(Product.class); List<Product> list = (List<Product>) query.execute(); List<Product> products = (List<Product>) pm.detachCopyAll(list); return products; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public List<Order> findAll(String userId) throws RepositoryException { PersistenceManager pm = pm(); try { Query query = pm.newQuery(Order.class); query.setFilter("this.userId == :userId"); List<Order> orDocuments = (List<Order>) query.execute(userId); return orDocuments; } catch (Exception e) { throw new RepositoryException(e.getMessage()); } finally { pm.close(); } }
public Page<?> findAllByNativeSql(String sql,String countSql, Map<String, ?> paramsMap, Pageable pageable){ Integer count = 0; if(countSql!=null&&!"".equals(countSql)){ Query countQuery = em.createNativeQuery(countSql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createNativeQuery(sql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<Object[]> list = query.getResultList(); if(list==null||list.size()==0) return null; List<Map<String,Object>> resList = genarateResultList(sql,list); Page<?> page = new PageImpl(resList,pageable,count); return page; }
public Page<?> findAllByNativeSql(String sql, String countSql, Map<String, ?> paramsMap, Pageable pageable) { Integer count = 0; if (countSql != null && !"".equals(countSql)) { Query countQuery = em.createNativeQuery(countSql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createNativeQuery(sql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<Object[]> list = query.getResultList(); if (list == null || list.size() == 0) return null; List<Map<String, Object>> resList = genarateResultList(sql, list); Page<?> page = new PageImpl(resList, pageable, count); return page; }
public Page<?> findPage(String jsql, String countJsql, Map<String, ?> paramsMap, Pageable pageable){ Integer count = 0; if(countJsql!=null&&!"".equals(countJsql)){ Query countQuery = em.createQuery(countJsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createQuery(jsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<?> list = query.getResultList(); Page<?> page = new PageImpl(list,pageable,count); return page; }
public Page<?> findPage(String jsql, String countJsql, Map<String, ?> paramsMap, Pageable pageable) { Integer count = 0; if (countJsql != null && !"".equals(countJsql)) { Query countQuery = em.createQuery(countJsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createQuery(jsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<?> list = query.getResultList(); Page<?> page = new PageImpl(list, pageable, count); return page; }
public int exeNativeUpdate(String sql, Map<String, ?> paramsMap) { Query query = em.createNativeQuery(sql); if(paramsMap!=null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } int rec = 0; try{ rec = query.executeUpdate(); }catch(Exception e){ e.printStackTrace(); }finally{ return rec; } }
public int exeNativeUpdate(String sql, Map<String, ?> paramsMap) { Query query = em.createNativeQuery(sql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } int rec = 0; try { rec = query.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { return rec; } }
private List<Map<String,Object>> genarateResultList(String sql,List<Object[]> list){ String sqlUpper = sql.toUpperCase(); String[] keys = sqlUpper.substring(sqlUpper.indexOf("SELECT")+1,sqlUpper.indexOf("WHERE")).split(","); for (int i=0;i<keys.length;i++) { keys[i] = keys[i].indexOf(" AS ")>-1?keys[i].substring(keys[i].indexOf(" AS ")+3).trim():keys[i].trim();//如果没有as,则是原字符串 } List<Map<String,Object>> resList = new ArrayList<Map<String,Object>>(); for (Object[] obj : list) { Map<String,Object> rowMap = new HashMap<String,Object>(); for(int i=0;i<obj.length;i++){ rowMap.put(keys[i], obj[i]); } resList.add(rowMap); } return resList; }
private List<Map<String, Object>> genarateResultList(String sql, List<Object[]> list) { String sqlUpper = sql.toUpperCase(); String[] keys = sqlUpper.substring(sqlUpper.indexOf("SELECT") + 1, sqlUpper.indexOf("WHERE")).split(","); for (int i = 0; i < keys.length; i++) { keys[i] = keys[i].indexOf(" AS ") > -1 ? keys[i].substring(keys[i].indexOf(" AS ") + 3).trim() : keys[i].trim();//如果没有as,则是原字符串 } List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); for (Object[] obj : list) { Map<String, Object> rowMap = new HashMap<String, Object>(); for (int i = 0; i < obj.length; i++) { rowMap.put(keys[i], obj[i]); } resList.add(rowMap); } return resList; }
public Page<?> findAll2Page(String jsql,Map<String, ?> paramsMap){ Query query = em.createQuery(jsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); Page<?> page = new PageImpl(list); return page; }
public Page<?> findAll2Page(String jsql, Map<String, ?> paramsMap) { Query query = em.createQuery(jsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); Page<?> page = new PageImpl(list); return page; }
public List<?> findList(String jsql,Map<String, ?> paramsMap){ Query query = em.createQuery(jsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); return list; }
public List<?> findList(String jsql, Map<String, ?> paramsMap) { Query query = em.createQuery(jsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); return list; }
public Page<?> findPage(String jsql, String countJsql, Map<String, ?> paramsMap, Pageable pageable){ Integer count = 0; if(countJsql!=null&&!"".equals(countJsql)){ Query countQuery = em.createQuery(countJsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createQuery(jsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<?> list = query.getResultList(); Page<?> page = new PageImpl(list,pageable,count); return page; }
public Page<?> findAllByNativeSql(String sql, String countSql, Map<String, ?> paramsMap, Pageable pageable) { Integer count = 0; if (countSql != null && !"".equals(countSql)) { Query countQuery = em.createNativeQuery(countSql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createNativeQuery(sql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<Object[]> list = query.getResultList(); if (list == null || list.size() == 0) return null; List<Map<String, Object>> resList = genarateResultList(sql, list); Page<?> page = new PageImpl(resList, pageable, count); return page; }
public Page<?> findAllByNativeSql(String sql,String countSql, Map<String, ?> paramsMap, Pageable pageable){ Integer count = 0; if(countSql!=null&&!"".equals(countSql)){ Query countQuery = em.createNativeQuery(countSql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createNativeQuery(sql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<Object[]> list = query.getResultList(); if(list==null||list.size()==0) return null; List<Map<String,Object>> resList = genarateResultList(sql,list); Page<?> page = new PageImpl(resList,pageable,count); return page; }
public Page<?> findPage(String jsql, String countJsql, Map<String, ?> paramsMap, Pageable pageable) { Integer count = 0; if (countJsql != null && !"".equals(countJsql)) { Query countQuery = em.createQuery(countJsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { countQuery.setParameter(entry.getKey(), entry.getValue()); } } count = Integer.valueOf(countQuery.getSingleResult().toString()); } Query query = em.createQuery(jsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); List<?> list = query.getResultList(); Page<?> page = new PageImpl(list, pageable, count); return page; }
public Object save(Object obj){ IDomainBase objPo = (IDomainBase)obj ; if(objPo.getObjectId()!=null){ objPo = (IDomainBase)baseDao.find(obj,objPo.getObjectId()); if(objPo==null) //throw new IFException("要更新的实体记录不存在!"); log.info("要更新的实体记录不存在!"); BeanUtils.copyProperties(obj,objPo); baseDao.save(objPo); return objPo; }else{ baseDao.save(obj); return obj; } }
public Object save(Object obj){ IDomainBase objPo = (IDomainBase)obj ; if(objPo.getObjectId()!=null){ objPo = (IDomainBase)baseDao.find(obj,objPo.getObjectId()); if(objPo==null) //throw new IFException("要更新的实体记录不存在!"); System.out.println("要更新的实体记录不存在!"); BeanUtils.copyProperties(obj,objPo); baseDao.save(objPo); return objPo; }else{ baseDao.save(obj); return obj; } }
public List<?> findList(String jsql,Map<String, ?> paramsMap){ Query query = em.createQuery(jsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); return list; }
public Page<?> findAll2Page(String jsql, Map<String, ?> paramsMap) { Query query = em.createQuery(jsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); Page<?> page = new PageImpl(list); return page; }
public Page<?> findAll2Page(String jsql,Map<String, ?> paramsMap){ Query query = em.createQuery(jsql); if(paramsMap!=null){ for (Entry<String, ?> entry: paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); Page<?> page = new PageImpl(list); return page; }
public List<?> findList(String jsql, Map<String, ?> paramsMap) { Query query = em.createQuery(jsql); if (paramsMap != null) { for (Entry<String, ?> entry : paramsMap.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } } List<?> list = query.getResultList(); return list; }
public void process(Page page) { int i = 50; //page计数是从2开始的 //https://foter.com/search/instant/?q=cat&page=2 Html html = page.getHtml(); String url = page.getRequest().getUrl(); List<String> list = html.regex("<img.*?src=.*?photos.*?/>").all(); List<String> imageSrc = getImageSrc(list); String jsonString = JSON.toJSONString(imageSrc); if (CollectionUtil.isEmpty(imageSrc)) { page.putField("imgSrc", jsonString); page.putField("searchKey", findSearchKey(url)); } else { //跳过爬取 page.setSkip(true); } }
public void process(Page page) { int i = 50; //page计数是从2开始的 //https://foter.com/search/instant/?q=cat&page=2 Html html = page.getHtml(); String url = page.getRequest().getUrl(); List<String> list = html.regex("<img.*?src=.*?photos.*?/>").all(); List<String> imageSrc = getImageSrc(list); String jsonString = JSON.toJSONString(imageSrc); if (CollectionUtil.isEmpty(imageSrc)) { page.putField("imgSrc", jsonString); page.putField("searchKey", findSearchKey(url)); } else { //跳过爬取 page.setSkip(true); } }
public static String findSearchKey(String url) { // 按指定模式在字符串查找 String reg = "\\?q=.*"; // 创建 Pattern 对象 // 现在创建 matcher对象 匹配的模式 Pattern pattern = Pattern.compile(reg); Matcher m = pattern.matcher(url); if (m.find()) { String group = m.group(0); String replace = group.replace("?q=", "").replaceFirst("&.*", ""); return replace; } else { return url; } }
public static String findSearchKey(String url) { // 按指定模式在字符串查找 String reg = "\\?q=.*"; // 创建 Pattern 对象 // 现在创建 matcher 对象 Pattern pattern = Pattern.compile(reg);// 匹配的模式 Matcher m = pattern.matcher(url); if (m.find()) { String group = m.group(0); String replace = group.replace("?q=", "").replaceFirst("&.*", ""); return replace; } else { return url; } }
private List<Blog> setBlog(List<Blog> list) { final StringBuffer fileUids = new StringBuffer(); List<String> sortUids = new ArrayList<>(); List<String> tagUids = new ArrayList<>(); list.forEach(item -> { if (StringUtils.isNotEmpty(item.getFileUid())) { fileUids.append(item.getFileUid() + SysConf.FILE_SEGMENTATION); } if (StringUtils.isNotEmpty(item.getBlogSortUid())) { sortUids.add(item.getBlogSortUid()); } if (StringUtils.isNotEmpty(item.getTagUid())) { tagUids.add(item.getTagUid()); } }); String pictureList = null; if (fileUids != null) { pictureList = this.pictureFeignClient.getPicture(fileUids.toString(), SysConf.FILE_SEGMENTATION); } List<Map<String, Object>> picList = webUtil.getPictureMap(pictureList); Collection<BlogSort> sortList = new ArrayList<>(); Collection<Tag> tagList = new ArrayList<>(); if (sortUids.size() > 0) { sortList = blogSortService.listByIds(sortUids); } if (tagUids.size() > 0) { tagList = tagService.listByIds(tagUids); } Map<String, BlogSort> sortMap = new HashMap<>(); Map<String, Tag> tagMap = new HashMap<>(); Map<String, String> pictureMap = new HashMap<>(); sortList.forEach(item -> { sortMap.put(item.getUid(), item); }); tagList.forEach(item -> { tagMap.put(item.getUid(), item); }); picList.forEach(item -> { pictureMap.put(item.get(SQLConf.UID).toString(), item.get(SQLConf.URL).toString()); }); for (Blog item : list) { //设置分类 if (StringUtils.isNotEmpty(item.getBlogSortUid())) { item.setBlogSort(sortMap.get(item.getBlogSortUid())); } //获取标签 if (StringUtils.isNotEmpty(item.getTagUid())) { List<String> tagUidsTemp = StringUtils.changeStringToString(item.getTagUid(), SysConf.FILE_SEGMENTATION); List<Tag> tagListTemp = new ArrayList<Tag>(); tagUidsTemp.forEach(tag -> { if (tagMap.get(tag) != null) { tagListTemp.add(tagMap.get(tag)); } }); item.setTagList(tagListTemp); } //获取图片 if (StringUtils.isNotEmpty(item.getFileUid())) { List<String> pictureUidsTemp = StringUtils.changeStringToString(item.getFileUid(), SysConf.FILE_SEGMENTATION); List<String> pictureListTemp = new ArrayList<>(); pictureUidsTemp.forEach(picture -> { pictureListTemp.add(pictureMap.get(picture)); }); item.setPhotoList(pictureListTemp); } } return list; }
private List<Blog> setBlog(List<Blog> list) { final StringBuffer fileUids = new StringBuffer(); List<String> sortUids = new ArrayList<>(); List<String> tagUids = new ArrayList<>(); list.forEach(item -> { if (StringUtils.isNotEmpty(item.getFileUid())) { fileUids.append(item.getFileUid() + SysConf.FILE_SEGMENTATION); } if (StringUtils.isNotEmpty(item.getBlogSortUid())) { sortUids.add(item.getBlogSortUid()); } if (StringUtils.isNotEmpty(item.getTagUid())) { tagUids.add(item.getTagUid()); } }); String pictureList = null; if (fileUids != null) { pictureList = this.pictureFeignClient.getPicture(fileUids.toString(), SysConf.FILE_SEGMENTATION); } List<Map<String, Object>> picList = webUtil.getPictureMap(pictureList); Collection<BlogSort> sortList = new ArrayList<>(); Collection<Tag> tagList = new ArrayList<>(); if (sortUids.size() > 0) { sortList = blogSortService.listByIds(sortUids); } if (tagUids.size() > 0) { tagList = tagService.listByIds(tagUids); } Map<String, BlogSort> sortMap = new HashMap<>(); Map<String, Tag> tagMap = new HashMap<>(); Map<String, String> pictureMap = new HashMap<>(); sortList.forEach(item -> { sortMap.put(item.getUid(), item); }); tagList.forEach(item -> { tagMap.put(item.getUid(), item); }); picList.forEach(item -> { pictureMap.put(item.get(SQLConf.UID).toString(), item.get(SQLConf.URL).toString()); }); for (Blog item : list) { //设置分类 if (StringUtils.isNotEmpty(item.getBlogSortUid())) { item.setBlogSort(sortMap.get(item.getBlogSortUid())); } //获取标签 if (StringUtils.isNotEmpty(item.getTagUid())) { List<String> tagUidsTemp = StringUtils.changeStringToString(item.getTagUid(), SysConf.FILE_SEGMENTATION); List<Tag> tagListTemp = new ArrayList<Tag>(); tagUidsTemp.forEach(tag -> { tagListTemp.add(tagMap.get(tag)); }); item.setTagList(tagListTemp); } //获取图片 if (StringUtils.isNotEmpty(item.getFileUid())) { List<String> pictureUidsTemp = StringUtils.changeStringToString(item.getFileUid(), SysConf.FILE_SEGMENTATION); List<String> pictureListTemp = new ArrayList<>(); pictureUidsTemp.forEach(picture -> { pictureListTemp.add(pictureMap.get(picture)); }); item.setPhotoList(pictureListTemp); } } return list; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1, url.length()); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1, url.length()); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1, url.length()); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
private static List<String> Download(List<String> listImgSrc) { //开始时间 Date begindate = new Date(); ArrayList<String> localFile = new ArrayList<>(); try { for (String url : listImgSrc) { //开始时间 Date begindate2 = new Date(); String imageName = url.substring(url.lastIndexOf("/") + 1, url.length()); URL uri = new URL(url); HttpURLConnection conn = (HttpURLConnection) uri.openConnection(); conn.setConnectTimeout(50000); conn.setReadTimeout(50000); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"); conn.connect(); InputStream in = conn.getInputStream(); String pathname = "D:\\123\\" + imageName; File file = new File(pathname); FileOutputStream fo = new FileOutputStream(file);//文件输出流 byte[] buf = new byte[1024]; int length = 0; System.out.println("开始下载:" + url); while ((length = in.read(buf, 0, buf.length)) != -1) { fo.write(buf, 0, length); } //关闭流 in.close(); fo.close(); System.out.println(imageName + "下载完成"); //结束时间 Date overdate2 = new Date(); double time = overdate2.getTime() - begindate2.getTime(); System.out.println("耗时:" + time / 1000 + "s"); localFile.add(pathname); } Date overdate = new Date(); double time = overdate.getTime() - begindate.getTime(); System.out.println("总耗时:" + time / 1000 + "s"); } catch (Exception e) { System.out.println(e.getMessage()); } return localFile; }
public PageBean<UserReadHistory> listReadHistoryByPage(Long userId, int page, int pageSize) { PageHelper.startPage(page, pageSize); List<UserReadHistory> userReadHistories = userReadHistoryMapper.selectMany( select(UserReadHistoryDynamicSqlSupport.bookId, UserReadHistoryDynamicSqlSupport.preContentId) .from(userReadHistory) .where(UserReadHistoryDynamicSqlSupport.userId, isEqualTo(userId)) .orderBy(UserReadHistoryDynamicSqlSupport.createTime.descending()) .build() .render(RenderingStrategies.MYBATIS3)); List<Book> books = bookFeignClient.queryBookByIds(userReadHistories.stream().map(UserReadHistory::getBookId).collect(Collectors.toList())); Map<Long, Book> booksById = books.stream().collect(Collectors.toMap(Book::getId, Function.identity(), (key1, key2) -> key2)); List<BookReadHistoryVO> resultList = new ArrayList<>(booksById.size()); userReadHistories.forEach(readHistory->{ BookReadHistoryVO readHistoryVO = new BookReadHistoryVO(); BeanUtils.copyProperties(readHistory, readHistoryVO); Book book = booksById.get(readHistory.getBookId()); if (book != null) { BeanUtils.copyProperties(book, readHistoryVO); resultList.add(readHistoryVO); } }); PageBean<UserReadHistory> pageBean = new PageBean<>(userReadHistories); pageBean.setList(resultList); return pageBean; }
public PageBean<BookComment> listBookCommentByPage(Long bookId, int page, int pageSize) { //分页查询小说评论数据 PageHelper.startPage(page, pageSize); List<BookComment> bookCommentList = bookCommentMapper.selectMany( select(BookCommentDynamicSqlSupport.id, BookCommentDynamicSqlSupport.bookId, BookCommentDynamicSqlSupport.createUserId, BookCommentDynamicSqlSupport.commentContent, BookCommentDynamicSqlSupport.replyCount, BookCommentDynamicSqlSupport.createTime) .from(BookCommentDynamicSqlSupport.bookComment) .where(BookCommentDynamicSqlSupport.bookId, isEqualTo(bookId)) .orderBy(BookCommentDynamicSqlSupport.createTime.descending()) .build() .render(RenderingStrategies.MYBATIS3)); //根据评论人ID集合查询出评论人集合数据 List<User> users = userFeignClient.queryById(bookCommentList.stream().map(BookComment::getCreateUserId).collect(Collectors.toList())); Map<Long, User> userMap = users.stream().collect(Collectors.toMap(User::getId, Function.identity(), (key1, key2) -> key2)); //将评论数据和评论人数据关联起来 TODO 评论表增加用户相关的冗余字段,用户信息更新后用户服务通过mq发送message,其他服务消费message更新所有的冗余字段 List<BookCommentVO> resultList = new ArrayList<>(bookCommentList.size()); bookCommentList.forEach(bookComment->{ BookCommentVO bookCommentVO = new BookCommentVO(); BeanUtils.copyProperties(bookComment, bookCommentVO); User user = userMap.get(bookComment.getCreateUserId()); if (user != null) { bookCommentVO.setCreateUserName(user.getUsername()); bookCommentVO.setCreateUserPhoto(user.getUserPhoto()); } resultList.add(bookCommentVO); }); PageBean<BookComment> pageBean = new PageBean<>(bookCommentList); pageBean.setList(resultList); return pageBean; }
public PageBean<UserBookshelf> listBookShelfByPage(Long userId, int page, int pageSize) { PageHelper.startPage(page, pageSize); List<UserBookshelf> userBookshelves = userBookshelfMapper.selectMany( select(UserBookshelfDynamicSqlSupport.bookId, UserBookshelfDynamicSqlSupport.preContentId) .from(userBookshelf) .where(UserBookshelfDynamicSqlSupport.userId, isEqualTo(userId)) .orderBy(UserBookshelfDynamicSqlSupport.createTime.descending()) .build() .render(RenderingStrategies.MYBATIS3)); List<Book> books = bookFeignClient.queryBookByIds(userBookshelves.stream().map(UserBookshelf::getBookId).collect(Collectors.toList())); Map<Long, Book> booksById = books.stream().collect(Collectors.toMap(Book::getId, Function.identity(), (key1, key2) -> key2)); //TODO 书架表增加书籍相关的冗余字段,书籍信息更新后小说服务通过mq发送message,其他服务消费message更新所有的冗余字段 List<BookShelfVO> resultList = new ArrayList<>(booksById.size()); userBookshelves.forEach(bookshelf->{ BookShelfVO bookShelfVO = new BookShelfVO(); BeanUtils.copyProperties(bookshelf, bookShelfVO); Book book = booksById.get(bookshelf.getBookId()); if (book != null) { BeanUtils.copyProperties(book, bookShelfVO); resultList.add(bookShelfVO); } }); PageBean<UserBookshelf> pageBean = new PageBean<>(userBookshelves); pageBean.setList(resultList); return pageBean; }
public PageBean<BookComment> listBookCommentByPage(Long bookId, int page, int pageSize) { //分页查询小说评论数据 PageHelper.startPage(page, pageSize); List<BookComment> bookCommentList = bookCommentMapper.selectMany( select(BookCommentDynamicSqlSupport.id, BookCommentDynamicSqlSupport.bookId, BookCommentDynamicSqlSupport.createUserId, BookCommentDynamicSqlSupport.commentContent, BookCommentDynamicSqlSupport.replyCount, BookCommentDynamicSqlSupport.createTime) .from(BookCommentDynamicSqlSupport.bookComment) .where(BookCommentDynamicSqlSupport.bookId, isEqualTo(bookId)) .orderBy(BookCommentDynamicSqlSupport.createTime.descending()) .build() .render(RenderingStrategies.MYBATIS3)); //根据评论人ID集合查询出评论人集合数据 List<User> users = userFeignClient.queryById(bookCommentList.stream().map(BookComment::getCreateUserId).collect(Collectors.toList())); Map<Long, User> userMap = users.stream().collect(Collectors.toMap(User::getId, Function.identity(), (key1, key2) -> key2)); //将评论数据和评论人数据关联起来 TODO 评论表增加用户相关的冗余字段,用户信息更新后用户服务通过mq发送message,其他服务消费message更新所有的冗余字段 List<BookCommentVO> resultList = new ArrayList<>(bookCommentList.size()); bookCommentList.forEach(bookComment->{ BookCommentVO bookCommentVO = new BookCommentVO(); BeanUtils.copyProperties(bookComment, bookCommentVO); User user = userMap.get(bookComment.getCreateUserId()); if (user != null) { bookCommentVO.setCreateUserName(user.getUsername()); bookCommentVO.setCreateUserPhoto(user.getUserPhoto()); } resultList.add(bookCommentVO); }); PageBean<BookComment> pageBean = new PageBean<>(bookCommentList); pageBean.setList(resultList); return pageBean; }
public void alertRemovedShiftAsync(AlertRemovedShiftRequest alertRemovedShiftRequest) { BaseResponse baseResponse = null; try { baseResponse = botClient.alertRemovedShift(alertRemovedShiftRequest); } catch (Exception ex) { String errMsg = "failed to alert worker about removed shift"; handleErrorAndThrowException(logger, ex, errMsg); } if (!baseResponse.isSuccess()) { handleErrorAndThrowException(logger, baseResponse.getMessage()); } }
public void sendSmsGreeting(String userId) { BaseResponse baseResponse = null; try { GreetingRequest greetingRequest = GreetingRequest.builder().userId(userId).build(); baseResponse = botClient.sendSmsGreeting(greetingRequest); } catch (Exception ex) { String errMsg = "could not send welcome sms"; handleException(logger, ex, errMsg); throw new ServiceException(errMsg, ex); } if (!baseResponse.isSuccess()) { handleError(logger, baseResponse.getMessage()); throw new ServiceException(baseResponse.getMessage()); } }
public void alertNewShiftAsync(AlertNewShiftRequest alertNewShiftRequest) { BaseResponse baseResponse = null; try { baseResponse = botClient.alertNewShift(alertNewShiftRequest); } catch (Exception ex) { String errMsg = "failed to alert worker about new shift"; handleErrorAndThrowException(logger, ex, errMsg); } if (!baseResponse.isSuccess()) { handleErrorAndThrowException(logger, baseResponse.getMessage()); } }
public void sendSmsGreeting(String userId) { BaseResponse baseResponse = null; try { GreetingRequest greetingRequest = GreetingRequest.builder().userId(userId).build(); baseResponse = botClient.sendSmsGreeting(greetingRequest); } catch (Exception ex) { String errMsg = "could not send welcome sms"; handleException(logger, ex, errMsg); throw new ServiceException(errMsg, ex); } if (!baseResponse.isSuccess()) { handleError(logger, baseResponse.getMessage()); throw new ServiceException(baseResponse.getMessage()); } }
public void onboardWorkerAsync(OnboardWorkerRequest onboardWorkerRequest) { BaseResponse baseResponse = null; try { baseResponse = botClient.onboardWorker(onboardWorkerRequest); } catch (Exception ex) { String errMsg = "fail to call onboardWorker through botClient"; handleErrorAndThrowException(logger, ex, errMsg); } if (!baseResponse.isSuccess()) { handleErrorAndThrowException(logger, baseResponse.getMessage()); } }
public void sendSmsGreeting(String userId) { BaseResponse baseResponse = null; try { GreetingRequest greetingRequest = GreetingRequest.builder().userId(userId).build(); baseResponse = botClient.sendSmsGreeting(greetingRequest); } catch (Exception ex) { String errMsg = "could not send welcome sms"; handleException(logger, ex, errMsg); throw new ServiceException(errMsg, ex); } if (!baseResponse.isSuccess()) { handleError(logger, baseResponse.getMessage()); throw new ServiceException(baseResponse.getMessage()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "user 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "message 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "user 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "resume 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "user 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "outside 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "user 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "recruit 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "message 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "resume 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "message 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "outside 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "message 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "recruit 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "outside 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "resume 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "resume 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "recruit 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "outside 运行时异常!" + sw.toString()); } }
public ResponseMessage handle(Exception e) { if (e instanceof MyException) { MyException myException = (MyException) e; return ResponseMessage.error(myException.getCode(), myException.getMessage()); } else { log.error("[系统异常]", e); StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); return ResponseMessage.error(500, "recruit 运行时异常!" + sw.toString()); } }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
private Set<String> extractScope(Map<String, ?> map) { Set<String> scope = Collections.emptySet(); if (map.containsKey(SCOPE)) { Object scopeObj = map.get(SCOPE); if (String.class.isInstance(scopeObj)) { scope = new LinkedHashSet<String>(Arrays.asList(String.class.cast(scopeObj).split(" "))); } else if (Collection.class.isAssignableFrom(scopeObj.getClass())) { @SuppressWarnings("unchecked") Collection<String> scopeColl = (Collection<String>) scopeObj; // Preserve ordering scope = new LinkedHashSet<String>(scopeColl); } } return scope; }
private Set<String> extractScope(Map<String, ?> map) { Set<String> scope = Collections.emptySet(); if (map.containsKey(SCOPE)) { Object scopeObj = map.get(SCOPE); if (String.class.isInstance(scopeObj)) { scope = new LinkedHashSet<String>(Arrays.asList(String.class.cast(scopeObj).split(" "))); } else if (Collection.class.isAssignableFrom(scopeObj.getClass())) { @SuppressWarnings("unchecked") Collection<String> scopeColl = (Collection<String>) scopeObj; scope = new LinkedHashSet<String>(scopeColl); // Preserve ordering } } return scope; }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
private List<RepaymentPlanDTO> convertEntityList2DtoList(List<RepaymentPlan> repaymentPlanList) { if (repaymentPlanList == null) { return null; } List<RepaymentPlanDTO> repaymentPlanDTOList = new ArrayList<>(); repaymentPlanList.forEach(repaymentPlan -> { RepaymentPlanDTO repaymentPlanDTO = new RepaymentPlanDTO(); BeanUtils.copyProperties(repaymentPlan, repaymentPlanDTO); repaymentPlanDTOList.add(repaymentPlanDTO); }); return repaymentPlanDTOList; }
private List<ProjectDTO> convertProjectEntityListToDTOList(List<Project> projectList) { if (projectList == null) { return null; } List<ProjectDTO> dtoList = new ArrayList<>(); projectList.forEach(project -> { ProjectDTO projectDTO = new ProjectDTO(); BeanUtils.copyProperties(project, projectDTO); dtoList.add(projectDTO); }); return dtoList; }
private List<RepaymentPlanDTO> convertEntityList2DtoList(List<RepaymentPlan> repaymentPlanList) { if (repaymentPlanList == null) { return null; } List<RepaymentPlanDTO> repaymentPlanDTOList = new ArrayList<>(); repaymentPlanList.forEach(repaymentPlan -> { RepaymentPlanDTO repaymentPlanDTO = new RepaymentPlanDTO(); BeanUtils.copyProperties(repaymentPlan, repaymentPlanDTO); repaymentPlanDTOList.add(repaymentPlanDTO); }); return repaymentPlanDTOList; }
private List<TenderDTO> convertTenderEntityListToDTOList(List<Tender> records) { if (records == null) { return null; } List<TenderDTO> dtoList = new ArrayList<>(); records.forEach(tender -> { TenderDTO tenderDTO = new TenderDTO(); BeanUtils.copyProperties(tender, tenderDTO); dtoList.add(tenderDTO); }); return dtoList; }
public static String postGeneralUrl(String generalUrl, String contentType, String params, String encoding) throws Exception { URL url = new URL(generalUrl); // 打开和URL之间的连接 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); // 设置通用的请求属性 connection.setRequestProperty("Content-Type", contentType); connection.setRequestProperty("Connection", "Keep-Alive"); connection.setUseCaches(false); connection.setDoOutput(true); connection.setDoInput(true); connection.setConnectTimeout(20000); connection.setReadTimeout(20000); // 得到请求的输出流对象 DataOutputStream out = new DataOutputStream(connection.getOutputStream()); out.write(params.getBytes(encoding)); out.flush(); out.close(); // 建立实际的连接 connection.connect(); // 获取所有响应头字段 Map<String, List<String>> headers = connection.getHeaderFields(); // 遍历所有的响应头字段 /*for (String key : headers.keySet()) { System.err.println(key + "--->" + headers.get(key)); }*/ // 定义 BufferedReader输入流来读取URL的响应 BufferedReader in = null; in = new BufferedReader( new InputStreamReader(connection.getInputStream(), encoding)); String result = ""; String getLine; while ((getLine = in.readLine()) != null) { result += getLine; } in.close(); connection.disconnect(); // System.err.println("result:" + result); return result; }
public static String postGeneralUrl(String generalUrl, String contentType, String params, String encoding) throws Exception { URL url = new URL(generalUrl); // 打开和URL之间的连接 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); // 设置通用的请求属性 connection.setRequestProperty("Content-Type", contentType); connection.setRequestProperty("Connection", "Keep-Alive"); connection.setUseCaches(false); connection.setDoOutput(true); connection.setDoInput(true); // 得到请求的输出流对象 DataOutputStream out = new DataOutputStream(connection.getOutputStream()); out.write(params.getBytes(encoding)); out.flush(); out.close(); // 建立实际的连接 connection.connect(); // 定义 BufferedReader输入流来读取URL的响应 BufferedReader in = null; in = new BufferedReader( new InputStreamReader(connection.getInputStream(), encoding)); String result = ""; String getLine; while ((getLine = in.readLine()) != null) { result += getLine; } in.close(); return result; }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof AccessDeniedException) { return new RestResponse<Nullable>(304, "没有权限访问"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{0}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof AccessDeniedException) { return new RestResponse<Nullable>(304, "没有权限访问"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{0}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof AccessDeniedException) { return new RestResponse<Nullable>(304, "没有权限访问"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{0}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof AccessDeniedException) { return new RestResponse<Nullable>(304, "没有权限访问"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{0}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof AccessDeniedException) { return new RestResponse<Nullable>(304, "没有权限访问"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{0}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } log.error("[系统异常]-" + e.getMessage()); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public RestResponse<Nullable> exceptionGet(HttpServletRequest req, HttpServletResponse response, Exception e) { if (e instanceof BusinessException) { BusinessException be = (BusinessException) e; if (CommonErrorCode.CUSTOM.equals(be.getErrorCode())) { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getMessage()); } else { return new RestResponse<Nullable>(be.getErrorCode().getCode(), be.getErrorCode().getDesc()); } } else if (e instanceof NoHandlerFoundException) { return new RestResponse<Nullable>(404, "找不到资源"); } else if (e instanceof HttpRequestMethodNotSupportedException) { return new RestResponse<Nullable>(405, "method 方法不支持"); } else if (e instanceof HttpMediaTypeNotSupportedException) { return new RestResponse<Nullable>(415, "不支持媒体类型"); } LOGGER.error("[系统异常]-{}", e); return new RestResponse<Nullable>(CommonErrorCode.UNKOWN.getCode(), CommonErrorCode.UNKOWN.getDesc()); }
public static String getCityInfo(String ip) { DbSearcher searcher = null; try { String dbPath = AddressUtil.class.getResource("/ip2region/ip2region.db").getPath(); File file = new File(dbPath); if (!file.exists()) { String tmpDir = System.getProperties().getProperty(FebsConstant.JAVA_TEMP_DIR); dbPath = tmpDir + "ip.db"; file = new File(dbPath); InputStream resourceAsStream = AddressUtil.class.getClassLoader().getResourceAsStream("classpath:ip2region/ip2region.db"); if (resourceAsStream != null) { FileUtils.copyInputStreamToFile(resourceAsStream, file); } } DbConfig config = new DbConfig(); searcher = new DbSearcher(config, file.getPath()); Method method = searcher.getClass().getMethod("btreeSearch", String.class); DataBlock dataBlock = (DataBlock) method.invoke(searcher, ip); return dataBlock.getRegion(); } catch (Exception e) { log.warn("获取地址信息异常,{}", e.getMessage()); return StringUtils.EMPTY; } finally { if (searcher != null) { try { searcher.close(); } catch (IOException e) { log.error("ip2region searcher close error", e); } } } }
public static String getCityInfo(String ip) { DbSearcher searcher = null; try { String dbPath = AddressUtil.class.getResource("/ip2region/ip2region.db").getPath(); File file = new File(dbPath); if (!file.exists()) { String tmpDir = System.getProperties().getProperty(FebsConstant.JAVA_TEMP_DIR); dbPath = tmpDir + "ip.db"; file = new File(dbPath); InputStream resourceAsStream = AddressUtil.class.getClassLoader().getResourceAsStream("classpath:ip2region/ip2region.db"); if (resourceAsStream != null) { FileUtils.copyInputStreamToFile(resourceAsStream, file); } } DbConfig config = new DbConfig(); searcher = new DbSearcher(config, file.getPath()); Method method = searcher.getClass().getMethod("btreeSearch", String.class); DataBlock dataBlock = (DataBlock) method.invoke(searcher, ip); return dataBlock.getRegion(); } catch (Exception e) { log.warn("获取地址信息异常,{}", e.getMessage()); return StringUtils.EMPTY; } finally { if (searcher != null) { try { searcher.close(); } catch (IOException e) { log.error("ip2region searcher close error", e); } } } }
public String getNextSeq(String keyName, int incrby) { if(StringUtils.isBlank(keyName)||incrby<0) { throw new RuntimeException("参数不正确"); } this.keyName=keyName; this.incrby=incrby; try { return getMaxSeq(); }catch (Exception e){//如果redis出现故障,则采用uuid e.printStackTrace(); return UUID.randomUUID().toString().replace("-",""); } }
public String getNextSeq(String keyName, int incrby) { if(StringUtils.isBlank(keyName)||incrby<0) { throw new RuntimeException("参数不正确"); } this.keyName=keyName; this.incrby=incrby; try { return getMaxSeq(); }catch (Exception e){//如果redis出现故障,则采用uuid e.printStackTrace(); return UUID.randomUUID().toString().replace("-",""); } }
public String getNextSeq(String keyName, int incrby) { if(StringUtils.isBlank(keyName)||incrby<0) { throw new RuntimeException("参数不正确"); } this.keyName=keyName; this.incrby=incrby; try { return getMaxSeq(); }catch (Exception e){//如果redis出现故障,则采用uuid e.printStackTrace(); return UUID.randomUUID().toString().replace("-",""); } }
public String getNextSeq(String keyName, int incrby) { if(StringUtils.isBlank(keyName)||incrby<0) { throw new RuntimeException("参数不正确"); } this.keyName=keyName; this.incrby=incrby; try { return getMaxSeq(); }catch (Exception e){//如果redis出现故障,则采用uuid e.printStackTrace(); return UUID.randomUUID().toString().replace("-",""); } }
public String getNextSeq(String keyName, int incrby) { if(StringUtils.isBlank(keyName)||incrby<0) { throw new RuntimeException("参数不正确"); } this.keyName=keyName; this.incrby=incrby; try { return getMaxSeq(); }catch (Exception e){//如果redis出现故障,则采用uuid e.printStackTrace(); return UUID.randomUUID().toString().replace("-",""); } }
public String getNextSeq(String keyName, int incrby) { if(StringUtils.isBlank(keyName)||incrby<0) { throw new RuntimeException("参数不正确"); } this.keyName=keyName; this.incrby=incrby; try { return getMaxSeq(); }catch (Exception e){//如果redis出现故障,则采用uuid e.printStackTrace(); return UUID.randomUUID().toString().replace("-",""); } }
public static String order(String[] columns, String[] orders) { if (columns == null || columns.length == 0) { return ""; } StringBuilder stringBuilder = new StringBuilder(); for (int x = 0; x < columns.length; x++) { String column = columns[x]; String order; if (orders != null && orders.length > x) { order = orders[x].toUpperCase(); if (!(order.equals(ASC) || order.equals(DESC))) { throw new IllegalArgumentException("非法的排序策略:" + column); } }else { order = ASC; } // 判断列名称的合法性,防止SQL注入。只能是【字母,数字,下划线】 if (PrincipalUtil.isField(column)) { throw new IllegalArgumentException("非法的排序字段名称:" + column); } // 驼峰转换为下划线 column = humpConversionUnderscore(column); if (x != 0) { stringBuilder.append(", "); } stringBuilder.append("`").append(column).append("` ").append(order); } return stringBuilder.toString(); }
public static String order(String[] columns, String[] orders) { if (columns == null || columns.length == 0) { return ""; } StringBuilder stringBuilder = new StringBuilder(); for (int x = 0; x < columns.length; x++) { String column = columns[x]; String order; if (orders != null && orders.length > x) { order = orders[x].toUpperCase(); if (!(order.equals(ASC) || order.equals(DESC))) { throw new IllegalArgumentException("非法的排序策略:" + column); } }else { order = ASC; } // 判断列名称的合法性,防止SQL注入。只能是【字母,数字,下划线】 if (PrincipalUtil.isField(column)) { throw new IllegalArgumentException("非法的排序字段名称:" + column); } // 驼峰转换为下划线 column = humpConversionUnderscore(column); if (x != 0) { stringBuilder.append(", "); } stringBuilder.append("`").append(column).append("` ").append(order); } return stringBuilder.toString(); }
private AuthAccountDTO getAuthAccountDTO(ChangeAccountDTO changeAccountDTO) { AuthAccountDTO authAccountDTO = new AuthAccountDTO(); UserInfoInTokenBO userInfoInTokenBO = AuthUserContext.get(); authAccountDTO.setPassword(changeAccountDTO.getPassword()); authAccountDTO.setUsername(changeAccountDTO.getUsername()); authAccountDTO.setStatus(changeAccountDTO.getStatus()); authAccountDTO.setSysType(userInfoInTokenBO.getSysType()); authAccountDTO.setTenantId(userInfoInTokenBO.getTenantId()); authAccountDTO.setUserId(changeAccountDTO.getUserId()); return authAccountDTO; }
private AuthAccountDTO getAuthAccountDTO(ChangeAccountDTO changeAccountDTO) { AuthAccountDTO authAccountDTO = new AuthAccountDTO(); UserInfoInTokenBO userInfoInTokenBO = AuthUserContext.get(); authAccountDTO.setPassword(changeAccountDTO.getPassword()); authAccountDTO.setUsername(changeAccountDTO.getUsername()); authAccountDTO.setStatus(changeAccountDTO.getStatus()); authAccountDTO.setSysType(userInfoInTokenBO.getSysType()); authAccountDTO.setTenantId(userInfoInTokenBO.getTenantId()); authAccountDTO.setUserId(changeAccountDTO.getUserId()); return authAccountDTO; }
public static String humpConversionUnderscore(String value) { StringBuilder stringBuilder = new StringBuilder(); char[] chars = value.toCharArray(); for (char character : chars) { if (Character.isUpperCase(character)) { stringBuilder.append("_"); character = Character.toLowerCase(character); } stringBuilder.append(character); } return stringBuilder.toString(); }
public static String humpConversionUnderscore(String value) { StringBuilder stringBuilder = new StringBuilder(); char[] chars = value.toCharArray(); for (char character : chars) { if (Character.isUpperCase(character)) { stringBuilder.append("_"); character = Character.toLowerCase(character); } stringBuilder.append(character); } return stringBuilder.toString(); }
public void toStop() { toStop = true; if (localThread == null) { return; } // interrupt and wait localThread.interrupt(); try { localThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } }
public void toStop(){ toStop = true; // stop registryOrRemoveThreadPool registryOrRemoveThreadPool.shutdownNow(); // stop monitir (interrupt and wait) registryMonitorThread.interrupt(); try { registryMonitorThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } }
public void toStop() { toStop = true; if (localThread == null) { return; } // interrupt and wait localThread.interrupt(); try { localThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } }
public void toStop(){ toStop = true; // stop registryOrRemoveThreadPool callbackThreadPool.shutdownNow(); // stop monitorThread (interrupt and wait) monitorThread.interrupt(); try { monitorThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } }
public void toStop() { toStop = true; // interrupt and wait if (registryThread != null) { registryThread.interrupt(); try { registryThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } } }
public void toStop(){ toStop = true; // stop registryOrRemoveThreadPool registryOrRemoveThreadPool.shutdownNow(); // stop monitir (interrupt and wait) registryMonitorThread.interrupt(); try { registryMonitorThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } }
public void toStop() { toStop = true; // interrupt and wait if (registryThread != null) { registryThread.interrupt(); try { registryThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } } }
public void toStop(){ toStop = true; // stop registryOrRemoveThreadPool callbackThreadPool.shutdownNow(); // stop monitorThread (interrupt and wait) monitorThread.interrupt(); try { monitorThread.join(); } catch (InterruptedException e) { logger.error(e.getMessage(), e); } }
public @ResponseBody void Copy(@PathVariable String[] fileNames) { File file = null; FileInputStream fis = null; BufferedInputStream bis = null; FileOutputStream fos = null; for (String fileName : fileNames) { try { file = new File(tTmpInfoFilePath + "/" + fileName); if (!file.exists()) { continue; } fis = new FileInputStream(file); bis = new BufferedInputStream(fis); fos = new FileOutputStream(tRealInfofilePath + "/" + fileName);// 写入文件 byte data[] = new byte[4096]; int size = 0; size = bis.read(data); while (size != -1) { fos.write(data, 0, size); size = bis.read(data); } fos.flush(); } catch (IOException e) { e.printStackTrace(); // throw new IFException("500","将图片从临时路径拷贝到真实路径出错..."); } finally { try { if (fis != null) fis.close(); if (bis != null) bis.close(); if (fos != null) fos.close(); if (file.exists()) file.delete();// 删除临时路径图片 } catch (Exception e) { e.printStackTrace(); } } } }
public static void copyFileToRealPath(String tmpInfoFilePath,String realInfofilePath,String[] fileNames){ File file = null; FileInputStream fis = null; BufferedInputStream bis = null; FileOutputStream fos = null; for(String fileName : fileNames){ try{ file = new File(tmpInfoFilePath+"/"+fileName); if(!file.exists()){ continue; } fis = new FileInputStream(file); bis=new BufferedInputStream(fis); fos = new FileOutputStream(realInfofilePath+"/"+fileName);//写入文件 byte data[]=new byte[4096]; int size=0; size=bis.read(data); while (size!=-1){ fos.write(data,0,size); size=bis.read(data); } fos.flush(); }catch(IOException e){ e.printStackTrace(); //throw new IFException("500","将图片从临时路径拷贝到真实路径出错..."); }finally{ try{ if(fis != null) fis.close(); if(bis != null) bis.close(); if(fos != null) fos.close(); if(file.exists()) file.delete();//删除临时路径图片 } catch(Exception e){ e.printStackTrace(); } } } }
public void saveSysLog(JoinPoint joinPoint) { MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); SysLog sysLog = new SysLog(); SysLogger sysLogger = method.getAnnotation(SysLogger.class); if (sysLogger != null) { //注解上的描述 sysLog.setOperation(sysLogger.value()); } //请求的方法名 String className = joinPoint.getTarget().getClass().getName(); String methodName = signature.getName(); sysLog.setMethod(className + "." + methodName + "()"); //请求的参数 Object[] args = joinPoint.getArgs(); String params = ""; for (Object o : args) { params += JSON.toJSONString(o); } if (!StringUtils.isEmpty(params)) { sysLog.setParams(params); } //设置IP地址 sysLog.setIp(HttpUtils.getIpAddress()); //用户名 String username = UserUtils.getCurrentPrinciple(); if (!StringUtils.isEmpty(username)) { sysLog.setUsername(username); } sysLog.setCreateDate(new Date()); //保存系统日志 loggerService.log(sysLog); }
public void saveSysLog(JoinPoint joinPoint) { MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); SysLog sysLog = new SysLog(); SysLogger sysLogger = method.getAnnotation(SysLogger.class); if (sysLogger != null) { //注解上的描述 sysLog.setOperation(sysLogger.value()); } //请求的方法名 String className = joinPoint.getTarget().getClass().getName(); String methodName = signature.getName(); sysLog.setMethod(className + "." + methodName + "()"); //请求的参数 Object[] args = joinPoint.getArgs(); String params = ""; for (Object o : args) { params += JSON.toJSONString(o); } if (!StringUtils.isEmpty(params)) { sysLog.setParams(params); } //设置IP地址 sysLog.setIp(HttpUtils.getIpAddress()); //用户名 String username = UserUtils.getCurrentPrinciple(); if (!StringUtils.isEmpty(username)) { sysLog.setUsername(username); } sysLog.setCreateDate(new Date()); //保存系统日志 loggerService.log(sysLog); }
public void saveSysLog(JoinPoint joinPoint) { System.out.println("MYTAG:User SysLoggerAspect saveLogger start..."); MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); SysLog sysLog = new SysLog(); SysLogger sysLogger = method.getAnnotation(SysLogger.class); if(sysLogger != null){ //注解上的描述 sysLog.setOperation(sysLogger.value()); } //请求的方法名 String className = joinPoint.getTarget().getClass().getName(); String methodName = signature.getName(); sysLog.setMethod(className + "." + methodName + "()"); //请求的参数 Object[] args = joinPoint.getArgs(); String params=""; for(Object o:args){ params+= JSON.toJSONString(o); } if(!StringUtils.isEmpty(params)) { sysLog.setParams(params); } //设置IP地址 sysLog.setIp(HttpUtils.getIpAddress()); //用户名 String username = UserUtils.getCurrentPrinciple(); if(!StringUtils.isEmpty(username)) { sysLog.setUsername(username); } sysLog.setCreateDate(new Date()); //保存系统日志 loggerService.log(sysLog); }
public void saveSysLog(JoinPoint joinPoint) { MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); SysLog sysLog = new SysLog(); SysLogger sysLogger = method.getAnnotation(SysLogger.class); if (sysLogger != null) { //注解上的描述 sysLog.setOperation(sysLogger.value()); } //请求的方法名 String className = joinPoint.getTarget().getClass().getName(); String methodName = signature.getName(); sysLog.setMethod(className + "." + methodName + "()"); //请求的参数 Object[] args = joinPoint.getArgs(); String params = ""; for (Object o : args) { params += JSON.toJSONString(o); } if (!StringUtils.isEmpty(params)) { sysLog.setParams(params); } //设置IP地址 sysLog.setIp(HttpUtils.getIpAddress()); //用户名 String username = UserUtils.getCurrentPrinciple(); if (!StringUtils.isEmpty(username)) { sysLog.setUsername(username); } sysLog.setCreateDate(new Date()); //保存系统日志 loggerService.log(sysLog); }
public void saveSysLog(JoinPoint joinPoint) { System.out.println("MYTAG:User SysLoggerAspect saveLogger start..."); MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); SysLog sysLog = new SysLog(); SysLogger sysLogger = method.getAnnotation(SysLogger.class); if(sysLogger != null){ //注解上的描述 sysLog.setOperation(sysLogger.value()); } //请求的方法名 String className = joinPoint.getTarget().getClass().getName(); String methodName = signature.getName(); sysLog.setMethod(className + "." + methodName + "()"); //请求的参数 Object[] args = joinPoint.getArgs(); String params=""; for(Object o:args){ params+= JSON.toJSONString(o); } if(!StringUtils.isEmpty(params)) { sysLog.setParams(params); } //设置IP地址 sysLog.setIp(HttpUtils.getIpAddress()); //用户名 String username = UserUtils.getCurrentPrinciple(); if(!StringUtils.isEmpty(username)) { sysLog.setUsername(username); } sysLog.setCreateDate(new Date()); //保存系统日志 loggerService.log(sysLog); }
public void saveSysLog(JoinPoint joinPoint) { MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); SysLog sysLog = new SysLog(); SysLogger sysLogger = method.getAnnotation(SysLogger.class); if (sysLogger != null) { //注解上的描述 sysLog.setOperation(sysLogger.value()); } //请求的方法名 String className = joinPoint.getTarget().getClass().getName(); String methodName = signature.getName(); sysLog.setMethod(className + "." + methodName + "()"); //请求的参数 Object[] args = joinPoint.getArgs(); String params = ""; for (Object o : args) { params += JSON.toJSONString(o); } if (!StringUtils.isEmpty(params)) { sysLog.setParams(params); } //设置IP地址 sysLog.setIp(HttpUtils.getIpAddress()); //用户名 String username = UserUtils.getCurrentPrinciple(); if (!StringUtils.isEmpty(username)) { sysLog.setUsername(username); } sysLog.setCreateDate(new Date()); //保存系统日志 loggerService.log(sysLog); }