package com.crm.manager.controller;

import com.crm.login.rely.backend.controller.BaseLoginController;
import com.crm.manager.service.agent.AgentActivityStatisticsFeignService;
import com.crm.rely.backend.core.dto.agent.activity.statistics.AgentActivityStatisticsDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: houn
 */
@RestController
@RequestMapping("/agent/activity/statistics")
public class AgentActivityStatisticsController extends BaseLoginController {

    @Autowired
    private AgentActivityStatisticsFeignService service;


    @PostMapping("/get")
    public BaseResultDto<AgentActivityStatisticsDto> getStatistics() throws Exception {

        return service.getStatistics();
    }


}
