package com.vetti.web.controller.hotake;

import com.vetti.common.core.controller.BaseController;
import com.vetti.common.core.domain.R;
import com.vetti.web.entity.dto.HotakePersonalStatisticalAnalysisDataDto;
import com.vetti.web.service.IHotakeCommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  通用业务逻辑处理接口 Controller
 *
 * @author wangxiangshun
 * @date 2025-11-09
 */
@Api(tags ="通用业务逻辑处理接口")
@RestController
@RequestMapping("/hotake/commonInfo")
public class HotakeCommonController extends BaseController
{
    @Autowired
    private IHotakeCommonService commonService;

    /**
     * 个人信息-统计分析数据
     */
    @ApiOperation("候选者-个人信息-统计分析数据")
    @GetMapping("/getCandidateStatisticalAnalysisData")
    public R<HotakePersonalStatisticalAnalysisDataDto> handleCandidateStatisticalAnalysisData()
    {
        HotakePersonalStatisticalAnalysisDataDto data = commonService.getCandidateStatisticalAnalysisData();
        return R.ok(data);
    }

}
