初始提交

This commit is contained in:
wanyongkang
2020-10-07 20:25:03 +08:00
commit d318014316
3809 changed files with 263103 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
using Hncore.Infrastructure.DDD;
using Hncore.Pass.Sells.Model;
using System;
using System.Collections.Generic;
namespace Hncore.Pass.Sells.Domain
{
public partial class CouponEntity : EntityWithDelete<int>, ITenant
{
public int TenantId { get; set; } = 0;
public int? StoreId { get; set; } = 0;
public string Name { get; set; }
public string Remark { get; set; }
public ECouponType CouponType { get; set; }
public int? TotalCount { get; set; }
public int? GrantCount { get; set; } = 0;
public int? UsedCount { get; set; } = 0;
public int? GetLimitCount { get; set; }
public ECouponUseRange UseRange { get; set; }
public int AllowMinAmount { get; set; }
public int CouponValue { get; set; }
public ECouponDateRule DateRule { get; set; }
public int ValidDay { get; set; }
public DateTime? StartDate { get; set; } = DateTime.Now;
public DateTime? EndDate { get; set; } = DateTime.Now;
public DateTime? CreateDate { get; set; } = DateTime.Now;
public int IsOverlay { get; set; }
public int IsOpen { get; set; }
public int? Disabled { get; set; } = 0;
}
}

View File

@@ -0,0 +1,18 @@
using Hncore.Infrastructure.DDD;
using System;
using System.Collections.Generic;
namespace Hncore.Pass.Sells.Domain
{
public partial class CouponResourceEntity : EntityWithDelete<int>, ITenant
{
public int TenantId { get; set; }
public int? StoreId { get; set; }
public int? CouponId { get; set; }
public int? ResourceId { get; set; }
public string ResourceImage { get; set; }
public string ResourceName { get; set; }
public int? ResourceType { get; set; }
public decimal? Price { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using Hncore.Infrastructure.DDD;
using System;
using System.Collections.Generic;
using static Hncore.Pass.Sells.Domain.Enums;
namespace Hncore.Pass.Sells.Domain
{
public partial class CouponUserOrginEntity : EntityWithDelete<int>, ITenant
{
public int TenantId { get; set; }
public int? StoreId { get; set; }
public string From { get; set; }
public int? ToUser { get; set; }
public string ToUserRef { get; set; }
public int? CouponId { get; set; }
public int? CouponCount { get; set; }
public CouponOriginType OriginType { get; set; } = CouponOriginType.Admin;
public string Remark { get; set; }
public DateTime? CreateDate { get; set; } = DateTime.Now;
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public CouponStatus Status { get; set; } = CouponStatus.Origin;
}
}

View File

@@ -0,0 +1,22 @@
using Hncore.Infrastructure.DDD;
using System;
using System.Collections.Generic;
namespace Hncore.Pass.Sells.Domain
{
public partial class CouponUserUseEntity : EntityWithDelete<int>, ITenant
{
public int TenantId { get; set; }
public int? StoreId { get; set; }
public int? UserId { get; set; }
public int? CouponId { get; set; }
public int? CouponCount { get; set; }
public string OrderNo { get; set; }
public decimal? Amount { get; set; }
public int? Remark { get; set; }
public int? Status { get; set; }
public DateTime? CreateDate { get; set; }
public int? OrderType { get; set; }
}
}