/*********************************************************************** * Project: baifenBinfa * ProjectName: 百分兵法管理系统 * Web: http://chuanyin.com * Author: * Email: * CreateTime: 202403/02 * Description: 暂无 ***********************************************************************/ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using CoreCms.Net.Model.FromBody; using CoreCms.Net.Model.ViewModels.DTO; using SqlSugar; namespace CoreCms.Net.Model.Entities { /// /// 商品类型扩展 /// public partial class CoreCmsGoods { /// /// 货品编码 /// [Display(Name = "货品编码")] [SugarColumn(IsIgnore = true)] public string sn { get; set; } /// /// 销售价 /// [Display(Name = "销售价")] [SugarColumn(IsIgnore = true)] public decimal price { get; set; } = 0; /// /// 成本价 /// [Display(Name = "成本价")] [SugarColumn(IsIgnore = true)] public decimal costprice { get; set; } = 0; /// /// 市场价 /// [Display(Name = "市场价")] [SugarColumn(IsIgnore = true)] public decimal mktprice { get; set; } = 0; /// /// 库存 /// [Display(Name = "库存")] [SugarColumn(IsIgnore = true)] public int stock { get; set; } = 0; /// /// 冻结库存 /// [Display(Name = "冻结库存")] [SugarColumn(IsIgnore = true)] public int freezeStock { get; set; } = 0; /// /// 重量 /// [Display(Name = "重量")] [SugarColumn(IsIgnore = true)] public decimal weight { get; set; } = 0; /// /// 积分抵扣金额 /// [Display(Name = "积分抵扣金额")] [SugarColumn(IsIgnore = true)] public decimal pointsDeduction { get; set; } = 0; /// /// 赠送积分 /// [Display(Name = "赠送积分")] [SugarColumn(IsIgnore = true)] public int points { get; set; } = 0; /// /// 图集 /// [SugarColumn(IsIgnore = true)] public string[] album { get; set; } /// /// 品牌数据 /// [SugarColumn(IsIgnore = true)] public CoreCmsBrand brand { get; set; } /// /// 关联参数 /// [SugarColumn(IsIgnore = true)] public CoreCmsProducts product { get; set; } = new(); /// /// 关联SKU /// [SugarColumn(IsIgnore = true)] [Navigate(NavigateType.OneToMany, nameof(CoreCmsProducts.goodsId))] public List sku { get; set; } /// /// 商品规格 /// [SugarColumn(IsIgnore = true)] public Dictionary> specification { get; set; } = new(); /// /// 关联SKU [SugarColumn(IsIgnore = true)] public CoreCmsProductsView skuList { get; set; } = new(); /// /// 是否收藏 /// [SugarColumn(IsIgnore = true)] public bool isFav { get; set; } = false; /// /// 关联拼团规则 /// [SugarColumn(IsIgnore = true)] public CoreCmsPinTuanRule pinTuanRule { get; set; } = null; /// /// 拼团价格 /// [SugarColumn(IsIgnore = true)] public decimal pinTuanPrice { get; set; } = 0; /// /// 拼团记录 /// [SugarColumn(IsIgnore = true)] public List pinTuanRecord { get; set; } = new(); /// /// 拼团记录数量 /// [SugarColumn(IsIgnore = true)] public int pinTuanRecordNums { get; set; } = 0; /// /// 拼团总单数 /// [SugarColumn(IsIgnore = true)] public int buyPinTuanCount { get; set; } = 0; /// /// 团购秒杀促销总单数 /// [SugarColumn(IsIgnore = true)] public int buyPromotionCount { get; set; } = 0; /// /// 标签列表 /// [SugarColumn(IsIgnore = true)] public List labels { get; set; } = new(); /// /// 所属团购秒杀 /// [SugarColumn(IsIgnore = true)] public int groupId { get; set; } /// /// 团购秒杀类型 /// [SugarColumn(IsIgnore = true)] public int groupType { get; set; } /// /// 团购秒杀状态 /// [SugarColumn(IsIgnore = true)] public bool groupStatus { get; set; } /// /// 团购秒杀时效 /// [SugarColumn(IsIgnore = true)] public DateTime groupTime { get; set; } /// /// 团购秒杀开始时间 /// [SugarColumn(IsIgnore = true)] public DateTime groupStartTime { get; set; } /// /// 团购秒杀结束时间 /// [SugarColumn(IsIgnore = true)] public DateTime groupEndTime { get; set; } /// /// 团购秒杀时间戳 /// [SugarColumn(IsIgnore = true)] public int groupTimestamp { get; set; } /// /// 团购秒杀促销结果 /// [SugarColumn(IsIgnore = true)] public string groupPromotionResult { get; set; } /// /// sku最小价格 /// [SugarColumn(IsIgnore = true)] public decimal minPrice { get; set; } = 0; /// /// sku最大价格 /// [SugarColumn(IsIgnore = true)] public decimal maxPrice { get; set; } = 0; /// /// sku最大价格 /// [SugarColumn(IsIgnore = true)] public string area { get; set; } /// /// 是否有支持定制的 /// [SugarColumn(IsIgnore = true)] public bool isCustomizable { get; set; }= false; /// /// 商品分类 /// [Navigate(NavigateType.OneToOne, nameof(goodsCategoryId))] public CoreCmsGoodsCategory? goodsCategory { get; set; } /// /// 商品品牌 /// [Navigate(NavigateType.OneToOne, nameof(brandId))] public CoreCmsBrand? goodsBrand { get; set; } /// /// 扩展分类 /// [Navigate(NavigateType.OneToMany, nameof(CoreCmsGoodsCategoryExtend.goodsId), nameof(id))] public List? CategoryExtendIds { get; set; } } }