
using dodohold.core;

namespace molilian.core
{
    [Table("tk_promotion_log")]
    public class PromotionQueryDTO
    {
        [Key]
        public long id { get; set; }
        public int accountId { get; set; } = 0;
        public string accountName { get; set; } = string.Empty;
        public string img { get; set; } = string.Empty;
        public string ip { get; set; } = string.Empty;
        public string oaid { get; set; } = string.Empty;
        public bool success { get; set; } = false;
        public string message { get; set; } = string.Empty;
        public string reason { get; set; } = string.Empty;
        public string url { get; set; } = string.Empty;
        public string similarPromotion { get; set; } = string.Empty;
        public string promotionImg { get; set; } = string.Empty;

        public int elapsedTime { get; set; } = 0;
        public int elapsedTime2 { get; set; } = 0;
        public int elapsedTime3 { get; set; } = 0;
        public int elapsedTime4 { get; set; } = 0;
        public DateTime create_time { get; set; } = DateTime.Now;
        public string end_point { get; set; } = string.Empty;

        public List<PromotionQueryItemDTO> SimilarPromotion = [];
        public List<PromotionQueryItemDTO> PromotionImg = [];
    }

    public class PromotionQueryItemDTO
    {
        public string h5_url { get; set; } = string.Empty;
        public string deeplink_url { get; set; } = string.Empty;
        /// <summary>
        /// 店铺信息-卖家类型：1天猫，0淘宝,3淘特
        /// </summary>
        public string userType { get; set; } = string.Empty;
        public string shopTitle { get; set; } = string.Empty;
        public string itemId { get; set; } = string.Empty;
        public string itemName { get; set; } = string.Empty;
        public string pic { get; set; } = string.Empty;
        public string price { get; set; } = string.Empty;
        public string promotionPrice { get; set; } = string.Empty;
        public string couponAmount { get; set; } = string.Empty;
        public string couponEffectiveStartTime { get; set; } = string.Empty;
        public string couponEffectiveEndTime { get; set; } = string.Empty;
        public string sellCountStr { get; set; } = string.Empty;
        public string provcity { get; set; } = string.Empty;

    }
}
