초기커밋
This commit is contained in:
13
BrokerApiCore/DbEntity/PlanetInfo.cs
Normal file
13
BrokerApiCore/DbEntity/PlanetInfo.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace BrokerCore.DbEntity;
|
||||
|
||||
public class PlanetInfo
|
||||
{
|
||||
public required string PlanetId { get; init; } // 플래닛 이름
|
||||
public required string PlanetName { get; init; }
|
||||
public required string CompanyName { get; init; } // 플래닛 GUID
|
||||
public required string SecretKey { get; init; } // 플래닛 비밀키 - 칼리버스에서 발급함
|
||||
public required string ServerType { get; init; } // 에코 시스템에 넘길 serverType
|
||||
public string Description { get; init; } = "";
|
||||
public DateTime CreatedAt { get; init; } // 생성 시간
|
||||
public DateTime UpdatedAt { get; set; } // 수정 시간
|
||||
}
|
||||
28
BrokerApiCore/DbEntity/PlanetItemExchangeOrder.cs
Normal file
28
BrokerApiCore/DbEntity/PlanetItemExchangeOrder.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace BrokerCore.DbEntity;
|
||||
using ServerCommon;
|
||||
|
||||
//================================================================================
|
||||
// 교환 거래 주문 정보
|
||||
//================================================================================
|
||||
public class PlanetItemExchangeOrder
|
||||
{
|
||||
public required string OrderId { get; init; } // = Guid.NewGuid().ToString("N"); // 교환 주문 아이디 guid
|
||||
public required ExchangeOrderStatus OrderStatus { get; set; } // 교환 주문 상태
|
||||
public string SeasonId { get; set; } = string.Empty; // 시즌 아이디
|
||||
public required string ExchangeMetaId { get; set; } // 교환 메타 아이디
|
||||
public required int ExchangeMetaAmount {get; set;} // 교환 메타 수량
|
||||
public required string AccountId { get; init; } // sso 아이디
|
||||
public required string UserGuid { get; set; } // 유저 아이디
|
||||
public required string Nickname { get; set; } // 유저 닉네임
|
||||
public required string PlanetId { get; set; } // 플래닛 아이디
|
||||
|
||||
public required CaliverseItemType CaliverseItemType { get; set; } // 칼리버스 아이템 타입
|
||||
public required string CaliverseItemId { get; set; } // 칼리버스 아이템 아이디
|
||||
public required int CaliverseItemDeltaAmount { get; set; } // 칼리버스 아이템 갯수
|
||||
|
||||
public required PlanetItemType PlanetItemType { get; set; } // 칼리버스
|
||||
public required string PlanetItemId { get; set; }
|
||||
public required int PlanetItemDeltaAmount { get; set; }
|
||||
public DateTime CreatedAt { get; set; } // 교환 주문 시작 db 시간
|
||||
public DateTime? CompletedAt { get; set; } = null; // 교환 주문 완료 시간
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace BrokerCore.DbEntity;
|
||||
|
||||
public class PlanetItemExchangeOrderAmountTotalLimit
|
||||
{
|
||||
public required string ExchangeMetaId { get; set; } // 교환 메타 아이디
|
||||
public required DateOnly ExchangeDate { get; set; } // 교환 일자
|
||||
public required string SeasonId { get; set; } // 시즌 아이디
|
||||
public required int DailyAmount { get; set; } // 교환 메타 수량
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; // 생성일
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; // 수정일
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace BrokerCore.DbEntity;
|
||||
|
||||
public class PlanetItemExchangeOrderAmountUserLimit
|
||||
{
|
||||
public required string ExchangeMetaId { get; set; } // 교환 메타 아이디
|
||||
public required DateOnly ExchangeDate { get; set; } // 교환 일자
|
||||
public required string SeasonId { get; set; } // 시즌 아이디
|
||||
public required string UserGuid { get; set; } // 유저 아이디
|
||||
public required int DailyAmount { get; set; } // 교환 메타 수량
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; // 생성일
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; // 수정일
|
||||
}
|
||||
24
BrokerApiCore/DbEntity/SapphireExchangeOrder.cs
Normal file
24
BrokerApiCore/DbEntity/SapphireExchangeOrder.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace BrokerCore.DbEntity;
|
||||
|
||||
public enum ExchangeOrderStatus
|
||||
{
|
||||
// Init = 0,
|
||||
Pending = 1,
|
||||
Completed = 2,
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
// 사파이어 교환 거래 시 플랫폼의 주문 db와 무결성을 처리하기 위한 보관소
|
||||
//================================================================================
|
||||
public class SapphireExchangeOrder
|
||||
{
|
||||
public required string OrderId { get; init; } // 사파이어 교환 주문 아이디 guid
|
||||
public required ulong AccountId { get; init; } // sso 아이디
|
||||
public required ExchangeOrderStatus OrderStatus { get; set; } // 사파이어 교환 주문 상태
|
||||
public required string UserGuid { get; set; } // 유저 아이디
|
||||
public required string PlanetId { get; set; } // 플래닛 아이디
|
||||
public long SapphireReducedDelta { get; set; } // 사파이어 차감 수량
|
||||
public long PlanetMoneyIncDelta { get; set; } // 플래닛에서 발급한 재화 수량
|
||||
public DateTime CreatedAt { get; set; } // 사파이어 교환 주문 시작 시간
|
||||
public DateTime? CompletedAt { get; set; } // 사파이어 교환 주문 완료 시간
|
||||
}
|
||||
12
BrokerApiCore/DbEntity/SsoAccountInfo.cs
Normal file
12
BrokerApiCore/DbEntity/SsoAccountInfo.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace BrokerCore.DbEntity;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
[Keyless]
|
||||
public class SsoAccountInfo
|
||||
{
|
||||
public ulong Id { get; init; }
|
||||
public ulong? AccessToken { get; init; }
|
||||
public ulong? AccessTokenIgm { get; init; }
|
||||
public string? Email { get; init; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user