using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Infrastructure.WeChat;
namespace YD_Event.Application.Client.Dtos;
///
/// 微信小程序 code2session 输入参数
///
public class WeChatCode2SessionInput
{
///
/// 登录时获取的 code
///
[Required(ErrorMessage = "code 不能为空")]
public string Code { get; set; }
}
///
/// 微信小程序 code2session 输出参数
///
public class WeChatCode2SessionOutput
{
///
/// 用户唯一标识
///
public string OpenId { get; set; }
///
/// 会话密钥
///
public string SessionKey { get; set; }
///
/// 用户在开放平台的唯一标识符(在满足 UnionID 下发条件的情况下会返回)
///
public string? UnionId { get; set; }
}