초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,144 @@
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; }
}

View File

@@ -0,0 +1,100 @@
using System.Text.Json.Serialization;
using UGQDatabase.Models;
namespace UGQApiServer.Models;
#pragma warning disable CS8618
public class GetGameDBAccountByEmail
{
public string Message { get; set; }
public string? LoginAccountId { get; set; }
public string? UserGuid { get; set; }
public string? Nickname { get; set; }
}
public class AddGameDBAccountRequest
{
public string LoginAccountId { get; set; }
public string Nickname { get; set; }
}
public class AddGameDBAccountByEmailRequest
{
public string Email { get; set; }
public string Nickname { get; set; }
}
public class AddGameDBAccountResponse
{
public string LoginAccountId { get; set; }
public string UserGuid { get; set; }
public string Nickname { get; set; }
}
public class AddFakeUgcNpcReqeust
{
public string UserGuid { get; set; }
public string UgcNpcNickname { get; set; }
}
public class AddCreatorPointReqeust
{
public string UserGuid { get; set; }
public long QuestId { get; set; }
public long Revision { get; set; }
public int Amount { get; set; }
}
public class SettleUpCreatorPointReqeust
{
public string UserGuid { get; set; }
public int Amount { get; set; }
}
public class GameQuestDataFakeUpdateReqeust
{
public string UserGuid { get; set; }
public string QuestContentId { get; set; }
}
public class ChangeCurrencyAmountRequest
{
public string UserGuid { get; set; }
public double Amount { get; set; }
}
public class ChangeCurrencyAmountResponse
{
public string UserGuid { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CurrencyType CurrencyType { get; set; }
public double CurrentAmount { get; set; }
}
public class ValidateQuestRequest
{
public string UserGuid { get; set; }
}
public class ValidateQuestItem
{
public QuestContentEntity QuestContent { get; set; }
public List<QuestDialogEntity> QuestDialogs { get; set; }
public List<string> Errors { get; set; }
}
public class ValidateQuestResponse
{
public List<ValidateQuestItem> Items { get; set; }
}
public class CopyGameScriptDataRequest
{
public long QuestId { get; set; }
}

View File

@@ -0,0 +1,144 @@
using MetaAssets;
namespace UGQApiServer.Models;
#pragma warning disable CS8618
public class UGQNpcMetaData
{
public int? NpcId { get; set; }
public string? UgcNpcGuid { get; set; }
public string NpcName { get; set; }
public string NpcTitle { get; set; }
public EGenderType NpcGender { get; set; }
public Locaion Location { get; set; }
}
public class Locaion
{
public int x { get; set; }
public int y { get; set; }
}
public class UGQNpcActionMetaData
{
public int ActionId { get; set; }
public string ActionName { get; set; }
public string Url { get; set; }
}
public class UGQNpcMetaDataList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<UGQNpcMetaData> Npcs { get; set; }
}
public class TaskAction
{
public int ActionId { get; set; }
public string ActionName { get; set; }
public bool Disabled { get; set; }
}
public class TaskActionList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<TaskAction> TaskActions { get; set; }
}
public class DialogType
{
public int TypeId { get; set; }
public string TypeName { get; set; }
public bool Disabled { get; set; }
}
public class DialogTypeList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<DialogType> DialogTypes { get; set; }
}
public class DialogAction
{
public int? ActionId { get; set; }
public string ActionName { get; set; }
public bool Disabled { get; set; }
}
public class DialogActionList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<DialogAction> DialogActions { get; set; }
}
public class TaskActionValue
{
public int? ValueId { get; set; }
public string? UgcValueGuid { get; set; }
public string ValueName { get; set; }
}
public class TaskActionValueList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<TaskActionValue> Values { get; set; }
}
public class DialogActionValue
{
public int? ValueId { get; set; }
public string ValueName { get; set; }
}
public class DialogActionValueList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<DialogActionValue> Values { get; set; }
}
public class NpcActionValue
{
public int Id { get; set; }
public string Name { get; set; }
public string FileName { get; set; }
}
public class MapDataValue
{
public int Id { get; set; }
public string Name { get; set; }
public int MapSize_X { get; set; }
public int MapSize_Y { get; set; }
public string ImageFileName { get; set; }
}
public class NpcActionValueList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<NpcActionValue> Values { get; set; }
}
public class MapDataValueList
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<MapDataValue> Values { get; set; }
}

View File

@@ -0,0 +1,124 @@
using System.Text.Json.Serialization;
using UGQDataAccess;
using UGQDatabase.Models;
namespace UGQApiServer.Models;
#pragma warning disable CS8618
public class OldDevLoginRequest
{
public string UserGuid { get; set; }
}
public class DevLoginRequest
{
public string LoginAccountId { get; set; }
}
public class LoginRequest
{
public string WebPortalToken { get; set; }
}
public class IgmLoginResponse
{
public string UserGuid { get; set; }
public string Nickname { get; set; }
public string AccessToken { get; set; }
}
public class LoginResponse
{
public string UserGuid { get; set; }
public string Nickname { get; set; }
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
}
public class RefreshTokenRequest
{
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
}
public class RefreshTokenResponse
{
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
}
public class UGQAccount
{
public string UserGuid { get; set; }
public string Nickname { get; set; }
public string AccountId { get; set; }
public int SlotCount { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType GradeType { get; set; }
public double CreatorPoint { get; set; }
public DateTime CreatedAt { get; set; }
}
public class UGQAccountDetail : UGQAccount
{
public int TotalQuests { get; set; }
}
public class UGQAccountCurrency
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public CurrencyType CurrencyType { get; set; }
public double Amount { get; set; }
}
public class UGQSlotPrice
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public CurrencyType CurrencyType { get; set; }
public double Price { get; set; }
}
public class UGQAccountItem : UGQAccount
{
public int QuestCount { get; set; }
}
public class UGQAccountMoney : UGQAccount
{
public double Sapphire { get; set; }
}
public class UGQSummaryList
{
public List<UGQSummary> UGQSummaries { get; set; }
}
public class UGQAddQuestDialogResponse
{
public UGQContent QuestContent { get; set; }
public UGQDialog QuestDialog { get; set; }
}
public class TagIdResponse
{
public int TagId { get; set; }
public string TagName { get; set; }
}
public class UserBeacon
{
public string BeaconId { get; set; }
public string BeaconName { get; set; }
}
public class UserBeaconsResponse
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool HasNextPage { get; set; }
public List<UserBeacon> UserBeacons { get; set; }
}

View File

@@ -0,0 +1,208 @@
using System.Text.Json.Serialization;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
using UGQDatabase.Models;
using UGQDataAccess.Service;
using UGQDataAccess.Repository.Models;
namespace UGQApiServer.Models;
#pragma warning disable CS8618
public class UGQStateGroup
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuestContentState State { get; set; }
public int Count { get; set; }
}
public class UGQSummary
{
public string QuestContentId { get; set; }
public long QuestId { get; set; }
public long Revision { get; set; }
public string UserGuid { get; set; }
public string Author { get; set; }
public int BeaconId { get; set; }
public string? UgcBeaconGuid { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType GradeType { get; set; }
public string Title { get; set; }
public List<string> Languages { get; set; }
public string Description { get; set; }
public int Cost { get; set; }
public string TitleImagePath { get; set; }
public string BannerImagePath { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuestContentState State { get; set; }
public DateTime UpdatedAt { get; set; }
public DateTime CreatedAt { get; set; }
public UGQStats Stats { get; set; }
public string BeaconName { get; set; }
public string Savelanguage { get; set; }
}
public class UGQQuestProfitStats
{
public string QuestContentId { get; set; }
public long QuestId { get; set; }
public long Revision { get; set; }
public string Title { get; set; }
public string TitleImagePath { get; set; }
public string BannerImagePath { get; set; }
public int Completed { get; set; }
public double TotalProfit { get; set; }
}
public class UGQText
{
public string Kr { get; set; }
public string En { get; set; }
public string Jp { get; set; }
}
public class UGQPresetImage
{
public int Id { get; set; }
public string ImagePath { get; set; }
}
public class UGQDialogSequenceAction
{
public DialogTalker Talker { get; set; }
public int Type { get; set; }
public UGQText Talk { get; set; }
public int Condition { get; set; }
public int ConditionValue { get; set; }
public int NextSequence { get; set; }
public int NpcAction { get; set; }
public string TypeName { get; set; }
public string ConditioneName { get; set; }
public string ConditioneValueName { get; set; }
}
public class UGQDialogSequence
{
public int SequenceId { get; set; }
public List<UGQDialogSequenceAction> Actions { get; set; }
}
public class UGQDialog
{
public string DialogId { get; set; }
public List<UGQDialogSequence> Sequences { get; set; }
}
public class UGQTask
{
public UGQText GoalText { get; set; }
public int ActionId { get; set; }
public int ActionValue { get; set; }
public bool IsShowNpcLocation { get; set; }
public string? UgcActionValueGuid { get; set; }
public string? UgcActionValueName { get; set; }
public string? DialogId { get; set; }
public string ActionName { get; set; }
public string ActionValueName { get; set; }
}
public class UGQContent
{
public string QuestContentId { get; set; }
public long QuestId { get; set; }
public long Revision { get; set; }
public int BeaconId { get; set; }
public string? UgcBeaconGuid { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UgqGradeType GradeType { get; set; }
public UGQText Title { get; set; }
public List<string> Languages { get; set; }
public string TitleImagePath { get; set; }
public string BannerImagePath { get; set; }
public UGQText Description { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuestContentState State { get; set; }
public int Cost { get; set; }
public List<UGQTask> Tasks { get; set; }
public DateTimeOffset LastUpdated { get; set; }
public string BeaconName { get; set; }
}
public class UGQBoard
{
public int QuestContentId { get; set; }
public long QuestId { get; set; }
public long Revision { get; set; }
public string Title { get; set; }
public List<string> Languages { get; set; }
public string TitleImagePath { get; set; }
public string BannerImagePath { get; set; }
public string Description { get; set; }
public UGQStats Stats { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuestContentState State { get; set; }
public int Cost { get; set; }
public DateTimeOffset LastUpdated { get; set; }
}
public class UGQCreatorPointHistory
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public CreatorPointHistoryKind Kind { get; set; }
// public string DetailReason { get; set; }
public double Amount { get; set; }
public double TotalAmount { get; set; }
public DateTimeOffset CreatedAt { get; set; }
}
public class UGQCreatorPointHistoryResult
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
public List<UGQCreatorPointHistory> Items { get; set; }
}
public class UGQSummaryResponse
{
public int TotalCount { get; set; }
public List<UGQStateGroup> StateGroups { 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 UGQQuestProfitStatsResult
{
public int PageNumber { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
public List<UGQQuestProfitStats> Items { get; set; }
}