package cn.axzo.msg.center.inside.notices.service.impl.v3;

import com.alibaba.fastjson.JSONObject;
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 javax.validation.Valid;

/**
 * 过度接口
 *
 * @author yanglin
 */
@Component
@FeignClient(value = "event-hub", url = "http://event-hub:8080")
public interface ActionClient {

    @RequestMapping(value = "action/performAction", method = RequestMethod.POST)
    JSONObject performAction(@RequestBody @Valid JSONObject request);

}