112 lines
2.7 KiB
C#
112 lines
2.7 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 价格配置
|
|
/// </summary>
|
|
public PriceConfigBase PriceStrategy { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 图片上传参数
|
|
/// </summary>
|
|
public ImageParameters UpImageParams { get; set; } = new ImageParameters();
|
|
|
|
#region 重要参数
|
|
/// <summary>
|
|
/// Sku 上传参数
|
|
/// </summary>
|
|
public SkuParameters SkuParams { get; set; } = new SkuParameters();
|
|
|
|
/// <summary>1
|
|
/// 存储类型 上架Or仓库 Stock
|
|
/// </summary>
|
|
public ProductStorage StorageType { get; set; } = new ProductStorage();
|
|
|
|
|
|
/// <summary>
|
|
/// 店铺上传最大限制
|
|
/// </summary>
|
|
public int ShopUpMaxCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 过滤商品价格
|
|
/// </summary>
|
|
public SwitchParams<Tuple<int, int>> IsFilterPrice { get; set; } = new SwitchParams<Tuple<int, int>>(false, new Tuple<int, int>(0, int.MaxValue));
|
|
|
|
/// <summary>
|
|
/// 运费模板类型
|
|
/// </summary>
|
|
public FreightTemplateType FreightTemplateType { get; set; } = FreightTemplateType.Fixed;
|
|
|
|
///// <summary>
|
|
/// 运费模板
|
|
/// </summary>
|
|
//public FreightTemplateModel FreightTemplate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标题前缀
|
|
/// </summary>
|
|
public string TitlePrefix { get; set; }
|
|
|
|
#endregion
|
|
|
|
|
|
#region 其他参数
|
|
/// <summary>
|
|
/// 自定义删除标题关键字
|
|
/// </summary>
|
|
public bool IsRemoveCustomTitleKeywors { get; set; }
|
|
/// <summary>
|
|
/// 自定义过滤标题关键字
|
|
/// </summary>
|
|
public bool IsFilterCustomTitleKeywors { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自定义类目
|
|
/// </summary>
|
|
public SwitchParams<CategoryModel> IsCustomCategory { get; set; } = new SwitchParams<CategoryModel>();
|
|
/// <summary>
|
|
/// 自定义描述
|
|
/// </summary>
|
|
public string CustomDescription { get; set; }
|
|
|
|
/// <summary>
|
|
/// 过滤非法标题
|
|
/// </summary>
|
|
public bool IsFilterIllegalTitle { get; set; }
|
|
/// <summary>
|
|
/// 过滤不包邮
|
|
/// </summary>
|
|
public bool IsFilterPackage { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否设置最低价库存
|
|
/// </summary>
|
|
public SwitchParams<int> IsSetLowPriceStock { get; set; } = new SwitchParams<int>();
|
|
/// <summary>
|
|
/// 是否使用代理
|
|
/// </summary>
|
|
public bool IsProxy { get; set; }
|
|
/// <summary>
|
|
/// 是否自动删除标题违规词语
|
|
/// </summary>
|
|
public bool IsRemoveIllegalTitle { get; set; }
|
|
#endregion
|
|
|
|
}
|