250501 커밋

This commit is contained in:
2025-05-01 07:23:28 +09:00
parent 98bb2e3c5c
commit 23176551b7
353 changed files with 9972 additions and 6652 deletions

View File

@@ -1,4 +1,4 @@
namespace BrokerCore.Common;
namespace BrokerApiCore;
public class ApiException: Exception
{

View File

@@ -1,8 +1,4 @@
namespace BrokerCore.Common;
using ApiModels;
using DbEntity;
namespace BrokerApiCore;
public static class ApiExtensions
{

View File

@@ -1,13 +1,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using ServerCore;
using System.Diagnostics.CodeAnalysis;
using ServerBase;
using ServerCommon;
namespace BrokerCore.Common;
namespace BrokerApiCore;
public static class Guard
{

View File

@@ -1,19 +1,12 @@
namespace BrokerCore.Common;
using System.Security.Cryptography;
using BrokerBusinessLog;
using DbEntity;
using Entity.Actions;
using System.Security.Cryptography;
using MetaAssets;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using ServerCore; using ServerBase;
using ServerCore;
namespace BrokerApiCore;
public class Helpers
{
public static string generateSecureKey(int keySizeInBytes = 32, bool isBase64 = true)
@@ -46,25 +39,25 @@ public class Helpers
Title = mailMeta.Mail_Title,
Text = mailMeta.Mail_Desc,
ExpireDate = expire_date,
ItemList = getMailItems(productMeta).ToList(),
ItemList = getMailItems(productMeta),
PackageOrderId = string.Empty,
};
return mail_send_option;
}
public static IEnumerable<MailItem> getMailItems(ProductMetaData productMetaData)
public static List<ServerCommon.MailItem> getMailItems(ProductMetaData productMetaData)
{
if (productMetaData.ItemID_First != 0)
{
return productMetaData.First_List.Select(itemMeta => new MailItem()
return productMetaData.First_List.Select(itemMeta => new ServerCommon.MailItem
{
ItemId = (UInt32)itemMeta.Id,
Count = itemMeta.Value,
ProductId = (UInt32)productMetaData.Id,
isRepeatProduct = false
});
}).ToList();
}
return new List<MailItem>();
return [];
}
public static PlanetItemExchangeLogData createFromExchangeOrderLog(PlanetItemExchangeOrder order)

View File

@@ -1,7 +1,7 @@
//==============================================================
// JWT 설정 정보를 담고있는 클래스입니다.
//==============================================================
namespace BrokerCore.Common;
namespace BrokerApiCore;
public class JwtOption
{
public string ValidIssuer { get; set; } = string.Empty;

View File

@@ -1,4 +1,4 @@
namespace BrokerCore.Common;
namespace BrokerApiCore;
public class ResultFailException : ApiException
{
public ResultFailException(Result result, string? message = null) : base((int)result.ErrorCode,