Files
zsxt_nbzs_h5/Api/Ewide.Core/OAuth/IWechatOAuth.cs

12 lines
388 B
C#

using System.Threading.Tasks;
namespace Ewide.Core.OAuth
{
public interface IWechatOAuth
{
Task<TokenModel> GetAccessTokenAsync(string code, string state = "");
string GetAuthorizeUrl(string state = "");
Task<UserInfoModel> GetUserInfoAsync(string accessToken, string openId);
Task<TokenModel> GetRefreshTokenAsync(string refreshToken);
}
}