package net.tooan.ynpay.wechat.agent.facade; import net.tooan.ynpay.wechat.agent.model.Msg; import net.tooan.ynpay.wechat.agent.model.Server; import javax.ejb.Remote; /** * Created with IntelliJ IDEA. * User: Jing * Date: 13-11-5 * Time: 下午9:57 */ @Remote public interface WechatFacade { /** * 获取 wechat * * @param name wechat 名称 * @return wechat * @throws Exception */ Server getServer(String name) throws Exception; /** * 保存消息 * * @param msg 要保存的消息 * @return 保存后的消息 * @throws Exception */ Msg saveMsg(Msg msg) throws Exception; /** * 获取自定义消息 * * @param key 自定义消息的键 * @return 自定义消息 */ Msg getCustomMsg(String key); }