|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using NPoco;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace POSV.Entity.Pormotion
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 门店优惠券
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
[TableName("pos_store_coupon")]
|
|
|
|
|
[PrimaryKey(new string[] { "Id" }, AutoIncrement = false)]
|
|
|
|
|
public class StoreCoupon : BaseEntity
|
|
|
|
|
{
|
|
|
|
|
public StoreCoupon()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "tenantId")]
|
|
|
|
|
[Column("tenantId")]
|
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优惠券名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "name")]
|
|
|
|
|
[Column("name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 开始日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "startDate")]
|
|
|
|
|
[Column("startDate")]
|
|
|
|
|
public string StartDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结束日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "endDate")]
|
|
|
|
|
[Column("endDate")]
|
|
|
|
|
public string EndDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 开始时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "startTime")]
|
|
|
|
|
[Column("startTime")]
|
|
|
|
|
public string StartTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结束时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "endTime")]
|
|
|
|
|
[Column("endTime")]
|
|
|
|
|
public string EndTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 星期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "weekDays")]
|
|
|
|
|
[Column("weekDays")]
|
|
|
|
|
public string WeekDays { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 月频
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "validMonth")]
|
|
|
|
|
[Column("validMonth")]
|
|
|
|
|
public string ValidMonth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注说明
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "description")]
|
|
|
|
|
[Column("description")]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 类型(0-满减;1-阶梯满减;)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "type")]
|
|
|
|
|
[Column("type")]
|
|
|
|
|
public int Type { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 使用规则
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "rule")]
|
|
|
|
|
[Column("rule")]
|
|
|
|
|
public string Rule { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态(0-待审核,1-待投放,2-已投放,3-已暂停,4-已下架)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "status")]
|
|
|
|
|
[Column("status")]
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否核销(0-否,1-是)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "voucherFlag")]
|
|
|
|
|
[Column("voucherFlag")]
|
|
|
|
|
public int VoucherFlag { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|