package com.cyksj.service.authorization;

import com.cyksj.model.dto.JsSdkTicket;

import java.net.MalformedURLException;

/**
 * @author chan
 * @className AuthorizationService
 * @description 授权服务
 * @date 2021/10/8 1:58 下午
 */
public interface AuthorizationService {

    /**
     * 微信授权转发地址
     *
     * @param state
     * @param authType
     * @return
     */
    String createUrl(String url, String state, String authType) throws MalformedURLException;

    JsSdkTicket getJsTicket(String appId, String url) throws Exception;

    String createWxAuthLoginUrl(String state,String appId, String redirectUrl);
}
