package com.securitycontrol.system.api;

import com.securitycontrol.common.core.constant.ServiceNameConstants;
import com.securitycontrol.common.core.domain.Result;
import com.securitycontrol.common.core.web.page.TableDataInfo;
import com.securitycontrol.system.api.domain.decision.qo.TeamChangeListQo;
import com.securitycontrol.system.api.domain.decision.vo.TeamChangeNumVo;
import com.securitycontrol.system.api.factory.RemoteDecisionFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 分析决策服务
 *
 * @author czc
 */
@FeignClient(contextId = "decisionService", value = ServiceNameConstants.DECISION_SERVICE, fallbackFactory = RemoteDecisionFallbackFactory.class)
public interface RemoteDecisionService {

    /**
     * 查询计划班组变化告警
     *
     * @param startDate 用户名
     * @return 结果
     */
    @GetMapping("/jjPlan/getTeamNum")
    Result<TeamChangeNumVo> getTeamNum(String startDate);

    /**
     *未知的的方法
     * @param teamChangeListQo
     * @return
     */
    @GetMapping("/jjPlan/queryByPage")
    Result<TableDataInfo> queryByPage(TeamChangeListQo teamChangeListQo);

}
