package com.yeejoin.amos.maintenance.feign;
import com.yeejoin.amos.maintenance.business.util.CommonResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.yeejoin.amos.maintenance.business.param.PushMsgParam;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.cloud.openfeign.FeignClient;



//推送
@FeignClient(name = "${Push.fegin.name}", configuration={MultipartSupportConfig.class})
public interface PushFeign {


//		    
//		@RequestMapping(value = "/api/user/sendMessage", method = RequestMethod.POST)
//		CommonResponse sendMessage( @RequestBody List<PushMsgParam> responses);
	
	    
	    @RequestMapping(value = "/api/user/sendMessageone", method = RequestMethod.POST)
        CommonResponse sendMessageone(@RequestBody PushMsgParam responses);
	    
	  
	    @RequestMapping(value = "/api/user/pushNoticeMany", method = RequestMethod.POST)
	    CommonResponse pushNoticeMany( @RequestBody PushMsgParam responses);
	    
	    @RequestMapping(value = "/api/user/buildPushPayload", method = RequestMethod.POST)
	    CommonResponse buildPushPayload( @RequestBody PushMsgParam responses);
	    
	    @RequestMapping(value = "/api/user/pushDevice", method = RequestMethod.GET)
	    CommonResponse PushDevice( @RequestParam("alias") String alias);
	    
	    @RequestMapping(value = "/api/user/PushDeviceRegistration", method = RequestMethod.GET)
	    CommonResponse PushDeviceRegistration( @RequestParam("registrationId") String registrationId,@RequestParam("alias") String alias);
}
