package com.boman.web.core.api;

import com.boman.domain.constant.ServiceNameConstants;
import com.boman.domain.dto.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author shiqian
 * @date 2021年07月27日 15:50
 **/
@FeignClient(contextId = "remoteAttendanceService", value = ServiceNameConstants.WEB_CORE_SERVICE)
public interface RemoteAttendanceService {

    /**
     * 按月统计人员考勤信息
     *
     * @param map 传入时间 年-月
     * @return AjaxResult
     */
    @PostMapping("/attendance/statistics")
    AjaxResult statisticsByMonth(@RequestBody Map<String, Object> map);
}
