package com.cool.store.controller.webb;

import com.cool.store.dto.partner.UserChannelDTO;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.HyPartnerUserChannelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author suzhuhong
 * @Date 2023/8/10 11:17
 * @Version 1.0
 */
@RestController
@RequestMapping("/pc/")
@Api(tags = "线索来源")
@Slf4j
public class UserChannelController {

    @Resource
    HyPartnerUserChannelService hyPartnerUserChannelService;

    @GetMapping(path = "/queryAllUserChannelList")
    @ApiOperation("线索来源列表")
    public ResponseResult<List<UserChannelDTO>> queryAllUserChannelList(){
        return  ResponseResult.success(hyPartnerUserChannelService.queryAllUserChannelList());
    }
}
