MeiRiYiCheng_1_old/YBDevice.Application/WXConfig/IWXConfigService.cs

29 lines
834 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YBDevice.Application
{
/// <summary>
/// 微信开放平台openticket配置
/// </summary>
public interface IWXConfigService
{
/// <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);
}
}