package com.storlead.sales.controller.customer;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.storlead.framework.common.result.Result;
import com.storlead.sales.pojo.dto.customer.CustomerOwnerRecordSearchDTO;
import com.storlead.sales.pojo.vo.customer.CustomerOwnerRecordListVO;
import com.storlead.sales.service.customer.CustomerOwnerRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 客户归属人变更记录表 前端控制器
 * </p>
 *
 * @author YPZ
 * @since 2024-11-05
 */
@RestController
@RequestMapping("/customer-owner-record")
@Api(tags = "销售: 客户管理相关接口")
public class CustomerOwnerRecordController {

    @Resource
    private CustomerOwnerRecordService customerOwnerRecordService;
    @RequestMapping(value = "/list")
    @ApiOperation(value = "客户归属人变更查询-列表", notes = "客户归属人变更查询-列表")
    public Result<IPage<CustomerOwnerRecordListVO>> list(@RequestBody CustomerOwnerRecordSearchDTO customerOwnerRecordSearchDTO) {

//        return null;
        return customerOwnerRecordService.selectListVO(customerOwnerRecordSearchDTO);
    }

}
