ChannelController.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.zanxiang.manage.controller;
  2. import com.zanxiang.common.domain.ResultVo;
  3. import com.zanxiang.manage.domain.vo.ChannelChoiceVO;
  4. import com.zanxiang.manage.service.ChannelService;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import io.swagger.annotations.ApiResponse;
  8. import io.swagger.annotations.ApiResponses;
  9. import lombok.extern.slf4j.Slf4j;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.web.bind.annotation.GetMapping;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RestController;
  14. import java.util.List;
  15. /**
  16. * @author : lingfeng
  17. * @time : 2022-06-30
  18. * @description : 渠道管理接口
  19. */
  20. @Api(tags = {"渠道管理接口"})
  21. @RestController
  22. @RequestMapping("/channel")
  23. @Slf4j
  24. public class ChannelController {
  25. @Autowired
  26. private ChannelService channelService;
  27. @ApiOperation(value = "渠道选择列表查询")
  28. @GetMapping(value = "/choice/list")
  29. @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = ChannelChoiceVO.class, responseContainer = "list")})
  30. public ResultVo<List<ChannelChoiceVO>> choiceList() {
  31. return new ResultVo<>(channelService.choiceList());
  32. }
  33. }