using QYZH.InteractiveMagazine.IService.Dto;
using QYZH.InteractiveMagazine.Models.Entity;
namespace QYZH.InteractiveMagazine.IService;
///
/// 微信小程序认证服务
///
public interface IWeChatAuthService : IBaseService
{
///
/// 微信小程序一键登录
///
/// 登录输入(含微信 code)
/// 登录结果(含 Token 和用户信息)
Task LoginAsync(WeChatLoginInput input);
///
/// 切换用户(同一 OpenId 下切换身份)
///
/// 当前登录用户ID
/// 切换用户输入
/// 切换结果(含新 Token 和目标用户详情)
Task SwitchUserAsync(long currentUserId, WeChatSwitchUserInput input);
}