using System; using System.Collections.Generic; namespace JiaZhiQuan.Common.Models.MallGoodsModel { public class MallGoodsModel { public virtual string goodsId { get; set; } public string goodsName { get; set; } public string goodsDesc { get; set; } public string coverImg { get; set; } public string specJson { get; set; } /// /// 链路code /// public string chainCodes { get; set; } /// /// 属性全链路 /// public string specPath { get; set; } public int oneCatId { get; set; } public string oneCatName { get; set; } public int twoCatId { get; set; } public string twoCatName { get; set; } public int catId { get; set; } public string specIds { get; set; } public string specValuesIds { get; set; } public int hasVideo { get; set; } public string videoId { get; set; } public int coverWidth { get; set; } public int coverHeight { get; set; } public string duration { get; set; } public int salePrice { get; set; } public int originalPrice { get; set; } public string province { get; set; } public string city { get; set; } public virtual string sellerId { get; set; } public DateTime createAt { get; set; } public int? goodsLevel { get; set; } public int? viewCnt { get; set; } public int? collectCnt { get; set; } public int? shareCnt { get; set; } public string pointsPlanDesc { get; set; } = ""; public int disabled { get; set; } = (int)DisabledStatus.启用; public int onsaleState { get; set; } = (int)MallGoodsOnsaleState.上架; public int saleState { get; set; } public UserInfoBaseWithFocusState seller { get; set; } /// /// 是否收藏过 /// public int hasCollect { get; set; } = 0; public int videoReady { get; set; } public int stock { get; set; } = 1; public int sourceType { get; set; } = (int)MallGoodsSourceType.c2c商品; public string disabledReason { get; set; } public int deleted { get; set; } = (int)DeletedState.正常; public int auditState { get; set; } = (int)MallGoodsAuditState.通过; public int offsaleReasonType { get; set; } public int version { get; set; } public DateTime updateAt { get; set; } } /// /// 商品资源 /// public class MallGoodsResource { public int resourceId { get; set; } /// /// 图片url/视频封面url /// public string resourceUrl { get; set; } /// /// 商品id /// public long goodsId { get; set; } /// /// 图片类型:1.视频 2.图片 /// public int resourceType { get; set; } /// /// 视频编号 /// public string videoId { get; set; } /// /// 宽度 /// public int width { get; set; } /// /// 高度 /// public int height { get; set; } /// /// 视频时长 /// public string duration { get; set; } /// /// 视频播放url /// public string videoUrl { get; set; } public int displayOrder { get; set; } public DateTime createAt { get; set; } } /// /// 商品类目 /// public class MallCategory { public int catLevel { get; set; } public int catId { get; set; } public string catName { get; set; } public int parentId { get; set; } public int displayOrder { get; set; } public string catImageUrl { get; set; } /// /// 服务费模版 /// public int? serviceFeeTempId { get; set; } public List children { get; set; } } /// /// 商品属性 /// public class MallSpec { public string code { get; set; } public int catId { get; set; } public int specId { get; set; } public string specName { get; set; } public int required { get; set; } public int showType { get; set; } public int displayOrder { get; set; } public int filterEnabled { get; set; } public int hasRestrict { get; set; } public int state { get; set; } public int level { get; set; } public List specValues { get; set; } } /// /// 商品属性值 /// public class MallSpecValues { public int svId { get; set; } public string svName { get; set; } public string svImg { get; set; } /// /// 属性值下的属性 /// public List specs { get; set; } } /// /// 服务费 /// public class MallServiceFee { /// /// 服务费名称 /// public string name { get; set; } /// ///扣除金额 /// public string fee { get; set; } /// /// 排序 /// public int displayOrder { get; set; } } /// /// 到手服务费 /// public class NetServiceFee { //总服务费,单位元 public decimal totalServiceFee { get; set; } //到手价,单位元 public decimal netAmount { get; set; } public List fees { get; set; } public bool isBelowMiniPrice { get; set; } } /// /// 服务费区间 /// public class MallServiceFeeRange { /// /// 服务费名称 /// public string name { get; set; } /// /// 服务费id /// public int serviceFeeId { get; set; } /// /// 收费方式(1,定额,2,比例,3免费) /// public int chargeType { get; set; } /// /// 下区间价格(单位分) /// public int startRange { get; set; } /// /// 上区间价格(单位分) /// public int endRange { get; set; } /// /// 收费金额(单位分) /// public int chargeAmount { get; set; } /// /// 收费比例(万分之几) /// public int chargeRate { get; set; } /// /// 最低金额(单位分) /// public int? minFee { get; set; } /// /// 最高金额(单位分) /// public int? maxFee { get; set; } /// /// 排序 /// public int displayOrder { get; set; } } /// /// 用户评价 /// public class MemberOrderRateRecord { /// /// 评价id /// public int id { get; set; } /// /// 用户id /// public long userId { get; set; } /// /// 昵称 /// public string alias { get; set; } /// /// 账号 /// public string username { get; set; } /// /// 头像 /// public string headImage { get; set; } /// /// 订单id /// public long orderId { get; set; } /// /// 订单详情id /// public long orderDetailId { get; set; } /// /// 商品id /// public long goodsId { get; set; } /// /// 评论人类型(1,买家,2,卖家)' /// public int userType { get; set; } /// /// 评价类型:0差评 1 中评 2 好评 /// public int rateType { get; set; } /// /// 创建时间 /// public DateTime createAt { get; set; } /// /// 评价标签 /// public string tags { get; set; } } /// /// 用户评价标签 /// public class MemberOrderRateTags { public int recordId { get; set; } public string name { get; set; } } public class MallGoodsImportTask { public int id { get; set; } public string goodsDesc { get; set; } public int catId { get; set; } public int overwrite { get; set; } public string cont { get; set; } public DateTime execTime { get; set; } public int state { get; set; } public string sourceInfo { get; set; } } public class MallGoodsCreateModel : MallGoodsModel { public new long goodsId { get; set; } public new long sellerId { get; set; } public List resources { get; set; } } public class MallGoodsExcelItem : MallGoodsModel { public List resources { get; set; } } public class MallGoodsChangeEvent { //MallGoodsChangeEventType public int eventType { get; set; } public long goodsId { get; set; } public string eventName { get; set; } public string eventDesc { get; set; } public long operatorId { get; set; } //MallGoodsChangeOperatorType public int operatorType { get; set; } public DateTime createAt { get; set; } = DateTime.Now; } }