using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace YBDevice.NApi
{
    /// <summary>
    /// 微信开放平台openticket配置
    /// </summary>
    public interface IWXService
    {
        /// <summary>
        /// 获取openticket
        /// </summary>
        /// <param name="componentAppId"></param>
        /// <returns></returns>
        Task<string> GetOpenTicketAsync(string componentAppId);

        /// <summary>
        /// 获取公众号的刷新token
        /// </summary>
        /// <param name="authorizerId">公众号appid</param>
        /// <param name="componentAppId">开放平台appid</param>
        /// <returns></returns>
        Task<string> GetRefreshToken(string authorizerId, string componentAppId);
    }
}
