package org.dromara.resource.api;

import org.dromara.common.core.enums.SmsType;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.resource.api.domain.RemoteSms;

import java.util.LinkedHashMap;

/**
 * 微信服务
 *
 * @author Lion Li
 */
public interface RemoteWeiXinService {

    /**
     * 生成公众号授权二维码
     * @param redirectUri 授权回调url
     * @return
     * @throws ServiceException
     */
    String genPubAuthQrcode(String domain,String redirectUri) throws ServiceException;

    /**
     * 获取授权用户的微信openid
     * @param domain
     * @param code
     * @return
     */
    String getOpenId(String domain,String code);
}
