package com.cyksj.service.wechat;

import com.cyksj.model.dto.AccountJsTicket;
import com.cyksj.model.dto.WeChatAccessToken;

/**
 * @author chan
 * @date 2021-10-10 下午12:29
 */
public interface AccountOps {

    /**
     * 获取access_token
     * https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_access_token.html
     */
    WeChatAccessToken accessToken(String appid, String secret) throws Exception;

    /**
     * 获取js_ticket
     * https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62
     */
    AccountJsTicket jsTicket(String access_token) throws Exception;

}
