package com.cool.store.controller;

import com.cool.store.response.ResponseResult;
import com.cool.store.service.HyPartnerClerkService;
import com.cool.store.vo.PartnerClerkVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

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

/**
 * @Author suzhuhong
 * @Date 2023/6/15 11:13
 * @Version 1.0
 */
@RestController
@Slf4j
@Api(tags = "店员")
public class ClerkController {

    @Resource
    HyPartnerClerkService hyPartnerClerkService;


    @GetMapping(path = "/queryPartnerClerkInfoList")
    @ApiOperation("根据线索ID 查询店员列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
    })
    public ResponseResult<List<PartnerClerkVO>> queryPartnerClerkInfoList(@RequestParam(value = "lineId",required = false)Long lineId){
        return ResponseResult.success(hyPartnerClerkService.getPartnerClerkList(lineId));
    }



}
