|  |  | 
 |  |  | import com.mzl.flower.base.BaseController; | 
 |  |  | import com.mzl.flower.base.R; | 
 |  |  | import com.mzl.flower.base.ReturnDataDTO; | 
 |  |  | import com.mzl.flower.config.security.SecurityUtils; | 
 |  |  | import com.mzl.flower.dto.request.flower.FlowerShowQueryDTO; | 
 |  |  | import com.mzl.flower.dto.response.flower.FlowerShowListDTO; | 
 |  |  | import com.mzl.flower.service.flower.FlowerService; | 
 |  |  | 
 |  |  |     public ResponseEntity<ReturnDataDTO<Page<FlowerShowListDTO>>> myBrowseHistory(Page page, FlowerShowQueryDTO dto) { | 
 |  |  |         return returnData(R.SUCCESS.getCode(),flowerService.myBrowseHistory(page,dto)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PostMapping("/clear") | 
 |  |  |     @ApiOperation(value = "清空失效商品", notes = "清空失效商品") | 
 |  |  |     public ResponseEntity<ReturnDataDTO<Page<FlowerShowListDTO>>> clear() { | 
 |  |  |         flowerService.clearInvalidHistory(SecurityUtils.getUserId()); | 
 |  |  |         return returnData(R.SUCCESS.getCode(),null); | 
 |  |  |     } | 
 |  |  | } |