mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-25 03:09:54 +08:00
49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
using System.Application.Columns;
|
|
using MPKey = MessagePack.KeyAttribute;
|
|
using MPObj = MessagePack.MessagePackObjectAttribute;
|
|
using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute;
|
|
using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
|
|
|
|
namespace System.Application.Models
|
|
{
|
|
/// <summary>
|
|
/// 请求 - 换绑手机
|
|
/// </summary>
|
|
public static class ChangePhoneNumberRequest
|
|
{
|
|
public class Validation : IReadOnlySmsCode
|
|
{
|
|
[MPKey(0)]
|
|
[N_JsonProperty("0")]
|
|
[S_JsonProperty("0")]
|
|
public string? SmsCode { get; set; }
|
|
|
|
[MPKey(1)]
|
|
[N_JsonProperty("1")]
|
|
[S_JsonProperty("1")]
|
|
public string? PhoneNumber { get; set; }
|
|
}
|
|
|
|
public class New : IReadOnlyPhoneNumber, IReadOnlySmsCode
|
|
{
|
|
[MPKey(0)]
|
|
[N_JsonProperty("0")]
|
|
[S_JsonProperty("0")]
|
|
public string? PhoneNumber { get; set; }
|
|
|
|
[MPKey(1)]
|
|
[N_JsonProperty("1")]
|
|
[S_JsonProperty("1")]
|
|
public string? SmsCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上一个接口返回的CODE
|
|
/// </summary>
|
|
[MPKey(2)]
|
|
[N_JsonProperty("2")]
|
|
[S_JsonProperty("2")]
|
|
public string? Code { get; set; }
|
|
}
|
|
}
|
|
}
|