Files
caliverse_server/UGQApiServer/Models/AdminApiModels.cs
2025-05-01 07:20:41 +09:00

144 lines
3.4 KiB
C#

using System;
using System.Text.Json.Serialization;
using Amazon.S3.Model;
using UGQDatabase.Models;
namespace UGQApiServer.Models;
#pragma warning disable CS8618
public class AdminSignupRequest
{
public string Username { get; set; }
public string Password { get; set; }
}
public class AdminSignupResponse
{
public string Username { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UGQAccountRole Role { get; set; }
}
public class AdminLoginRequest
{
public string Username { get; set; }
public string Password { get; set; }
}
public class AdminLoginResponse
{
public string Username { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UGQAccountRole Role { get; set; }
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
}
public class AdminChangePaswordRequest
{
public string NewPassword { get; set; }
}
public class AdminChangePaswordResponse
{
}
public class AdminUpdatePaswordRequest
{
public string Username { get; set; }
public string NewPassword { get; set; }
}
public class AdminUpdatePaswordResponse
{
}
public class UQGAllQuestResponse
{
public long TotalCount { get; set; }
public int PageNumber { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
public List<UGQSummary> Summaries { get; set; }
}
public class UGQAllAccountItemResponse
{
public long TotalCount { get; set; }
public int PageNumber { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
public List<UGQAccountItem> Accounts { get; set; }
}
public class UGQModifyAccountSlot
{
public string UserGuid { get; set; }
public int Count { get; set; }
}
public class UGQReserveAccountGrade
{
public string UserGuid { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType GradeType { get; set; }
public DateTime ReserveTime { get; set; }
}
public class UGQModifyAccountGrade
{
public string ReserveId { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType GradeType { get; set; }
public DateTime ReserveTime { get; set; }
}
public class UGQModifyCreatorPoint
{
public string UserGuid { get; set; }
public int Amount { get; set; }
public string Reason { get; set; }
}
public class UGQMetaverseAccount
{
public string? LoginAccountId { get; set; }
public string? UserGuid { get; set; }
public string? Nickname { get; set; }
}
public class UGQReserveAccountGradeResult
{
public string ReserveId { get; set; }
public string UserGuid { get; set; }
public string AccountId { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType CurrentGradeType { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType ReserveGradeType { get; set; }
public DateTime ReserveTime { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsCompleted { get; set; }
}
public class UGQAllReserveAccountGradeItemResponse
{
public long TotalCount { get; set; }
public int PageNumber { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
public List<UGQReserveAccountGradeResult> Accounts { get; set; }
}
public class UGQReserveAccountGradeItemResponse
{
public List<UGQReserveAccountGradeResult> Accounts { get; set; }
}