package com.ruoyi.ibs.visit.controller;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.ibs.visit.domain.dto.VisitCustomerCountDTO;
import com.ruoyi.ibs.visit.domain.dto.VisitIdRemarkDTO;
import com.ruoyi.ibs.visit.service.VisitInfoBotService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author 吴凯程
 * @Date 2025/11/18
 **/
@Api(tags = "智能体查询接口")
@RestController
@RequestMapping("/bot")
public class VisitInfoBotController extends BaseController {

    @Resource
    private VisitInfoBotService visitInfoBotService;

    @ApiOperation("查询月度汇总")
    @Anonymous
    @GetMapping("/queryVisitCustomerCount")
    public AjaxResult queryVisitCustomerCount( VisitCustomerCountDTO visitCustomerCountDTO) {
        return AjaxResult.success(visitInfoBotService.queryVisitCustomerCount(visitCustomerCountDTO));
    }

    @ApiOperation("查询个人汇总")
    @Anonymous
    @GetMapping("/queryVisitIdRemark")
    public AjaxResult queryVisitIdRemark(VisitIdRemarkDTO visitIdRemarkDTO) {
        return AjaxResult.success(visitInfoBotService.queryVisitIdRemark(visitIdRemarkDTO));
    }
}
