using Store.Framework.Models; using Store.Framework.Models.Product; using Store.Product.Enums; using Store.Product.Models.Product; using Store.Product.Models.PublishParameters.Image; using Store.Product.Models.PublishParameters.Price; using Store.Product.Models.PublishParameters.Sku; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Store.Product.Models.PublishParameters; public class PublishParameters { /// /// 价格配置 /// public PriceConfigBase PriceStrategy { get; set; } /// /// 图片上传参数 /// public ImageParameters UpImageParams { get; set; } = new ImageParameters(); #region 重要参数 /// /// Sku 上传参数 /// public SkuParameters SkuParams { get; set; } = new SkuParameters(); /// 1 /// 存储类型 上架Or仓库 Stock /// public ProductStorage StorageType { get; set; } = new ProductStorage(); /// /// 店铺上传最大限制 /// public int ShopUpMaxCount { get; set; } /// /// 过滤商品价格 /// public SwitchParams> IsFilterPrice { get; set; } = new SwitchParams>(false, new Tuple(0, int.MaxValue)); /// /// 运费模板类型 /// public FreightTemplateType FreightTemplateType { get; set; } = FreightTemplateType.Fixed; ///// /// 运费模板 /// //public FreightTemplateModel FreightTemplate { get; set; } /// /// 标题前缀 /// public string TitlePrefix { get; set; } #endregion #region 其他参数 /// /// 自定义删除标题关键字 /// public bool IsRemoveCustomTitleKeywors { get; set; } /// /// 自定义过滤标题关键字 /// public bool IsFilterCustomTitleKeywors { get; set; } /// /// 自定义类目 /// public SwitchParams IsCustomCategory { get; set; } = new SwitchParams(); /// /// 自定义描述 /// public string CustomDescription { get; set; } /// /// 过滤非法标题 /// public bool IsFilterIllegalTitle { get; set; } /// /// 过滤不包邮 /// public bool IsFilterPackage { get; set; } /// /// 是否设置最低价库存 /// public SwitchParams IsSetLowPriceStock { get; set; } = new SwitchParams(); /// /// 是否使用代理 /// public bool IsProxy { get; set; } /// /// 是否自动删除标题违规词语 /// public bool IsRemoveIllegalTitle { get; set; } #endregion }