package com.crm.manager.controller;

import com.crm.manager.service.ib.AgentPointFeignService;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.ib.point.AgentPointRecordDto;
import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
import com.crm.rely.backend.core.entity.ib.point.AgentPointRecordListEntity;
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;

/**
 * Created by max on 2020/8/31.
 */
@RestController
@RequestMapping("/agent/point/change")
public class AgentPointController {

    @Autowired
    private AgentPointFeignService agentPointFeignService;

    @PostMapping("/list")
    public BaseResultWithPagerDto<List<AgentPointRecordDto>> getList(@RequestBody AgentPointRecordListEntity entity, InfoEntity infoEntity) throws Exception {
        return agentPointFeignService.getList(entity);
    }

}
