CarouselImagesController.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.chelvc.cloud.maintain.controller;
  2. import java.util.List;
  3. import com.chelvc.cloud.vehicle.client.CarouselImagesClient;
  4. import com.chelvc.cloud.vehicle.client.dto.CarouselImagesDTO;
  5. import com.chelvc.framework.base.annotation.ResponseWrapping;
  6. import lombok.RequiredArgsConstructor;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.validation.annotation.Validated;
  9. import org.springframework.web.bind.annotation.GetMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. /**
  12. * 轮播图接口
  13. *
  14. * @author liude
  15. * @date 2023/12/20
  16. */
  17. @Validated
  18. @RestController
  19. @ResponseWrapping
  20. @RequiredArgsConstructor(onConstructor = @__(@Autowired))
  21. public class CarouselImagesController {
  22. private final CarouselImagesClient carouselImagesClient;
  23. /**
  24. * 轮播图列表查询
  25. *
  26. * @param
  27. */
  28. @GetMapping("/listCarouselImages/")
  29. public List<CarouselImagesDTO> listCarouselImages() {
  30. return this.carouselImagesClient.listCarouselImages();
  31. }
  32. }