24 lines
647 B
C#
24 lines
647 B
C#
|
|
using QYZH.InteractiveMagazine.IService.Dto;
|
||
|
|
|
||
|
|
namespace QYZH.InteractiveMagazine.IService;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 微信小程序服务接口
|
||
|
|
/// </summary>
|
||
|
|
public interface IWeChatMiniProgramService
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 微信登录
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="code">微信登录凭证</param>
|
||
|
|
/// <returns>微信登录结果</returns>
|
||
|
|
Task<WeChatLoginOutput> WeChatLoginAsync(string code);
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 获取手机号
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="code">获取手机号凭证</param>
|
||
|
|
/// <returns>手机号信息</returns>
|
||
|
|
Task<WeChatPhoneNumberOutput> GetPhoneNumberAsync(string code);
|
||
|
|
}
|