package cn.axzo.msg.center.api;

import cn.axzo.msg.center.api.request.AliMessageCallbackRequestDto;
import cn.axzo.msg.center.api.response.AliCallbackResponseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author yanglin
 */
@Component
@FeignClient(value = "msg-center", url = "${server.serviceUrl:http://msg-center:8080}")
public interface MnsCallbackApi {

    @RequestMapping(value = "callback/mns/ali", method = RequestMethod.POST)
    AliCallbackResponseDto aliCallback(@RequestBody List<AliMessageCallbackRequestDto> request);

}
