24 lines
507 B
C#
24 lines
507 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace TakeoutSaaS.Application.Identity.Contracts;
|
|
|
|
/// <summary>
|
|
/// 微信小程序登录请求。
|
|
/// </summary>
|
|
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; }
|
|
}
|