package com.crm.manager.controller;

import com.crm.manager.service.follow.FollowCptLotteryRecordFeignService;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.follow.cpt.FollowCptLotteryRecordDto;
import com.crm.rely.backend.core.entity.follow.cpt.FollowCptLotteryRecordSearchEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/follow/cpt/lottery/record")
public class FollowCptLotteryRecordController {

    @Autowired
    private FollowCptLotteryRecordFeignService followCptLotteryRecordFeignService;

    @PostMapping("/search/list")
    public BaseResultWithPagerDto<List<FollowCptLotteryRecordDto>> searchList(@RequestBody FollowCptLotteryRecordSearchEntity entity) throws Exception {
        return followCptLotteryRecordFeignService.searchList(entity);
    }

}
