Files
KJD_WebService/AllBase/Helper/GlobalConfig.cs
T
2026-05-02 10:15:04 +08:00

99 lines
3.4 KiB
C#

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();
/// <summary>
/// 店铺列表
/// </summary>
public static ConcurrentList<ShopLoginInfo> ShopLoginList { get; set; } = new ConcurrentList<ShopLoginInfo>();
/// <summary>
/// 店铺默认地址
/// </summary>
public static ConcurrentList<WXShopDefaultAddressInfo> WXShopDefaultAddressList = new ConcurrentList<WXShopDefaultAddressInfo>();
/// <summary>
/// 拼多多买手列表
/// </summary>
public static ConcurrentList<BuyerLoginInfo> BuyerLoginList { get; set; } = new ConcurrentList<BuyerLoginInfo>();
public static ConcurrentList<WXShopTokenInfo> WxTokenList { get; set; } = new ConcurrentList<WXShopTokenInfo>();
public static ConcurrentList<WxCatInfo> WxCatList { get; set; } = new ConcurrentList<WxCatInfo>();
public static ConcurrentList<WxCatBoundInfo> WxCatBoundList { get; set; } = new ConcurrentList<WxCatBoundInfo>();
/// <summary>
/// 店铺设置参数
/// </summary>
public static TemuShopSettingParam TemuShopSettingParam { get; set; } = new TemuShopSettingParam();
public static TemuProductWords ProductWords { get; set; }
public static string cAgentIpCode { get; } = "AFZ94w3a";
public static List<SameProductCheckParam> 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";
/// <summary>
/// 微店店铺列表
/// </summary>
public static ConcurrentList<VDianShopLoginInfo> VDianShopLoginList { get; set; } = new ConcurrentList<VDianShopLoginInfo>();
/// <summary>
/// 微店上货参数
/// </summary>
public static WeiDianSettingParam WeiDianUploadParam { get; set; }
/// <summary>
/// 拼多多api列表
/// </summary>
public static ConcurrentList<PddClientInfo> PddClentInfoList = new ConcurrentList<PddClientInfo>();
}
public enum ShopPlatform
{
[Description("淘宝")]
TaoBao = 1,
[Description("拼多多")]
PinDuoDuo = 2,
[Description("爆单王")]
BaoDanWang = 3,
[Description("苏宁")]
SuNing = 4,
[Description("微店")]
WeiDian = 5,
[Description("阿里巴巴")]
Alibaba = 6,
}
public class GlobalSettings
{
/// <summary>
/// 微信使用软件设置的默认上货地址
/// </summary>
public bool IsWxUseSoftwareDefaultAddress { get; set; } = true;
}
}