添加网关与静态化服务

This commit is contained in:
橙子
2021-10-20 18:03:43 +08:00
parent 1bf37a2590
commit ce501c5665
48 changed files with 2030 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Common.Models
{
public class SwaggerModel
{
public SwaggerModel(string url, string name)
{
this.url = url;
this.name = name;
}
public string url { get; set; }
public string name { get; set; }
}
}

View File

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Common.QueueModel
{
/// <summary>
/// 下单成功后的实体
/// </summary>
public class OrderCreateQueueModel
{
/// <summary>
/// 用户Id
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 订单Id
/// </summary>
public long OrderId { get; set; }
/// <summary>
/// sku ID 集合
/// </summary>
public List<long> SkuIdList { get; set; }
/// <summary>
/// 尝试次数
/// </summary>
public int TryTime { get; set; }
public OrderTypeEnum OrderType { get; set; }
public enum OrderTypeEnum
{
Normal,
Seckill
}
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Common.QueueModel
{
public class SKUWarmupQueueModel
{
public bool Warmup { get; set; }
}
}

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Common.QueueModel
{
/// <summary>
/// 以SPU为单位
/// </summary>
public class SPUCQRSQueueModel
{
public long SpuId { get; set; }
/// <summary>
/// enum SPUCQRSQueueModelType
/// </summary>
public int CQRSType { get; set; }
}
/// <summary>
/// 操作类型
/// </summary>
public enum SPUCQRSQueueModelType
{
Insert = 0,
Update = 1,
Delete = 2,
Search = 3
}
}

View File

@@ -4,8 +4,4 @@
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="QueueModel\" />
</ItemGroup>
</Project>