12 lines
388 B
C#
12 lines
388 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace Dilon.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);
|
|
}
|
|
} |