using AllBase.Model.Config;
using AllBase.Model.Param.CollectManage;
using AllBase.Model.Param.ProductManage;
using AllBase.Model.Param.ShopManage;
using AllBase.Model.Param.TemuProductManage;
using AllBase.Model.Result;
using AllBase.Model.Result.PDDResult;
using AllBase.Model.Result.WXResult;
using LittleCow.Model.Param.WeiDianManage;
using NaiBa.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Helper
{
public class GlobalConfig
{
public static GlobalSettings GlobalSettings { get; set; } = new GlobalSettings();
///
/// 店铺列表
///
public static ConcurrentList ShopLoginList { get; set; } = new ConcurrentList();
public static ConcurrentList ValidShopLoginList
{
get
{
var list = new ConcurrentList();
list.AddRange(ShopLoginList.Where(s => !s.is_point_shop_expire));
return list;
}
}
///
/// 微信小店用户拼多多机会商品采集的拼多多店铺列表
///
public static ConcurrentList _29WxPddShopLoginList { get; set; } = new ConcurrentList();
///
/// 店铺默认地址
///
public static ConcurrentList WXShopDefaultAddressList = new ConcurrentList();
///
/// 拼多多买手列表
///
public static ConcurrentList BuyerLoginList { get; set; } = new ConcurrentList();
///
/// 微信店铺授权信息
///
public static ConcurrentList lstWxShopAuthInfo { get; set; } = new ConcurrentList();
///
/// 微信全局token(上传图片用)
///
public static ConcurrentList WxGlobalTokenList { get; set; } = new ConcurrentList();
public static Dictionary dicWxShopUploadInfo { get; set; } = new Dictionary();
public static ConcurrentList PddCatList { get; set; } = new ConcurrentList();
public static ConcurrentList WxCatList { get; set; } = new ConcurrentList();
public static ConcurrentList WxCatBoundList { get; set; } = new ConcurrentList();
///
/// 店铺设置参数
///
public static TemuShopSettingParam TemuShopSettingParam { get; set; } = new TemuShopSettingParam();
public static TemuProductWords ProductWords { get; set; }
public static string cAgentIpCode { get; } = "AFZ94w3a";
public static List SameProductCheckParamList { get; set; }
//public static string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36";
public static string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36";
///
/// 微店店铺列表
///
public static ConcurrentList VDianShopLoginList { get; set; } = new ConcurrentList();
///
/// 微店上货参数
///
public static WeiDianSettingParam WeiDianUploadParam { get; set; }
///
/// 拼多多api列表
///
public static ConcurrentList PddClientInfoList = new ConcurrentList();
public static System.Drawing.Color DefaultMainColor { get; set; } = System.Drawing.Color.FromArgb(63, 126, 255);
public static System.Drawing.Color DefaultMainColorLight { get; set; } = System.Drawing.Color.FromArgb(185, 215, 255);
public static System.Drawing.Color DefaultBorderColor { get; set; } = System.Drawing.Color.FromArgb(25, 98, 200);
public static System.Drawing.Color MainColor { get; set; } = System.Drawing.Color.FromArgb(63, 126, 255);
public static System.Drawing.Color MainColorLight { get; set; } = System.Drawing.Color.FromArgb(185, 215, 255);
public static System.Drawing.Color BorderColor { get; set; } = System.Drawing.Color.FromArgb(25, 98, 200);
public static System.Drawing.Color PddMainColor { get; set; } = System.Drawing.Color.FromArgb(225, 120, 135);
public static System.Drawing.Color PddMainColorLight { get; set; } = System.Drawing.Color.FromArgb(255, 235, 245);
public static System.Drawing.Color PddBorderColor { get; set; } = System.Drawing.Color.FromArgb(195, 112, 135);
public static System.Drawing.Color WeiXinMainColor { get; set; } = System.Drawing.Color.FromArgb(152, 99, 143);
public static System.Drawing.Color WeiXinMainColorLight { get; set; } = System.Drawing.Color.FromArgb(245, 235, 255);
public static System.Drawing.Color WeiXinBorderColor { get; set; } = System.Drawing.Color.FromArgb(107, 83, 147);
}
public enum ShopPlatform
{
[Description("淘宝")]
TaoBao = 1,
[Description("拼多多")]
PinDuoDuo = 2,
[Description("爆单王")]
BaoDanWang = 3,
[Description("苏宁")]
SuNing = 4,
[Description("微店")]
WeiDian = 5,
[Description("阿里巴巴")]
Alibaba = 6,
}
public sealed class ComplianceOptions
{
public int? MainCount { get; set; }
public int? DetailCount { get; set; } = 0;
public bool IncludeSku { get; set; }
public string Keywords { get; set; }
}
public class GlobalSettings
{
public ComplianceOptions GoodsCompliance { get; set; } = new ComplianceOptions();
///
/// 微信使用软件设置的默认上货地址
///
public bool IsWxUseSoftwareDefaultAddress { get; set; } = true;
/// 自动上报违规商品
public bool AutoReportViolationProducts { get; set; } = true;
/// 上货自动剔除违规商品
public bool AutoExcludeViolationProductsOnUpload { get; set; } = true;
/// 自动下架违规商品
public bool AutoDelistViolationProducts { get; set; } = true;
}
}