package com.house365.service.impl;

import com.house365.beans.dto.MessageDTO;
import com.house365.service.interfaces.MessageClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>Title: message api</p>
 * <p>Description: </p>
 * <p>Date: 2016/12/14</p>
 *
 * @author XN
 * @version 1.0
 */
@Component
public class MessageClientHystrix implements MessageClient {

    @Override
    public String sendText(
        @RequestParam(value = "corpId") String corpId, @RequestParam(value = "secret") String secret, MessageDTO message
    ) {
        return null;
    }

    @Override
    public String sendCardText(
            @RequestParam(value = "corpId") String corpId, @RequestParam(value = "secret") String secret, MessageDTO message
    ) {
        return "error";
    }


}
