Files
number_zj/20220330_Vote/Ewide.Core/OAuth/IWechatOAuth.cs
2022-03-30 17:54:33 +08:00

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);
}
}