package net.northking.cctp.executePlan.feign;

import com.hzbank.testteam.autotest.dependencies.baseDefineDependency.entity.Message;
import com.hzbank.testteam.autotest.dependencies.baseDefineDependency.vo.ResponseVO;
import net.northking.cctp.common.feign.FeignCctpConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "apiCommonCenterService", value = "common-center", path = "/common-center/api", configuration = {FeignCctpConfig.class})
public interface ApiCommonCenterService {

    /**
     * 发送消息
     *
     * @param message 消息
     * @return 是否成功
     */
    @RequestMapping(value = "/message/sendMessage", method = RequestMethod.POST)
    ResponseVO sendMessage(@RequestBody Message message);

}
