package com.xhpc.common.api;

import com.xhpc.common.api.factory.UserTypeFallbackFactory;
import com.xhpc.common.core.constant.ServiceNameConstants;
import com.xhpc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author yuyang
 * @date 2022/4/8 16:36
 */
@FeignClient(contextId ="activityInternetService",value = ServiceNameConstants.XHPC_ACTIVITY, fallbackFactory = UserTypeFallbackFactory.class)
public interface ActivityInternetService {

    /**
     * 查询该时间段是否有流量方活动
     * @param
     * @return
     */
    @GetMapping("/activity/internet/getActivityStationTime")
    R<Map<String, Object>> getActivityStationTime(@RequestParam(value = "internetUserId")Long internetUserId,@RequestParam(value = "startTime")String startTime,@RequestParam(value = "endTime")String endTime,@RequestParam(value = "chargingStationId")Long chargingStationId,@RequestParam(value = "tenantId")String tenantId);

    /**
     * 查询该时间段是否有流量方活动
     * @param
     * @return
     */
    @GetMapping("/activity/internet/getActivityFormulaTime")
    R<Map<String, Object>> getActivityFormulaTime(@RequestParam(value = "activityId")Integer activityId,@RequestParam(value = "startTime")String startTime,@RequestParam(value = "endTime")String endTime);


}
