添加网关与静态化服务
This commit is contained in:
19
Yi.Framework/Yi.Framework.Common/Models/SwaggerModel.cs
Normal file
19
Yi.Framework/Yi.Framework.Common/Models/SwaggerModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,4 @@
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="QueueModel\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user