using System.ComponentModel.DataAnnotations; namespace TakeoutSaaS.Application.Identity.Contracts; /// /// 微信小程序登录请求。 /// public sealed class WeChatLoginRequest { [Required] [MaxLength(128)] public string Code { get; set; } = string.Empty; [MaxLength(64)] public string? Nickname { get; set; } [MaxLength(256)] public string? Avatar { get; set; } public string? EncryptedData { get; set; } public string? Iv { get; set; } }