package com.yihu.ehr.analyze.feign; import com.yihu.ehr.constants.ApiVersion; import com.yihu.ehr.constants.MicroServices; import com.yihu.ehr.constants.ServiceApi; import com.yihu.ehr.util.rest.Envelop; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import springfox.documentation.annotations.ApiIgnore; /** * @author hzp * @created 2017.04.28 */ @ApiIgnore @FeignClient(name = MicroServices.Redis) @RequestMapping(ApiVersion.Version1_0) public interface RedisServiceClient { @RequestMapping(value = ServiceApi.Redis.MqChannel.SendMessage, method = RequestMethod.POST) Envelop sendMessage( @RequestParam(value = "publisherAppId") String publisherAppId, @RequestParam(value = "channel") String channel, @RequestParam(value = "message") String message); }