package com.keao.edu.auth.api.client;

import com.keao.edu.auth.api.client.fallback.SysMessageFeignServiceFallback;
import com.keao.edu.auth.api.entity.SysMessageParams;
import com.keao.edu.common.config.FeignConfiguration;
import com.keao.edu.common.enums.MessageTypeEnum;
import com.keao.edu.thirdparty.message.MessageSenderPluginContext;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;
import java.util.Map;

@FeignClient(contextId = "SysMessageFeignService", name = "auth-server", configuration = { FeignConfiguration.class }, fallback = SysMessageFeignServiceFallback.class)
public interface SysMessageFeignService {


    @GetMapping(value = "sysMessage/batchSendMessage", consumes = MediaType.APPLICATION_JSON_VALUE)
    void batchSendMessage(SysMessageParams sysMessageParams);
}
