package com.mzl.flower.web.customer; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.mzl.flower.base.BaseController; import com.mzl.flower.base.R; import com.mzl.flower.base.ReturnDataDTO; import com.mzl.flower.dto.request.flower.FlowerShowQueryDTO; import com.mzl.flower.dto.response.flower.FlowerShowListDTO; import com.mzl.flower.service.flower.FlowerService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/api/browse/history") @Api(value = "浏览历史管理", tags = "浏览历史管理") @Validated @Slf4j public class BrowseHistoryController extends BaseController { private final FlowerService flowerService; public BrowseHistoryController(FlowerService flowerService) { this.flowerService = flowerService; } @GetMapping("/list") @ApiOperation(value = "我的浏览历史", notes = "我的浏览历史") public ResponseEntity>> myBrowseHistory(Page page, FlowerShowQueryDTO dto) { return returnData(R.SUCCESS.getCode(),flowerService.myBrowseHistory(page,dto)); } }