mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:13:26 +08:00
添加项目文件。
This commit is contained in:
164
CoreCms.Net.Configuration/AppSettingsConstVars.cs
Normal file
164
CoreCms.Net.Configuration/AppSettingsConstVars.cs
Normal file
@@ -0,0 +1,164 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar.Extensions;
|
||||
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置文件格式化
|
||||
/// </summary>
|
||||
public class AppSettingsConstVars
|
||||
{
|
||||
|
||||
#region 全局地址================================================================================
|
||||
/// <summary>
|
||||
/// 系统后端地址
|
||||
/// </summary>
|
||||
public static readonly string AppConfigAppUrl = AppSettingsHelper.GetContent("AppConfig", "AppUrl");
|
||||
/// <summary>
|
||||
/// 系统接口地址
|
||||
/// </summary>
|
||||
public static readonly string AppConfigAppInterFaceUrl = AppSettingsHelper.GetContent("AppConfig", "AppInterFaceUrl");
|
||||
#endregion
|
||||
|
||||
#region 数据库================================================================================
|
||||
/// <summary>
|
||||
/// 获取数据库连接字符串
|
||||
/// </summary>
|
||||
public static readonly string DbSqlConnection = AppSettingsHelper.GetContent("ConnectionStrings", "SqlConnection");
|
||||
/// <summary>
|
||||
/// 获取数据库类型
|
||||
/// </summary>
|
||||
public static readonly string DbDbType = AppSettingsHelper.GetContent("ConnectionStrings", "DbType");
|
||||
#endregion
|
||||
|
||||
#region redis================================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 获取redis连接字符串
|
||||
/// </summary>
|
||||
public static readonly string RedisConfigConnectionString = AppSettingsHelper.GetContent("RedisConfig", "ConnectionString");
|
||||
|
||||
/// <summary>
|
||||
/// 启用redis作为缓存选择
|
||||
/// </summary>
|
||||
public static readonly bool RedisUseCache = AppSettingsHelper.GetContent("RedisConfig", "UseCache").ObjToBool();
|
||||
/// <summary>
|
||||
/// 启用redis作为定时任务
|
||||
/// </summary>
|
||||
public static readonly bool RedisUseTimedTask = AppSettingsHelper.GetContent("RedisConfig", "UseTimedTask").ObjToBool();
|
||||
|
||||
#endregion
|
||||
|
||||
#region AOP================================================================================
|
||||
/// <summary>
|
||||
/// 事务切面开关
|
||||
/// </summary>
|
||||
public static readonly bool TranAopEnabled = AppSettingsHelper.GetContent("TranAOP", "Enabled").ObjToBool();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Jwt授权配置================================================================================
|
||||
|
||||
public static readonly string JwtConfigSecretKey = AppSettingsHelper.GetContent("JwtConfig", "SecretKey");
|
||||
public static readonly string JwtConfigIssuer = AppSettingsHelper.GetContent("JwtConfig", "Issuer");
|
||||
public static readonly string JwtConfigAudience = AppSettingsHelper.GetContent("JwtConfig", "Audience");
|
||||
#endregion
|
||||
|
||||
#region Cors跨域设置================================================================================
|
||||
public static readonly string CorsPolicyName = AppSettingsHelper.GetContent("Cors", "PolicyName");
|
||||
public static readonly bool CorsEnableAllIPs = AppSettingsHelper.GetContent("Cors", "EnableAllIPs").ObjToBool();
|
||||
public static readonly string CorsIPs = AppSettingsHelper.GetContent("Cors", "IPs");
|
||||
#endregion
|
||||
|
||||
#region Middleware中间件================================================================================
|
||||
/// <summary>
|
||||
/// Ip限流
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareIpLogEnabled = AppSettingsHelper.GetContent("Middleware", "IPLog", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 记录请求与返回数据
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareRequestResponseLogEnabled = AppSettingsHelper.GetContent("Middleware", "RequestResponseLog", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 用户访问记录-是否开启
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareRecordAccessLogsEnabled = AppSettingsHelper.GetContent("Middleware", "RecordAccessLogs", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 用户访问记录-过滤ip
|
||||
/// </summary>
|
||||
public static readonly string MiddlewareRecordAccessLogsIgnoreApis = AppSettingsHelper.GetContent("Middleware", "RecordAccessLogs", "IgnoreApis");
|
||||
|
||||
#endregion
|
||||
|
||||
#region 支付================================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 微信支付回调
|
||||
/// </summary>
|
||||
public static readonly string PayCallBackWeChatPayUrl = AppSettingsHelper.GetContent("PayCallBack", "WeChatPayUrl");
|
||||
/// <summary>
|
||||
/// 微信退款回调
|
||||
/// </summary>
|
||||
public static readonly string PayCallBackWeChatRefundUrl = AppSettingsHelper.GetContent("PayCallBack", "WeChatRefundUrl");
|
||||
/// <summary>
|
||||
/// 支付宝支付回调
|
||||
/// </summary>
|
||||
public static readonly string PayCallBackAlipayUrl = AppSettingsHelper.GetContent("PayCallBack", "AlipayUrl");
|
||||
/// <summary>
|
||||
/// 支付宝退款回调
|
||||
/// </summary>
|
||||
public static readonly string PayCallBackAlipayRefundUrl = AppSettingsHelper.GetContent("PayCallBack", "AlipayRefundUrl");
|
||||
#endregion
|
||||
|
||||
#region 易联云打印机================================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启
|
||||
/// </summary>
|
||||
public static readonly bool YiLianYunConfigEnabled = AppSettingsHelper.GetContent("YiLianYunConfig", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 应用ID
|
||||
/// </summary>
|
||||
public static readonly string YiLianYunConfigClientId = AppSettingsHelper.GetContent("YiLianYunConfig", "ClientId");
|
||||
/// <summary>
|
||||
/// 应用密钥
|
||||
/// </summary>
|
||||
public static readonly string YiLianYunConfigClientSecret = AppSettingsHelper.GetContent("YiLianYunConfig", "ClientSecret");
|
||||
/// <summary>
|
||||
/// 打印机设备号
|
||||
/// </summary>
|
||||
public static readonly string YiLianYunConfigMachineCode = AppSettingsHelper.GetContent("YiLianYunConfig", "MachineCode");
|
||||
/// <summary>
|
||||
/// 打印机终端密钥
|
||||
/// </summary>
|
||||
public static readonly string YiLianYunConfigMsign = AppSettingsHelper.GetContent("YiLianYunConfig", "Msign");
|
||||
/// <summary>
|
||||
/// 打印机名称
|
||||
/// </summary>
|
||||
public static readonly string YiLianYunConfigPrinterName = AppSettingsHelper.GetContent("YiLianYunConfig", "PrinterName");
|
||||
/// <summary>
|
||||
/// 打印机设置联系方式
|
||||
/// </summary>
|
||||
public static readonly string YiLianYunConfigPhone = AppSettingsHelper.GetContent("YiLianYunConfig", "Phone");
|
||||
|
||||
#endregion
|
||||
|
||||
#region HangFire定时任务================================================================================
|
||||
/// <summary>
|
||||
/// 登录账号
|
||||
/// </summary>
|
||||
public static readonly string HangFireLogin = AppSettingsHelper.GetContent("HangFire", "Login");
|
||||
/// <summary>
|
||||
/// 登录密码
|
||||
/// </summary>
|
||||
public static readonly string HangFirePassWord = AppSettingsHelper.GetContent("HangFire", "PassWord");
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
46
CoreCms.Net.Configuration/AppSettingsHelper.cs
Normal file
46
CoreCms.Net.Configuration/AppSettingsHelper.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Configuration.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SqlSugar.Extensions;
|
||||
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// <20><>ȡAppsettings<67><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||||
/// </summary>
|
||||
public class AppSettingsHelper
|
||||
{
|
||||
static IConfiguration Configuration { get; set; }
|
||||
|
||||
public AppSettingsHelper(string contentPath)
|
||||
{
|
||||
string Path = "appsettings.json";
|
||||
Configuration = new ConfigurationBuilder().SetBasePath(contentPath).Add(new JsonConfigurationSource { Path = Path, Optional = false, ReloadOnChange = true }).Build();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>װҪ<D7B0><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
|
||||
/// AppSettingsHelper.GetContent(new string[] { "JwtConfig", "SecretKey" });
|
||||
/// </summary>
|
||||
/// <param name="sections"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></param>
|
||||
/// <returns></returns>
|
||||
public static string GetContent(params string[] sections)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
if (sections.Any())
|
||||
{
|
||||
return Configuration[string.Join(":", sections)];
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
17
CoreCms.Net.Configuration/CoreCms.Net.Configuration.csproj
Normal file
17
CoreCms.Net.Configuration/CoreCms.Net.Configuration.csproj
Normal file
@@ -0,0 +1,17 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="10.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CoreCms.Net.Model\CoreCms.Net.Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
398
CoreCms.Net.Configuration/GlobalConstVars.cs
Normal file
398
CoreCms.Net.Configuration/GlobalConstVars.cs
Normal file
@@ -0,0 +1,398 @@
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
public class GlobalConstVars
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据删除成功
|
||||
/// </summary>
|
||||
public const string DeleteSuccess = "数据删除成功";
|
||||
/// <summary>
|
||||
/// 数据删除失败
|
||||
/// </summary>
|
||||
public const string DeleteFailure = "数据删除失败";
|
||||
/// <summary>
|
||||
/// 系统禁止删除此数据
|
||||
/// </summary>
|
||||
public const string DeleteProhibitDelete = "系统禁止删除此数据";
|
||||
/// <summary>
|
||||
/// 此数据含有子类信息,禁止删除
|
||||
/// </summary>
|
||||
public const string DeleteIsHaveChildren = "此数据含有子类信息,禁止删除";
|
||||
/// <summary>
|
||||
/// 数据处理异常
|
||||
/// </summary>
|
||||
public const string DataHandleEx = "数据接口出现异常";
|
||||
/// <summary>
|
||||
/// 数据添加成功
|
||||
/// </summary>
|
||||
public const string CreateSuccess = "数据添加成功";
|
||||
/// <summary>
|
||||
/// 数据添加失败
|
||||
/// </summary>
|
||||
public const string CreateFailure = "数据添加失败";
|
||||
/// <summary>
|
||||
/// 数据移动成功
|
||||
/// </summary>
|
||||
public const string MoveSuccess = "数据移动成功";
|
||||
/// <summary>
|
||||
/// 数据移动失败
|
||||
/// </summary>
|
||||
public const string MoveFailure = "数据移动失败";
|
||||
/// <summary>
|
||||
/// 系统禁止添加数据
|
||||
/// </summary>
|
||||
public const string CreateProhibitCreate = "系统禁止添加数据";
|
||||
/// <summary>
|
||||
/// 数据编辑成功
|
||||
/// </summary>
|
||||
public const string EditSuccess = "数据编辑成功";
|
||||
/// <summary>
|
||||
/// 数据编辑失败
|
||||
/// </summary>
|
||||
public const string EditFailure = "数据编辑失败";
|
||||
/// <summary>
|
||||
/// 系统禁止编辑此数据
|
||||
/// </summary>
|
||||
public const string EditProhibitEdit = "系统禁止编辑此数据";
|
||||
/// <summary>
|
||||
/// 数据已存在
|
||||
/// </summary>
|
||||
public const string DataIsHave = "数据已存在";
|
||||
/// <summary>
|
||||
/// 数据不存在
|
||||
/// </summary>
|
||||
public const string DataisNo = "数据不存在";
|
||||
/// <summary>
|
||||
/// 请提交必要的参数
|
||||
/// </summary>
|
||||
public const string DataParameterError = "请提交必要的参数";
|
||||
/// <summary>
|
||||
/// 数据插入成功
|
||||
/// </summary>
|
||||
public const string InsertSuccess = "数据插入成功!";
|
||||
/// <summary>
|
||||
/// 数据插入失败
|
||||
/// </summary>
|
||||
public const string InsertFailure = "数据插入失败!";
|
||||
/// <summary>
|
||||
/// Excel导出失败
|
||||
/// </summary>
|
||||
public const string ExcelExportFailure = "Excel导出失败";
|
||||
/// <summary>
|
||||
/// Excel导出成功
|
||||
/// </summary>
|
||||
public const string ExcelExportSuccess = "Excel导出成功";
|
||||
/// <summary>
|
||||
/// 获取数据成功
|
||||
/// </summary>
|
||||
public const string GetDataSuccess = "获取数据成功!";
|
||||
/// <summary>
|
||||
/// 获取数据异常
|
||||
/// </summary>
|
||||
public const string GetDataException = "获取数据异常!";
|
||||
/// <summary>
|
||||
/// 获取数据失败
|
||||
/// </summary>
|
||||
public const string GetDataFailure = "获取数据失败!";
|
||||
/// <summary>
|
||||
/// 设置数据成功
|
||||
/// </summary>
|
||||
public const string SetDataSuccess = "设置数据成功!";
|
||||
/// <summary>
|
||||
/// 设置数据异常
|
||||
/// </summary>
|
||||
public const string SetDataException = "设置数据异常!";
|
||||
/// <summary>
|
||||
/// 设置数据失败
|
||||
/// </summary>
|
||||
public const string SetDataFailure = "设置数据失败!";
|
||||
|
||||
//缓存数据
|
||||
/// <summary>
|
||||
/// 缓存已经排序后台导航
|
||||
/// </summary>
|
||||
public const string CacheFindNavSortList = "CacheFindNavSortList";
|
||||
/// <summary>
|
||||
/// 缓存未排序后台导航
|
||||
/// </summary>
|
||||
public const string CacheFindNavNoSortList = "CacheFindNavNoSortList";
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 缓存角色列表
|
||||
/// </summary>
|
||||
public const string CacheManagerRoleList = "CacheManagerRoleList";
|
||||
/// <summary>
|
||||
/// 缓存单页分类
|
||||
/// </summary>
|
||||
public const string CachePageCategoryList = "CachePageCategoryList";
|
||||
/// <summary>
|
||||
/// 缓存角色详细信息
|
||||
/// </summary>
|
||||
public const string CacheRoleValues = "CacheRoleValues";
|
||||
/// <summary>
|
||||
/// 缓存用户组
|
||||
/// </summary>
|
||||
public const string CacheUserCategoryList = "CacheUserCategoryList";
|
||||
/// <summary>
|
||||
/// 缓存业务
|
||||
/// </summary>
|
||||
public const string CacheJobDirectoryList = "CacheJobDirectoryList";
|
||||
/// <summary>
|
||||
/// 缓存无序区域业务
|
||||
/// </summary>
|
||||
public const string CacheAreaList = "CacheArea";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 缓存配置信息
|
||||
/// </summary>
|
||||
public const string CacheCoreCmsSettingList = "CacheCoreCmsSettingList";
|
||||
|
||||
public const string CacheCoreCmsSettingByComparison = "CacheCoreCmsSettingByComparison";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// CookieOpenid
|
||||
/// </summary>
|
||||
public const string CookieOpenId = "CookieOpenId";
|
||||
/// <summary>
|
||||
/// SessionOpenId
|
||||
/// </summary>
|
||||
public const string SessionOpenId = "SessionOpenId";
|
||||
/// <summary>
|
||||
/// 用户AccessToken有效期
|
||||
/// </summary>
|
||||
public const string CookieOAuthAccessTokenEndTime = "CookieOAuthAccessTokenEndTime";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 广告表
|
||||
/// </summary>
|
||||
public const string CacheCoreCmsAdvertisement = "CacheCoreCmsAdvertisement";
|
||||
public const string CacheCoreCmsAdvertPosition = "CacheCoreCmsAdvertPosition"; //广告位置表
|
||||
public const string CacheCoreCmsArea = "CacheCoreCmsArea"; // 地区表
|
||||
public const string CacheCoreCmsArticle = "CacheCoreCmsArticle"; //文章表
|
||||
public const string CacheCoreCmsArticleType = "CacheCoreCmsArticleType"; // 文章分类表
|
||||
public const string CacheCoreCmsBillAftersales = "CacheCoreCmsBillAftersales"; // 退货单表
|
||||
public const string CacheCoreCmsBillAftersalesImages = "CacheCoreCmsBillAftersalesImages"; // 商品图片关联表
|
||||
public const string CacheCoreCmsBillAftersalesItem = "CacheCoreCmsBillAftersalesItem"; // 售后单明细表
|
||||
public const string CacheCoreCmsBillDelivery = "CacheCoreCmsBillDelivery"; //发货单表
|
||||
public const string CacheCoreCmsBillDeliveryItem = "CacheCoreCmsBillDeliveryItem"; // 发货单详情表
|
||||
public const string CacheCoreCmsBillDeliveryOrderRel = "CacheCoreCmsBillDeliveryOrderRel"; // 发货单订单关联表
|
||||
public const string CacheCoreCmsBillLading = "CacheCoreCmsBillLading"; // 提货单表
|
||||
public const string CacheCoreCmsBillPayments = "CacheCoreCmsBillPayments"; //支付单表
|
||||
public const string CacheCoreCmsBillPaymentsRel = "CacheCoreCmsBillPaymentsRel"; //支付单明细表
|
||||
public const string CacheCoreCmsBillRefund = "CacheCoreCmsBillRefund"; //退款单表
|
||||
public const string CacheCoreCmsBillReship = "CacheCoreCmsBillReship"; //退货单表
|
||||
public const string CacheCoreCmsBillReshipItem = "CacheCoreCmsBillReshipItem"; // 退货单明细表
|
||||
public const string CacheCoreCmsBrand = "CacheCoreCmsBrand"; //品牌表
|
||||
public const string CacheCoreCmsCart = "CacheCoreCmsCart"; // 购物车表
|
||||
public const string CacheCoreCmsClerk = "CacheCoreCmsClerk"; //店铺店员关联表
|
||||
public const string CacheCoreCmsCoupon = "CacheCoreCmsCoupon"; // 优惠券表
|
||||
public const string CacheCoreCmsDistribution = "CacheCoreCmsDistribution"; // 分销商表
|
||||
public const string CacheCoreCmsDistributionCondition = "CacheCoreCmsDistributionCondition"; //分销商等级升级条件
|
||||
public const string CacheCoreCmsDistributionGrade = "CacheCoreCmsDistributionGrade"; // 分销商等级设置表
|
||||
public const string CacheCoreCmsDistributionOrder = "CacheCoreCmsDistributionOrder"; //分销商订单记录表
|
||||
public const string CacheCoreCmsDistributionResult = "CacheCoreCmsDistributionResult"; // 等级佣金表
|
||||
public const string CacheCoreCmsErrorMessageLog = "CacheCoreCmsErrorMessageLog"; //后台异常错误表
|
||||
public const string CacheCoreCmsForm = "CacheCoreCmsForm"; //表单
|
||||
public const string CacheCoreCmsFormItem = "CacheCoreCmsFormItem"; // 表单项表
|
||||
public const string CacheCoreCmsFormSubmit = "CacheCoreCmsFormSubmit"; // 用户对表的提交记录
|
||||
public const string CacheCoreCmsFormSubmitDetail = "CacheCoreCmsFormSubmitDetail"; //提交表单保存大文本值表
|
||||
public const string CacheCoreCmsGoods = "CacheCoreCmsGoods"; // 商品表
|
||||
public const string CacheCoreCmsGoodsBrowsing = "CacheCoreCmsGoodsBrowsing"; // 商品浏览记录表
|
||||
public const string CacheCoreCmsGoodsCategory = "CacheCoreCmsGoodsCategory"; // 商品分类
|
||||
public const string CacheCoreCmsGoodsCategoryExtend = "CacheCoreCmsGoodsCategoryExtend"; //商品分类扩展表
|
||||
public const string CacheCoreCmsGoodsCollection = "CacheCoreCmsGoodsCollection"; //商品收藏表
|
||||
public const string CacheCoreCmsGoodsComment = "CacheCoreCmsGoodsComment"; //商品评价表
|
||||
public const string CacheCoreCmsGoodsGrade = "CacheCoreCmsGoodsGrade"; //商品会员价表
|
||||
public const string CacheCoreCmsGoodsImages = "CacheCoreCmsGoodsImages"; // 商品图片关联表
|
||||
public const string CacheCoreCmsGoodsParams = "CacheCoreCmsGoodsParams"; // 商品参数表
|
||||
public const string CacheCoreCmsGoodsType = "CacheCoreCmsGoodsType"; // 商品类型
|
||||
public const string CacheCoreCmsGoodsTypeParams = "CacheCoreCmsGoodsTypeParams"; // 商品参数类型关系表
|
||||
public const string CacheCoreCmsGoodsTypeSpec = "CacheCoreCmsGoodsTypeSpec"; //商品类型属性表
|
||||
public const string CacheCoreCmsGoodsTypeSpecRel = "CacheCoreCmsGoodsTypeSpecRel"; //商品类型和属性关联表
|
||||
public const string CacheCoreCmsGoodsTypeSpecValue = "CacheCoreCmsGoodsTypeSpecValue"; // 商品类型属性值表
|
||||
public const string CacheCoreCmsImages = "CacheCoreCmsImages"; // 图片表
|
||||
public const string CacheCoreCmsInvoice = "CacheCoreCmsInvoice"; // 发票表
|
||||
public const string CacheCoreCmsInvoiceRecord = "CacheCoreCmsInvoiceRecord"; //发票信息记录
|
||||
public const string CacheCoreCmsJobs = "CacheCoreCmsJobs"; // 队列表
|
||||
public const string CacheCoreCmsLabel = "CacheCoreCmsLabel"; //标签表
|
||||
public const string CacheCoreCmsLoginLog = "CacheCoreCmsLoginLog"; // 登录日志
|
||||
public const string CacheCoreCmsLogistics = "CacheCoreCmsLogistics"; // 物流公司表
|
||||
public const string CacheCoreCmsMessage = "CacheCoreCmsMessage"; //消息发送表
|
||||
public const string CacheCoreCmsMessageCenter = "CacheCoreCmsMessageCenter"; // 消息配置表
|
||||
public const string CacheCoreCmsNotice = "CacheCoreCmsNotice"; //公告表
|
||||
public const string CacheCoreCmsOrder = "CacheCoreCmsOrder"; //订单表
|
||||
public const string CacheCoreCmsOrderItem = "CacheCoreCmsOrderItem"; //订单明细表
|
||||
public const string CacheCoreCmsOrderLog = "CacheCoreCmsOrderLog"; //订单记录表
|
||||
public const string CacheCoreCmsPages = "CacheCoreCmsPages"; // 单页
|
||||
public const string CacheCoreCmsPagesItems = "CacheCoreCmsPagesItems"; //单页内容
|
||||
public const string CacheCoreCmsPayments = "CacheCoreCmsPayments"; // 支付方式表
|
||||
public const string CacheCoreCmsPinTuanGoods = "CacheCoreCmsPinTuanGoods"; //拼团商品表
|
||||
public const string CacheCoreCmsPinTuanRecord = "CacheCoreCmsPinTuanRecord"; //拼团记录表
|
||||
public const string CacheCoreCmsPinTuanRule = "CacheCoreCmsPinTuanRule"; //拼团规则表
|
||||
public const string CacheCoreCmsProducts = "CacheCoreCmsProducts"; //货品表
|
||||
public const string CacheCoreCmsPromotion = "CacheCoreCmsPromotion"; // 促销表
|
||||
public const string CacheCoreCmsPromotionCondition = "CacheCoreCmsPromotionCondition"; // 促销条件表
|
||||
public const string CacheCoreCmsPromotionResult = "CacheCoreCmsPromotionResult"; //促销结果表
|
||||
public const string CacheCoreCmsSetting = "CacheCoreCmsSetting"; //店铺设置表
|
||||
public const string CacheCoreCmsShip = "CacheCoreCmsShip"; //配送方式表
|
||||
public const string CacheCoreCmsSms = "CacheCoreCmsSms"; // 短信发送日志
|
||||
public const string CacheCoreCmsStore = "CacheCoreCmsStore"; // 门店表
|
||||
public const string CacheCoreCmsTemplate = "CacheCoreCmsTemplate"; //模板列表
|
||||
public const string CacheCoreCmsTemplateMessage = "CacheCoreCmsTemplateMessage"; //模板消息
|
||||
public const string CacheCoreCmsTemplateOrder = "CacheCoreCmsTemplateOrder"; //模板订购记录表
|
||||
public const string CacheCoreCmsUser = "CacheCoreCmsUser"; //用户表
|
||||
public const string CacheCoreCmsUserBalance = "CacheCoreCmsUserBalance"; //用户余额表
|
||||
public const string CacheCoreCmsUserBankCard = "CacheCoreCmsUserBankCard"; //银行卡信息
|
||||
public const string CacheCoreCmsUserGrade = "CacheCoreCmsUserGrade"; // 用户等级表
|
||||
public const string CacheCoreCmsUserLog = "CacheCoreCmsUserLog"; // 用户日志
|
||||
public const string CacheCoreCmsUserPointLog = "CacheCoreCmsUserPointLog"; //用户积分记录表
|
||||
public const string CacheCoreCmsUserShip = "CacheCoreCmsUserShip"; //用户地址表
|
||||
public const string CacheCoreCmsUserTocash = "CacheCoreCmsUserTocash"; //用户提现记录表
|
||||
public const string CacheCoreCmsUserToken = "CacheCoreCmsUserToken"; // 用户token
|
||||
public const string CacheCoreCmsUserWeChatInfo = "CacheCoreCmsUserWeChatInfo"; //用户表
|
||||
public const string CacheCoreCmsUserWeChatMsgSubscription = "CacheCoreCmsUserWeChatMsgSubscription"; // 微信订阅消息存储表
|
||||
public const string CacheCoreCmsUserWeChatMsgSubscriptionSwitch = "CacheCoreCmsUserWeChatMsgSubscriptionSwitch"; // 用户订阅提醒状态
|
||||
public const string CacheCoreCmsUserWeChatMsgTemplate = "CacheCoreCmsUserWeChatMsgTemplate"; // 微信小程序消息模板
|
||||
public const string CacheCoreCmsWeixinAuthor = "CacheCoreCmsWeixinAuthor"; // 获取授权方的帐号基本信息表
|
||||
public const string CacheCoreCmsWeixinMediaMessage = "CacheCoreCmsWeixinMediaMessage"; //微信图文消息表
|
||||
public const string CacheCoreCmsWeixinMenu = "CacheCoreCmsWeixinMenu"; //微信公众号菜单表
|
||||
public const string CacheCoreCmsWeixinMessage = "CacheCoreCmsWeixinMessage"; //微信消息表
|
||||
public const string CacheCoreCmsWeixinPublish = "CacheCoreCmsWeixinPublish"; //小程序发布审核表
|
||||
public const string CacheCoreCmsWorkSheet = "CacheCoreCmsWorkSheet"; //工作工单表
|
||||
public const string CacheSysDictionary = "CacheSysDictionary"; //数据字典表
|
||||
public const string CacheSysDictionaryData = "CacheSysDictionaryData"; //数据字典项表
|
||||
public const string CacheSysLoginRecord = "CacheSysLoginRecord"; //登录日志表
|
||||
public const string CacheSysMenu = "CacheSysMenu"; // 菜单表
|
||||
public const string CacheSysOperRecord = "CacheSysOperRecord"; // 操作日志表
|
||||
public const string CacheSysOrganization = "CacheSysOrganization"; // 组织机构表
|
||||
public const string CacheSysRole = "CacheSysRole"; //角色表
|
||||
public const string CacheSysRoleMenu = "CacheSysRoleMenu"; //角色菜单关联表
|
||||
public const string CacheSysUser = "CacheSysUser"; //用户表
|
||||
public const string CacheSysUserRole = "CacheSysUserRole"; //用户角色关联表
|
||||
public const string CacheViewStoreClerk = "CacheViewStoreClerk"; //店员视图表
|
||||
public const string CacheCoreCmsProductsDistribution = "CacheCoreCmsProductsDistribution"; //货品三级佣金表
|
||||
public const string CacheCoreCmsServiceDescription = "CacheCoreCmsServiceDescription";
|
||||
public const string CacheCoreCmsAgentGrade = "CacheCoreCmsAgentGrade";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Tools工具常量
|
||||
/// </summary>
|
||||
public static class ToolsVars
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public const string IllegalWordsCahceName = "IllegalWordsCahce";
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 权限变量配置
|
||||
/// </summary>
|
||||
public static class Permissions
|
||||
{
|
||||
public const string Name = "Permission";
|
||||
|
||||
/// <summary>
|
||||
/// 当前项目是否启用IDS4权限方案
|
||||
/// true:表示启动IDS4
|
||||
/// false:表示使用JWT
|
||||
public static bool IsUseIds4 = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 路由变量前缀配置
|
||||
/// </summary>
|
||||
public static class RoutePrefix
|
||||
{
|
||||
/// <summary>
|
||||
/// 前缀名
|
||||
/// 如果不需要,尽量留空,不要修改
|
||||
/// 除非一定要在所有的 api 前统一加上特定前缀
|
||||
/// </summary>
|
||||
public const string Name = "";
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 银行卡相关常量定义
|
||||
/// </summary>
|
||||
public static class BankConst
|
||||
{
|
||||
public const string BankLogoUrl = "https://apimg.alipay.com/combo.png?d=cashier&t=";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// RedisMqKey队列
|
||||
/// </summary>
|
||||
public static class RedisMessageQueueKey
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信支付成功后推送到接口进行数据处理
|
||||
/// </summary>
|
||||
public const string WeChatPayNotice = "WeChatPayNoticeQueue";
|
||||
/// <summary>
|
||||
/// 微信模板消息
|
||||
/// </summary>
|
||||
public const string SendWxTemplateMessage = "SendWxTemplateMessage";
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 订单完结后走代理或分销商提成处理
|
||||
/// </summary>
|
||||
public const string OrderAgentOrDistribution = "OrderAgentOrDistributionQueue";
|
||||
/// <summary>
|
||||
/// 订单完成时,结算该订单
|
||||
/// </summary>
|
||||
public const string OrderFinishCommand = "OrderFinishCommandQueue";
|
||||
/// <summary>
|
||||
/// 订单完成时,门店订单自动发货
|
||||
/// </summary>
|
||||
public const string OrderAutomaticDelivery = "OrderAutomaticDeliveryQueue";
|
||||
/// <summary>
|
||||
/// 订单完结后走打印模块
|
||||
/// </summary>
|
||||
public const string OrderPrint = "OrderPrintQueue";
|
||||
/// <summary>
|
||||
/// 售后审核通过后处理
|
||||
/// </summary>
|
||||
public const string AfterSalesReview = "AfterSalesReview";
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 日志队列
|
||||
/// </summary>
|
||||
public const string LogingQueue = "LogingQueue";
|
||||
/// <summary>
|
||||
/// 短信发送队列
|
||||
/// </summary>
|
||||
public const string SmsQueue = "SmsQueue";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//用户相关
|
||||
|
||||
//订单支付成功后,用户升级处理
|
||||
public const string UserUpGrade = "UserUpGradeQueue";
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
2772
CoreCms.Net.Configuration/GlobalEnumVars.cs
Normal file
2772
CoreCms.Net.Configuration/GlobalEnumVars.cs
Normal file
File diff suppressed because it is too large
Load Diff
573
CoreCms.Net.Configuration/GlobalErrorCodeVars.cs
Normal file
573
CoreCms.Net.Configuration/GlobalErrorCodeVars.cs
Normal file
@@ -0,0 +1,573 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-03-28 23:22:14
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据接口错误编码返回
|
||||
/// 11000 用户
|
||||
/// 12000 商品
|
||||
/// 13000 订单
|
||||
/// 14000 api
|
||||
/// 15000 促销&优惠券
|
||||
/// </summary>
|
||||
public class GlobalErrorCodeVars
|
||||
{
|
||||
|
||||
public const string Code10000 = "未定义的错误信息";
|
||||
public const string Code10002 = "没有找到此记录";
|
||||
public const string Code10003 = "参数不正确";
|
||||
public const string Code10004 = "保存失败";
|
||||
public const string Code10005 = "用户信息没有修改";
|
||||
public const string Code10006 = "图片超过限定张数";
|
||||
public const string Code10007 = "删除失败";
|
||||
public const string Code10008 = "没有此配置参数";
|
||||
public const string Code10009 = "没有此消息编码,请确认";
|
||||
public const string Code10010 = "您没有该操作权限";
|
||||
public const string Code10011 = "请选择商户";
|
||||
public const string Code10012 = "验证码错误";
|
||||
public const string Code10013 = "请输入验证码";
|
||||
public const string Code10014 = "没有此推荐人";
|
||||
public const string Code10015 = "商户公众号未配置";
|
||||
public const string Code10016 = "编辑失败";
|
||||
public const string Code10018 = "操作失败";
|
||||
public const string Code10019 = "新增失败";
|
||||
public const string Code10020 = "出了点小状况,请刷新重试~";
|
||||
public const string Code10021 = "更新失败";
|
||||
public const string Code10022 = "非法操作";
|
||||
public const string Code10023 = "删除失败";
|
||||
public const string Code10024 = "修改失败";
|
||||
public const string Code10025 = "获取失败";
|
||||
public const string Code10026 = "创建失败";
|
||||
public const string Code10027 = "查询失败";
|
||||
public const string Code10028 = "有非法查询字段";
|
||||
public const string Code10029 = "查询字段错误";
|
||||
public const string Code10030 = "字段校检通过";
|
||||
public const string Code10031 = "排序错误";
|
||||
public const string Code10032 = "排序校检通过";
|
||||
public const string Code10033 = "无参数相关信息";
|
||||
public const string Code10034 = "删除消息失败";
|
||||
public const string Code10035 = "上传失败";
|
||||
public const string Code10036 = "没有符合的数据";
|
||||
public const string Code10037 = "失败";
|
||||
public const string Code10038 = "添加失败";
|
||||
public const string Code10039 = "导出执行失败";
|
||||
public const string Code10040 = "导出执行成功";
|
||||
public const string Code10041 = "导入执行失败";
|
||||
public const string Code10042 = "图片保存失败";
|
||||
public const string Code10043 = "请先上传图片";
|
||||
public const string Code10045 = "请输入任务名称,防止混淆";
|
||||
public const string Code10046 = "导出任务加入成功,请到任务列表中下载文件";
|
||||
public const string Code10047 = "导入任务加入成功,请到任务列表中查看进度";
|
||||
public const string Code10048 = "请求地址出错";
|
||||
public const string Code10049 = "callback参数不合法";
|
||||
|
||||
|
||||
public const string Code10050 = "此支付方式未启用";
|
||||
public const string Code10051 = "缺少参数,请确认";
|
||||
public const string Code10052 = "此支付方式未启用,或不是一个有效的支付方式";
|
||||
public const string Code10053 = "已开启过此支付方式,不需要重复开启";
|
||||
public const string Code10054 = "没有此支付类型,请确认";
|
||||
public const string Code10055 = "请选择支付方式";
|
||||
public const string Code10056 = "请输入支付单号";
|
||||
public const string Code10057 = "没有此支付方式";
|
||||
public const string Code10058 = "没有此支付方式,或此支付方式未启用";
|
||||
public const string Code10059 = "支付单金额为0,直接支付成功";
|
||||
public const string Code10060 = "没有找到此支付单";
|
||||
public const string Code10061 = "不需要获取openid";
|
||||
public const string Code10062 = "请用户先进行微信登陆或绑定";
|
||||
public const string Code10063 = "请用户先进行支付宝登陆或绑定";
|
||||
public const string Code10064 = "请先选择标签";
|
||||
public const string Code10065 = "发送失败";
|
||||
public const string Code10066 = "msg里的值就是跳转的url"; //微信公众号静默登陆
|
||||
public const string Code10067 = "公众号支付必须传url参数";
|
||||
public const string Code10068 = "code必传";
|
||||
public const string Code10069 = "后台小程序配置的APPID和APPSECRET错误,无法生成海报";
|
||||
public const string Code10070 = "iv参数缺失";
|
||||
public const string Code10071 = "加密参数缺失";
|
||||
public const string Code10072 = "地址库不存在,请重新生成";
|
||||
public const string Code10073 = "未查询到授权信息";
|
||||
public const string Code10074 = "清除缓存成功";
|
||||
public const string Code10075 = "后台操作日志默认不让删除";
|
||||
public const string Code10076 = "时间段格式不正确";
|
||||
public const string Code10077 = "没有此时间维度";
|
||||
public const string Code10078 = "开始时间必须小于结束时间";
|
||||
public const string Code10079 = "没有此时间粒度";
|
||||
public const string Code10080 = "无此业务类型";
|
||||
public const string Code10081 = "设置失败";
|
||||
public const string Code10082 = "已超时或重复提交,请重试或刷新页面";
|
||||
public const string Code10083 = "无可导出数据";
|
||||
public const string Code10084 = "平台名称不能为空";
|
||||
public const string Code10085 = "联系方式号码格式错误";
|
||||
public const string Code10099 = "暂无消息";
|
||||
public const string Code10100 = "没有此消息编码";
|
||||
|
||||
|
||||
//文章等
|
||||
public const string Code10800 = "文章分类";
|
||||
public const string Code10801 = "文章不存在或已删除";
|
||||
public const string Code10802 = "无法选择自己和自己的子级为父级";
|
||||
//广告位
|
||||
public const string Code10820 = "该广告位模板已经添加";
|
||||
public const string Code10821 = "该广告位下有广告,删除失败";
|
||||
|
||||
public const string Code10840 = "该地区下存在关联地区,无法删除";
|
||||
|
||||
public const string Code11001 = "用户未登录";
|
||||
public const string Code11002 = "此微信用户未登录或当前账号未绑定微信账号";
|
||||
public const string Code11003 = "请选择头像";
|
||||
public const string Code11004 = "没有找到此用户";
|
||||
public const string Code11005 = "此用户没有绑定手机号码,所以发送短信失败";
|
||||
public const string Code11006 = "此用户以停用,请联系总管理员";
|
||||
public const string Code11007 = "余额不足";
|
||||
public const string Code11008 = "请输入用户名,长度6-20位";
|
||||
public const string Code11009 = "请输入密码,长度为6-16位";
|
||||
public const string Code11010 = "没有找到此管理员";
|
||||
public const string Code11011 = "用户名重复";
|
||||
public const string Code11012 = "请输入旧密码";
|
||||
public const string Code11013 = "请输入新密码";
|
||||
public const string Code11014 = "请输入确认密码";
|
||||
public const string Code11015 = "用户余额不足";
|
||||
public const string Code11016 = "没有找到此提现银行卡";
|
||||
public const string Code11017 = "请输入银行卡号";
|
||||
public const string Code11018 = "请输入提现金额";
|
||||
public const string Code11019 = "已注册过,请直接登陆";
|
||||
public const string Code11020 = "请输入正确的充值金额";
|
||||
public const string Code11021 = "请检查银行卡号是否有误";
|
||||
public const string Code11022 = "账号已停用";
|
||||
public const string Code11023 = "超级管理员,就不要编辑了吧?";
|
||||
public const string Code11024 = "超级管理员,就不要删除了把?";
|
||||
public const string Code11025 = "两次密码输入不一致";
|
||||
public const string Code11026 = "密码过期了";
|
||||
public const string Code11027 = "请选择出生日期";
|
||||
public const string Code11028 = "请输入昵称";
|
||||
public const string Code11029 = "请设置出生日期";
|
||||
|
||||
public const string Code11030 = "没有此用户等级";
|
||||
public const string Code11031 = "请输入手机号码或者密码";
|
||||
public const string Code11032 = "没有找到此账号";
|
||||
public const string Code11033 = "密码错误,请重试";
|
||||
public const string Code11044 = "新密码和旧密码一致";
|
||||
public const string Code11045 = "旧密码不正确";
|
||||
public const string Code11046 = "短信验证码错误";
|
||||
public const string Code11047 = "此账号已经注册过,请直接登陆";
|
||||
public const string Code11048 = "填写邀请码失败";
|
||||
public const string Code11049 = "自己不能邀请自己";
|
||||
public const string Code11050 = "没有此收货地址信息";
|
||||
public const string Code11051 = "请输入手机号码";
|
||||
public const string Code11052 = "邀请码不存在";
|
||||
public const string Code11053 = "已有上级邀请,不能绑定其他的邀请";
|
||||
public const string Code11054 = "不能关联这个邀请人,因为他是你的下级或者下下级";
|
||||
public const string Code11055 = "请选择自提门店";
|
||||
public const string Code11056 = "用户暂无收货地址";
|
||||
public const string Code11057 = "请输入正确的手机号";
|
||||
public const string Code11058 = "手机号已经存在,请更换手机号重新添加";
|
||||
public const string Code11059 = "用户名已经存在,请确认";
|
||||
public const string Code11060 = "该卡片已经添加";
|
||||
public const string Code11061 = "该银行卡不存在";
|
||||
public const string Code11062 = "该地址不存在";
|
||||
public const string Code11063 = "提现最低不能少于{str1}元";
|
||||
public const string Code11064 = "每日提现不能超过{str1}元";
|
||||
public const string Code11065 = "提现失败";
|
||||
public const string Code11066 = "没有此记录或不是待审核状态";
|
||||
|
||||
|
||||
|
||||
public const string Code11070 = "请输入角色名称";
|
||||
public const string Code11071 = "没有此角色信息";
|
||||
public const string Code11072 = "没有选择权限信息";
|
||||
|
||||
public const string Code11080 = "请输入管理员的手机号码";
|
||||
public const string Code11081 = "没有找到此用户";
|
||||
public const string Code11082 = "目前一个账号只能绑定一个店铺,此手机号码已注册过店铺,如果是未审核通过的店铺可以联系平台删除对应的店铺,然后再次添加此管理员";
|
||||
public const string Code11083 = "手机号码和用户id两者最少写一个";
|
||||
public const string Code11084 = "此账号已经是店铺管理员了,请勿重新设置";
|
||||
public const string Code11085 = "此账号是超级管理员,不需要添加";
|
||||
public const string Code11086 = "您不是管理员,请先成为商户管理员或者创建自己的店铺";
|
||||
public const string Code11087 = "用户绑定了多个商户平台,系统不知道你想登陆哪一个,需要用户去选择"; //严格意义上来说这个不是错误信息
|
||||
public const string Code11088 = "没有找到控制器,请联系平台管理员";
|
||||
public const string Code11089 = "没有找到此方法,请联系平台管理员";
|
||||
public const string Code11090 = "没有找到此方法所对应的关联方法,请联系平台管理员";
|
||||
public const string Code11091 = "请先清空下级节点";
|
||||
public const string Code11092 = "核心参数不能为空";
|
||||
public const string Code11093 = "父节点是模块,当前类型就必须是控制器";
|
||||
public const string Code11094 = "父节点是控制器,当前类型就必须是方法";
|
||||
public const string Code11095 = "父节点是根节点,当前类型就必须是模块";
|
||||
public const string Code11096 = "当前节点已经存在,请勿重复提交";
|
||||
public const string Code11097 = "设置的父节点可能会陷入死循环";
|
||||
public const string Code11098 = "设置的父菜单可能陷入死循环";
|
||||
public const string Code11099 = "如果是控制器节点,菜单节点必须和父节点保持一致";
|
||||
|
||||
public const string Code11100 = "购物车商品不能为空,或不是有效的商品";
|
||||
public const string Code11101 = "父节点可能会陷入死循环";
|
||||
|
||||
|
||||
|
||||
public const string Code11500 = "店铺不存在,请确认";
|
||||
public const string Code11501 = "店铺现在处于非正常状态"; //未审核通过或者是到期了
|
||||
public const string Code11502 = "这个手机号没有对应的店铺用户";
|
||||
public const string Code11503 = "已经存在这个店员,无需重复添加";
|
||||
public const string Code11504 = "不是店员";
|
||||
|
||||
|
||||
//积分
|
||||
public const string Code11600 = "积分不足,无法使用积分";
|
||||
public const string Code11601 = "积分超过订单可使用的积分数量";
|
||||
public const string Code11602 = "今天已经签到,无需重复签到";
|
||||
public const string Code11603 = "今天还没有签到";
|
||||
//商品
|
||||
//分类
|
||||
public const string Code12001 = "获取顶级分类失败";
|
||||
public const string Code12002 = "商品数据保存失败";
|
||||
public const string Code12003 = "货品数据保存失败";
|
||||
public const string Code12004 = "请选择默认货品";
|
||||
public const string Code12005 = "会员价保存失败";
|
||||
public const string Code12006 = "商品图片保存失败";
|
||||
public const string Code12007 = "扩展分类保存失败";
|
||||
public const string Code12008 = "总库存更新失败";
|
||||
public const string Code12009 = "商品ID不能为空";
|
||||
public const string Code12010 = "存在下级分类,不允许删除";
|
||||
public const string Code12011 = "属性值不能为空";
|
||||
public const string Code12012 = "属性值删除失败";
|
||||
public const string Code12013 = "属性值保存失败";
|
||||
public const string Code12014 = "商品: {str1} 已在未结束的活动{str2}中,请勿重复添加!";
|
||||
// public const string Code12015="上架";
|
||||
// public const string Code12016="下架";
|
||||
public const string Code12017 = "没有找到此商品分类";
|
||||
|
||||
|
||||
//品牌
|
||||
public const string Code12101 = "";
|
||||
//类型
|
||||
public const string Code12301 = "";
|
||||
//属性
|
||||
public const string Code12401 = "";
|
||||
//货品
|
||||
public const string Code12501 = "货品不存在";
|
||||
|
||||
//商品
|
||||
public const string Code12700 = "商品不存在";
|
||||
public const string Code12701 = "无此规格信息";
|
||||
public const string Code12702 = "库存不足";
|
||||
public const string Code12703 = "库存更新失败";
|
||||
public const string Code12704 = "商品删除失败";
|
||||
public const string Code12705 = "获取促销商品失败";
|
||||
public const string Code12706 = "商品已下架";
|
||||
|
||||
//订单
|
||||
public const string Code13001 = "请选择收货地址";
|
||||
public const string Code13002 = "取消订单成功";
|
||||
public const string Code13003 = "取消订单失败";
|
||||
public const string Code13004 = "暂未设置配送方式";
|
||||
public const string Code13005 = "下单成功";
|
||||
public const string Code13006 = "下单失败";
|
||||
public const string Code13007 = "订单支付失败";
|
||||
public const string Code13008 = "订单支付失败,该订单已支付";
|
||||
public const string Code13009 = "订单不存在";
|
||||
public const string Code13010 = "备注失败";
|
||||
|
||||
public const string Code13100 = "请输入订单编号";
|
||||
public const string Code13101 = "没有找到此订单信息,或者您没有权限查看此信息";
|
||||
public const string Code13102 = "已有售后,请联系客服";
|
||||
public const string Code13103 = "订单类型不能为空";
|
||||
|
||||
//订单售后
|
||||
public const string Code13200 = "订单不是可售后状态";
|
||||
public const string Code13201 = "退货的数量超过可退的数量";
|
||||
public const string Code13202 = "退货商品不正确,请确认";
|
||||
public const string Code13203 = "订单状态不可退款";
|
||||
public const string Code13204 = "订单状态不可退货";
|
||||
public const string Code13205 = "请选择退货商品";
|
||||
public const string Code13206 = "总退款金额超过已支付金额";
|
||||
public const string Code13207 = "售后单不是待审核状态,或者没有找到此售后单";
|
||||
public const string Code13208 = "退款单金额为0,不需要退款";
|
||||
public const string Code13209 = "退货数量为空,不需要生成退货单";
|
||||
public const string Code13210 = "退款单已退或没权限进行操作";
|
||||
public const string Code13211 = "退货单已退或没权限进行操作";
|
||||
public const string Code13212 = "请输入退货单编号";
|
||||
public const string Code13213 = "请选择物流公司";
|
||||
public const string Code13214 = "请输入物流编码";
|
||||
public const string Code13215 = "请输入退款单号";
|
||||
public const string Code13216 = "请输入退款金额";
|
||||
public const string Code13217 = "请输入售后单号";
|
||||
public const string Code13218 = "没有找到此售后单";
|
||||
public const string Code13219 = "没有找到此退款单或此退款单状态不是未待退款状态";
|
||||
public const string Code13220 = "请输入退货单号";
|
||||
public const string Code13221 = "没有找到此退货单";
|
||||
public const string Code13222 = "请输入售后单号";
|
||||
public const string Code13223 = "没有找到此售后单号";
|
||||
public const string Code13224 = "没有找到此退款单或此退款单状态不是退款失败状态";
|
||||
public const string Code13225 = "缺少物流查询参数";
|
||||
public const string Code13226 = "x轴最多1000个节点,请减少时间范围,或者修改粒度";
|
||||
public const string Code13227 = "还没发货呢,怎么能收到货呢?";
|
||||
public const string Code13228 = "请选择审核状态";
|
||||
public const string Code13229 = "快递公司编码不能为空";
|
||||
public const string Code13230 = "确认收货失败";
|
||||
public const string Code13231 = "砍价活动订单更新失败";
|
||||
public const string Code13232 = "物流公司不存在";
|
||||
|
||||
|
||||
//订单发货
|
||||
public const string Code13300 = "订单已完成或取消不能发货";
|
||||
public const string Code13301 = "订单未付款不能发货";
|
||||
public const string Code13302 = "订单已发货不能再发货";
|
||||
public const string Code13303 = "订单中不存在要发货的商品";
|
||||
public const string Code13304 = "发货数量大于订单中商品的数量";
|
||||
public const string Code13305 = "发货单生成出现未知错误";
|
||||
public const string Code13306 = "发货失败,该货品已不存在";
|
||||
public const string Code13307 = "发货失败,商品数量不足";
|
||||
public const string Code13308 = "发货明细里包含订单之外的商品";
|
||||
|
||||
public const string Code13309 = "收货地址信息不全";
|
||||
public const string Code13310 = "{str1}发超了";
|
||||
public const string Code13311 = "请至少发生一件商品!";
|
||||
public const string Code13312 = "提货单不存在";
|
||||
public const string Code13313 = "未提货的提货单不能删除";
|
||||
public const string Code13314 = "你无权删除该提货单";
|
||||
public const string Code13315 = "没有可提货的订单";
|
||||
public const string Code13316 = "请选择配送地区";
|
||||
public const string Code13317 = "请选择订单";
|
||||
public const string Code13318 = "门店自提订单和普通订单不能混合发货。";
|
||||
public const string Code13319 = "订单号:{str1}非正常状态不能发货。<br />";
|
||||
public const string Code13320 = "订单号:{str1} 未支付不能发货。<br />";
|
||||
public const string Code13321 = "订单号:{str1} 不是待发货和部分发货状态不能发货。<br />";
|
||||
public const string Code13322 = "订单号:{str1}有未审核的售后单,请先处理掉才能发货。";
|
||||
public const string Code13323 = "多个用户订单,";
|
||||
public const string Code13324 = "多个收货地址,";
|
||||
public const string Code13325 = "请注意!合并发货订单中存在:{str1}。确定发货吗?";
|
||||
public const string Code13326 = "{str1}的{str2}发超了";
|
||||
|
||||
|
||||
//评价
|
||||
public const string Code13400 = "评价缺少商品信息";
|
||||
public const string Code13401 = "评价缺少订单号";
|
||||
public const string Code13402 = "评价缺少商家店铺评价信息";
|
||||
public const string Code13403 = "缺少商品ID参数";
|
||||
public const string Code13404 = "评价失败:{str1}";
|
||||
public const string Code13405 = "订单状态存在问题,不能评价";
|
||||
|
||||
//支付
|
||||
public const string Code13500 = "没有找到此未支付的支付单号";
|
||||
public const string Code13501 = "订单号:{str1}没有找到,或不是未支付状态";
|
||||
public const string Code13502 = "请输入正确的充值金额";
|
||||
public const string Code13503 = "表单:{str1}没有找到,或不是未支付状态";
|
||||
public const string Code13504 = "没有找到此支付记录";
|
||||
|
||||
public const string Code13550 = "没有找到支付成功的支付单号";
|
||||
public const string Code13551 = "退款单退款方式和支付方式不一样,原路退还失败";
|
||||
public const string Code13552 = "";
|
||||
|
||||
//售后
|
||||
public const string Code13600 = "aftersale_level值类型不对";
|
||||
public const string Code13601 = "未发货商品-{str1}{str2}最多能退{str3}个";
|
||||
public const string Code13602 = "已发货商品-{str1}{str2}最多能退{str3}个";
|
||||
|
||||
|
||||
public const string Code14001 = "";
|
||||
public const string Code14002 = "method参数结构错误";
|
||||
public const string Code14003 = "method参数1不存在";
|
||||
public const string Code14004 = "method参数2不存在";
|
||||
public const string Code14006 = "请先登录";
|
||||
public const string Code14007 = "用户身份过期请重新登录";
|
||||
public const string Code14008 = "操作失败,请重试1";
|
||||
public const string Code14009 = "操作失败,请重试2";
|
||||
public const string Code14011 = "请输入货品id";
|
||||
public const string Code14012 = "请输入货品数量";
|
||||
public const string Code14013 = "移除购物车成功";
|
||||
public const string Code14014 = "移除购物车失败";
|
||||
public const string Code14015 = "生成token失败";
|
||||
public const string Code14016 = "不是有效的token";
|
||||
|
||||
|
||||
//促销,优惠券
|
||||
public const string Code15001 = "请输入促销名称";
|
||||
public const string Code15002 = "请输入起止时间";
|
||||
public const string Code15003 = "请选择促销条件";
|
||||
public const string Code15004 = "没有找到此促销条件";
|
||||
public const string Code15005 = "没有找到此促销结果";
|
||||
public const string Code15006 = "请输入促销ID参数";
|
||||
public const string Code15007 = "该优惠券不存在或状态不可领取";
|
||||
public const string Code15008 = "你已领取过了,勿重复领取";
|
||||
public const string Code15009 = "优惠券号码不存在";
|
||||
public const string Code15010 = "优惠券还没有到开始时间";
|
||||
public const string Code15011 = "优惠券已经过期";
|
||||
public const string Code15012 = "优惠券禁用了,请联系客服";
|
||||
public const string Code15013 = "优惠券已经使用过了";
|
||||
public const string Code15014 = "优惠券不符合使用规则";
|
||||
public const string Code15015 = "同一类优惠券,只能使用一张";
|
||||
public const string Code15016 = "团购或秒杀只能应用一种促销结果";
|
||||
public const string Code15017 = "同一个商品只能同时存在一个团购秒杀";
|
||||
public const string Code15018 = "已超出领取限额";
|
||||
public const string Code15019 = "优惠券信息获取失败";
|
||||
public const string Code15020 = "优惠券号码不存在";
|
||||
public const string Code15021 = "领取失败";
|
||||
public const string Code15022 = "核销使用优惠券失败";
|
||||
public const string Code15023 = "一次最多可以生成5000张";
|
||||
public const string Code15024 = "一张都没生成";
|
||||
public const string Code15025 = "该优惠券已被使用";
|
||||
public const string Code15026 = "该优惠券已被其他人领取";
|
||||
public const string Code15027 = "绑定失败";
|
||||
public const string Code15028 = "优惠券超过最大领取数量";
|
||||
|
||||
//拼团
|
||||
public const string Code15600 = "活动已结束";
|
||||
public const string Code15601 = "还没有到时间";
|
||||
public const string Code15602 = "已经结束了";
|
||||
public const string Code15603 = "没有找到此拼团商品";
|
||||
public const string Code15604 = "请传拼团id";
|
||||
public const string Code15605 = "请传商品id";
|
||||
public const string Code15606 = "请传入订单id或者teamId";
|
||||
public const string Code15607 = "没有此拼团记录,或不是已经结束";
|
||||
public const string Code15608 = "参加拼团的商品和下单商品不一致";
|
||||
public const string Code15609 = "没有找到拼团发起人";
|
||||
public const string Code15610 = "该商品已超过当前活动最大购买量";
|
||||
public const string Code15611 = "您已超过该活动最大购买量";
|
||||
public const string Code15612 = "货品折扣后价格已经小于0元";
|
||||
public const string Code15613 = "您不能参加自己的开团";
|
||||
|
||||
//微信消息
|
||||
public const string Code16001 = "请输入标题";
|
||||
public const string Code16002 = "请先填写内容";
|
||||
|
||||
|
||||
|
||||
public const string Code17001 = "商品数据不存在";
|
||||
public const string Code17002 = "收藏成功";
|
||||
public const string Code17003 = "取消收藏成功!";
|
||||
|
||||
//砍价
|
||||
public const string Code17601 = "砍价活动暂未开始";
|
||||
public const string Code17602 = "砍价活动已结束";
|
||||
public const string Code17603 = "没有找到此砍价商品";
|
||||
public const string Code17604 = "请传砍价id";
|
||||
// public const string Code17605="请传商品id";
|
||||
// public const string Code17610="该商品已超过当前活动最大购买量";
|
||||
public const string Code17611 = "您已超过该活动最大购买量";
|
||||
public const string Code17612 = "砍价活动不存在";
|
||||
public const string Code17613 = "您参与的活动已下单,请勿重复下单";
|
||||
public const string Code17614 = "您参与的活动已结束";
|
||||
public const string Code17615 = "您参与的活动已取消";
|
||||
public const string Code17616 = "该砍价已成功,请先支付后再继续参与活动";
|
||||
public const string Code17618 = "发起砍价活动失败";
|
||||
|
||||
public const string Code17620 = "请输入活动名称";
|
||||
public const string Code17621 = "请输入活动简介";
|
||||
public const string Code17622 = "请选择单规格商品";
|
||||
public const string Code17623 = "砍价活动状态错误";
|
||||
public const string Code17624 = "请选择活动时间";
|
||||
public const string Code17625 = "请输入起始金额";
|
||||
public const string Code17626 = "请输入成交金额";
|
||||
public const string Code17627 = "请输入最大价";
|
||||
public const string Code17628 = "请输入最小价";
|
||||
public const string Code17629 = "请输入有效时长";
|
||||
public const string Code17630 = "请输入砍价次数";
|
||||
public const string Code17631 = "砍价总次数必须大于0";
|
||||
public const string Code17632 = "商品:{str1} 参加过砍价了";
|
||||
public const string Code17633 = "砍价记录不存在,请先参加活动";
|
||||
public const string Code17634 = "此商品只能砍价{str1}次";
|
||||
public const string Code17635 = "此商品已经砍到最底价了";
|
||||
public const string Code17636 = "您已超过该活动最大参加次数,看看别的活动吧~";
|
||||
public const string Code17637 = "您有正在进行中的砍价,请勿重复参加";
|
||||
public const string Code17638 = "活动数量已满,请看看其它活动吧";
|
||||
public const string Code17639 = "活动不存在";
|
||||
|
||||
|
||||
//表单
|
||||
public const string Code18001 = "表单不存在";
|
||||
public const string Code18002 = "表单已过期";
|
||||
public const string Code18003 = "您已达到最大提交次数,请忽继续提交。";
|
||||
public const string Code18004 = "格式错误,请重新输入";
|
||||
public const string Code18005 = "提交失败,请重试";
|
||||
public const string Code18006 = "请输入";
|
||||
public const string Code18007 = "表单明细提交失败,请重试";
|
||||
public const string Code18008 = "暂无表单";
|
||||
public const string Code18009 = "请先删除该表单下用户的提交记录";
|
||||
public const string Code18010 = "请先添加表单项";
|
||||
public const string Code18011 = "无此提交";
|
||||
public const string Code18012 = "此表单需要登录后操作";
|
||||
public const string Code18020 = "未提交任何数据";
|
||||
|
||||
//通用 -21000
|
||||
public const string Code20000 = "请选择";
|
||||
public const string Code20001 = "请选择日期";
|
||||
public const string Code20002 = "请选择广告位";
|
||||
public const string Code20003 = "请选择广告商品";
|
||||
public const string Code20004 = "请选择广告文章";
|
||||
public const string Code20005 = "请选择文章分类";
|
||||
public const string Code20006 = "请选择更新时间段";
|
||||
public const string Code20007 = "请选择市";
|
||||
public const string Code20008 = "请选择县/区";
|
||||
public const string Code20009 = "请选择地区";
|
||||
public const string Code20010 = "请选择单规格商品";
|
||||
public const string Code20011 = "请选择智能表单";
|
||||
public const string Code20012 = "请选择待核销订单";
|
||||
public const string Code20013 = "请选择品牌";
|
||||
public const string Code20014 = "请选择分类";
|
||||
public const string Code20015 = "请选择类型";
|
||||
public const string Code20016 = "请选择属性";
|
||||
public const string Code20017 = "";
|
||||
public const string Code20018 = "";
|
||||
public const string Code20019 = "";
|
||||
public const string Code20020 = "";
|
||||
public const string Code20021 = "";
|
||||
public const string Code20022 = "";
|
||||
public const string Code20023 = "";
|
||||
public const string Code20024 = "";
|
||||
public const string Code20025 = "";
|
||||
public const string Code20026 = "";
|
||||
public const string Code20027 = "";
|
||||
public const string Code20028 = "";
|
||||
public const string Code20029 = "";
|
||||
public const string Code20030 = "";
|
||||
public const string Code20031 = "";
|
||||
public const string Code20032 = "";
|
||||
public const string Code20033 = "";
|
||||
public const string Code20034 = "";
|
||||
public const string Code20035 = "";
|
||||
public const string Code20036 = "";
|
||||
public const string Code20037 = "";
|
||||
public const string Code20038 = "";
|
||||
public const string Code20039 = "";
|
||||
public const string Code20040 = "";
|
||||
|
||||
//会员管理 -21000
|
||||
|
||||
//商品管理 -22000
|
||||
|
||||
//订单管理 -23000
|
||||
|
||||
//运营管理 -24000
|
||||
|
||||
//促销管理 -25000
|
||||
|
||||
//财务管理 -26000
|
||||
|
||||
//控制面板 -27000
|
||||
|
||||
|
||||
//30000 前台
|
||||
|
||||
//会员管理 -31000
|
||||
|
||||
//商品管理 -32000
|
||||
|
||||
//订单管理 -33000
|
||||
|
||||
//运营管理 -34000
|
||||
|
||||
//促销管理 -35000
|
||||
|
||||
//财务管理 -36000
|
||||
|
||||
//控制面板 -37000
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
62
CoreCms.Net.Configuration/GlobalStatusCodes.cs
Normal file
62
CoreCms.Net.Configuration/GlobalStatusCodes.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-03-14 16:30:32
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// HTTP 返回格式状态码
|
||||
/// </summary>
|
||||
public static class GlobalStatusCodes
|
||||
{
|
||||
public const int Status100Continue = 100;
|
||||
public const int Status101SwitchingProtocols = 101;
|
||||
public const int Status102Processing = 102;
|
||||
public const int Status200Ok = 200;
|
||||
|
||||
// 等等等等
|
||||
|
||||
public const int Status400BadRequest = 400;
|
||||
public const int Status401Unauthorized = 401;
|
||||
public const int Status402PaymentRequired = 402;
|
||||
public const int Status403Forbidden = 403;
|
||||
public const int Status404NotFound = 404;
|
||||
public const int Status405MethodNotAllowed = 405;
|
||||
public const int Status406NotAcceptable = 406;
|
||||
|
||||
public const int Status414RequestUriTooLong = 414;
|
||||
public const int Status414UriTooLong = 414;
|
||||
public const int Status415UnsupportedMediaType = 415;
|
||||
public const int Status416RangeNotSatisfiable = 416;
|
||||
public const int Status416RequestedRangeNotSatisfiable = 416;
|
||||
public const int Status417ExpectationFailed = 417;
|
||||
public const int Status418ImATeapot = 418;
|
||||
public const int Status419AuthenticationTimeout = 419;
|
||||
public const int Status421MisdirectedRequest = 421;
|
||||
public const int Status422UnprocessableEntity = 422;
|
||||
public const int Status423Locked = 423;
|
||||
public const int Status424FailedDependency = 424;
|
||||
|
||||
// 等等等等
|
||||
|
||||
public const int Status500InternalServerError = 500;
|
||||
public const int Status501NotImplemented = 501;
|
||||
public const int Status502BadGateway = 502;
|
||||
public const int Status503ServiceUnavailable = 503;
|
||||
public const int Status504GatewayTimeout = 504;
|
||||
public const int Status505HttpVersionNotsupported = 505;
|
||||
public const int Status506VariantAlsoNegotiates = 506;
|
||||
public const int Status507InsufficientStorage = 507;
|
||||
public const int Status508LoopDetected = 508;
|
||||
public const int Status510NotExtended = 510;
|
||||
public const int Status511NetworkAuthenticationRequired = 511;
|
||||
|
||||
}
|
||||
}
|
||||
715
CoreCms.Net.Configuration/SystemSettingConstVars.cs
Normal file
715
CoreCms.Net.Configuration/SystemSettingConstVars.cs
Normal file
@@ -0,0 +1,715 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-03-03 3:24:15
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 平台设置字段缓存名称定义
|
||||
/// </summary>
|
||||
public static class SystemSettingConstVars
|
||||
{
|
||||
/// <summary>
|
||||
/// 平台名称
|
||||
/// </summary>
|
||||
public const string ShopName = "shopName";
|
||||
|
||||
/// <summary>
|
||||
/// 平台描述
|
||||
/// </summary>
|
||||
public const string ShopDesc = "shopDesc";
|
||||
|
||||
/// <summary>
|
||||
/// 平台地址
|
||||
/// </summary>
|
||||
public const string ShopAddress = "shopAddress";
|
||||
|
||||
/// <summary>
|
||||
/// 备案信息
|
||||
/// </summary>
|
||||
public const string ShopBeiAn = "shopBeiAn";
|
||||
|
||||
/// <summary>
|
||||
/// 平台logo
|
||||
/// </summary>
|
||||
public const string ShopLogo = "shopLogo";
|
||||
|
||||
/// <summary>
|
||||
/// Favicon图标
|
||||
/// </summary>
|
||||
public const string ShopFavicon = "shopFavicon";
|
||||
|
||||
/// <summary>
|
||||
/// 默认图
|
||||
/// </summary>
|
||||
public const string ShopDefaultImage = "shopDefaultImage";
|
||||
|
||||
/// <summary>
|
||||
/// 商家手机号
|
||||
/// </summary>
|
||||
public const string ShopMobile = "shopMobile";
|
||||
|
||||
/// <summary>
|
||||
/// 开启门店自提
|
||||
/// </summary>
|
||||
public const string StoreSwitch = "storeSwitch";
|
||||
|
||||
/// <summary>
|
||||
/// 分类样式
|
||||
/// </summary>
|
||||
public const string CateStyle = "cateStyle";
|
||||
|
||||
/// <summary>
|
||||
/// H5分类样式
|
||||
/// </summary>
|
||||
public const string CateType = "cateType";
|
||||
|
||||
/// <summary>
|
||||
/// 订单取消时间
|
||||
/// </summary>
|
||||
public const string OrderCancelTime = "orderCancelTime";
|
||||
|
||||
/// <summary>
|
||||
/// 订单完成时间
|
||||
/// </summary>
|
||||
public const string OrderCompleteTime = "orderCompleteTime";
|
||||
|
||||
/// <summary>
|
||||
/// 订单确认收货时间
|
||||
/// </summary>
|
||||
public const string OrderAutoSignTime = "orderAutoSignTime";
|
||||
|
||||
/// <summary>
|
||||
/// 订单自动评价时间
|
||||
/// </summary>
|
||||
public const string OrderAutoEvalTime = "orderAutoEvalTime";
|
||||
|
||||
/// <summary>
|
||||
/// 订单提醒付款时间
|
||||
/// </summary>
|
||||
public const string RemindOrderTime = "remindOrderTime";
|
||||
|
||||
/// <summary>
|
||||
/// 门店订单自动发货
|
||||
/// </summary>
|
||||
public const string StoreOrderAutomaticDelivery = "storeOrderAutomaticDelivery";
|
||||
|
||||
//分销功能(老分销)=============================================================
|
||||
/// <summary>
|
||||
/// 是否开启分销
|
||||
/// </summary>
|
||||
public const string OpenDistribution = "openDistribution";
|
||||
/// <summary>
|
||||
/// 用户须知:成为分销商后,可以获取佣金,用户只可被推荐一次,越早推荐越返利越多哦。
|
||||
/// </summary>
|
||||
public const string DistributionNotes = "distributionNotes";
|
||||
/// <summary>
|
||||
/// 分销协议
|
||||
/// </summary>
|
||||
public const string DistributionAgreement = "distributionAgreement";
|
||||
/// <summary>
|
||||
/// 是否开启店铺
|
||||
/// </summary>
|
||||
public const string DistributionStore = "distributionStore";
|
||||
|
||||
/// <summary>
|
||||
/// 显示邀请人信息
|
||||
/// </summary>
|
||||
public const string ShowInviterInfo = "showInviterInfo";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 分销层级1,2层
|
||||
/// </summary>
|
||||
public const string DistributionLevel = "distributionLevel";
|
||||
/// <summary>
|
||||
/// 成为分销商条件:1无条件(需要审核),2申请(需要审核),3无条件
|
||||
/// </summary>
|
||||
public const string DistributionType = "distributionType";
|
||||
/// <summary>
|
||||
/// 消费自动成为分销商:元
|
||||
/// </summary>
|
||||
public const string DistributionMoney = "distributionMoney";
|
||||
/// <summary>
|
||||
/// 购买商品成为分销商:1关闭,2任意商品,3指定商品
|
||||
/// </summary>
|
||||
public const string DistributionGoods = "distributionGoods";
|
||||
/// <summary>
|
||||
/// 购买商品成为分销商指定商品序列号
|
||||
/// </summary>
|
||||
public const string DistributionGoodsId = "distributionGoodsId";
|
||||
/// <summary>
|
||||
/// 佣金类型:1百分比,2固定金额
|
||||
/// </summary>
|
||||
public const string CommissionType = "commissionType";
|
||||
/// <summary>
|
||||
/// 一级佣金
|
||||
/// </summary>
|
||||
public const string CommissionFirst = "commissionFirst";
|
||||
/// <summary>
|
||||
/// 二级佣金
|
||||
/// </summary>
|
||||
public const string CommissionSecond = "commissionSecond";
|
||||
/// <summary>
|
||||
/// 三级佣金
|
||||
/// </summary>
|
||||
public const string CommissionThird = "commissionThird";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 库存警报数量
|
||||
/// </summary>
|
||||
public const string GoodsStocksWarn = "goodsStocksWarn";
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 退货联系人
|
||||
/// </summary>
|
||||
public const string ReshipName = "reshipName";
|
||||
|
||||
/// <summary>
|
||||
/// 退货联系方式
|
||||
/// </summary>
|
||||
public const string ReshipMobile = "reshipMobile";
|
||||
|
||||
/// <summary>
|
||||
/// 退货区域
|
||||
/// </summary>
|
||||
public const string ReshipAreaId = "reshipAreaId";
|
||||
|
||||
/// <summary>
|
||||
/// 退货详细地址
|
||||
/// </summary>
|
||||
public const string ReshipAddress = "reshipAddress";
|
||||
|
||||
/// <summary>
|
||||
/// 退货坐标
|
||||
/// </summary>
|
||||
public const string ReshipCoordinate = "reshipCoordinate";
|
||||
|
||||
/// <summary>
|
||||
/// 签到奖励类型
|
||||
/// </summary>
|
||||
public const string SignPointType = "signPointType";
|
||||
|
||||
/// <summary>
|
||||
/// 随机奖励积分最小值
|
||||
/// </summary>
|
||||
public const string SignRandomMin = "signRandomMin";
|
||||
|
||||
/// <summary>
|
||||
/// 随机奖励积分最大值
|
||||
/// </summary>
|
||||
public const string SignRandomMax = "signRandomMax";
|
||||
|
||||
/// <summary>
|
||||
/// 首次奖励积分
|
||||
/// </summary>
|
||||
public const string FirstSignPoint = "firstSignPoint";
|
||||
|
||||
/// <summary>
|
||||
/// 连续签到追加
|
||||
/// </summary>
|
||||
public const string ContinuitySignAdditional = "continuitySignAdditional";
|
||||
|
||||
/// <summary>
|
||||
/// 单日最大奖励
|
||||
/// </summary>
|
||||
public const string SignMostPoint = "signMostPoint";
|
||||
|
||||
/// <summary>
|
||||
/// 开启积分功能
|
||||
/// </summary>
|
||||
public const string PointSwitch = "pointSwitch";
|
||||
|
||||
/// <summary>
|
||||
/// 订单积分折现比例
|
||||
/// </summary>
|
||||
public const string PointDiscountedProportion = "pointDiscountedProportion";
|
||||
|
||||
/// <summary>
|
||||
/// 订单积分使用比例
|
||||
/// </summary>
|
||||
public const string OrdersPointProportion = "ordersPointProportion";
|
||||
|
||||
/// <summary>
|
||||
/// 订单积分奖励比例
|
||||
/// </summary>
|
||||
public const string OrdersRewardProportion = "ordersRewardProportion";
|
||||
|
||||
/// <summary>
|
||||
/// 指定特殊日期状态
|
||||
/// </summary>
|
||||
public const string SignAppointDateStatus = "signAppointDateStatus";
|
||||
|
||||
/// <summary>
|
||||
/// 指定特殊日期
|
||||
/// </summary>
|
||||
public const string SignAppointDate = "signAppointDate";
|
||||
|
||||
/// <summary>
|
||||
/// 指定日期奖励类型
|
||||
/// </summary>
|
||||
public const string SignAppointDataType = "signAppointDataType";
|
||||
|
||||
/// <summary>
|
||||
/// 指定日期倍率
|
||||
/// </summary>
|
||||
public const string SignAppointDateRate = "signAppointDateRate";
|
||||
|
||||
/// <summary>
|
||||
/// 指定日期追加
|
||||
/// </summary>
|
||||
public const string SignAppointDateAdditional = "signAppointDateAdditional";
|
||||
|
||||
|
||||
|
||||
|
||||
//小程序设置============================================================================
|
||||
/// <summary>
|
||||
/// 小程序部署URL
|
||||
/// </summary>
|
||||
public const string WxUrl = "wxUrl";
|
||||
/// <summary>
|
||||
/// 小程序名称
|
||||
/// </summary>
|
||||
public const string WxNickName = "wxNickName";
|
||||
|
||||
/// <summary>
|
||||
/// 小程序AppId
|
||||
/// </summary>
|
||||
public const string WxAppid = "wxAppid";
|
||||
|
||||
/// <summary>
|
||||
/// 小程序AppSecret
|
||||
/// </summary>
|
||||
public const string WxAppSecret = "wxAppSecret";
|
||||
|
||||
/// <summary>
|
||||
/// 小程序TOKEN
|
||||
/// </summary>
|
||||
public const string WxToken = "wxToken";
|
||||
|
||||
/// <summary>
|
||||
/// 小程序EncodingAESKey
|
||||
/// </summary>
|
||||
public const string WxEncodeaeskey = "wxEncodeaeskey";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 原始Id
|
||||
/// </summary>
|
||||
public const string WxUserName = "wxUserName";
|
||||
|
||||
/// <summary>
|
||||
/// 主体信息
|
||||
/// </summary>
|
||||
public const string WxPrincipalName = "wxPrincipalName";
|
||||
|
||||
/// <summary>
|
||||
/// 简介
|
||||
/// </summary>
|
||||
public const string WxSignature = "wxSignature";
|
||||
|
||||
|
||||
//公众号设置============================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 公众号部署URL
|
||||
/// </summary>
|
||||
public const string WxOfficialUrl = "wxOfficialUrl";
|
||||
/// <summary>
|
||||
/// 公众号名称
|
||||
/// </summary>
|
||||
public const string WxOfficialName = "wxOfficialName";
|
||||
|
||||
/// <summary>
|
||||
/// 微信号
|
||||
/// </summary>
|
||||
public const string WxOfficialId = "wxOfficialId";
|
||||
|
||||
/// <summary>
|
||||
/// AppId
|
||||
/// </summary>
|
||||
public const string WxOfficialAppid = "wxOfficialAppid";
|
||||
|
||||
/// <summary>
|
||||
/// AppSecret
|
||||
/// </summary>
|
||||
public const string WxOfficialAppSecret = "wxOfficialAppSecret";
|
||||
|
||||
/// <summary>
|
||||
/// 公众号原始ID
|
||||
/// </summary>
|
||||
public const string WxOfficialSourceId = "wxOfficialSourceId";
|
||||
|
||||
/// <summary>
|
||||
/// 微信验证TOKEN
|
||||
/// </summary>
|
||||
public const string WxOfficialToken = "wxOfficialToken";
|
||||
|
||||
/// <summary>
|
||||
/// EncodingAESKey
|
||||
/// </summary>
|
||||
public const string WxOfficialEncodeaeskey = "wxOfficialEncodeaeskey";
|
||||
|
||||
/// <summary>
|
||||
/// 公众号类型
|
||||
/// </summary>
|
||||
public const string WxOfficialType = "wxOfficialType";
|
||||
/// <summary>
|
||||
/// 公众号二维码
|
||||
/// </summary>
|
||||
public const string WxOfficialQrCode = "wxOfficialQrCode";
|
||||
|
||||
|
||||
// 提现设置============================================================================
|
||||
/// <summary>
|
||||
/// 最低提现金额
|
||||
/// </summary>
|
||||
public const string TocashMoneyLow = "tocashMoneyLow";
|
||||
|
||||
/// <summary>
|
||||
/// 提现服务费率
|
||||
/// </summary>
|
||||
public const string TocashMoneyRate = "tocashMoneyRate";
|
||||
|
||||
/// <summary>
|
||||
/// 每日提现上限
|
||||
/// </summary>
|
||||
public const string TocashMoneyLimit = "tocashMoneyLimit";
|
||||
|
||||
|
||||
//其他设置============================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 腾讯地图key
|
||||
/// </summary>
|
||||
public const string QqMapKey = "qqMapKey";
|
||||
|
||||
/// <summary>
|
||||
/// 公司编号
|
||||
/// </summary>
|
||||
public const string Kuaidi100Customer = "kuaidi100Customer";
|
||||
|
||||
/// <summary>
|
||||
/// 授权key
|
||||
/// </summary>
|
||||
public const string Kuaidi100Key = "kuaidi100Key";
|
||||
|
||||
|
||||
//搜索发现关键字============================================================================
|
||||
/// <summary>
|
||||
/// 搜索发现关键词
|
||||
/// </summary>
|
||||
public const string RecommendKeys = "recommendKeys";
|
||||
|
||||
|
||||
//统计代码============================================================================
|
||||
/// <summary>
|
||||
/// 百度统计代码
|
||||
/// </summary>
|
||||
public const string StatisticsCode = "statisticsCode";
|
||||
|
||||
|
||||
//发票开关============================================================================
|
||||
/// <summary>
|
||||
/// 发票功能
|
||||
/// </summary>
|
||||
public const string InvoiceSwitch = "invoiceSwitch";
|
||||
|
||||
|
||||
//第三方的登陆的时候,是否需要绑定手机号码,强烈建议用户开启,除非只在微信小程序内使用============================================================================
|
||||
//1绑定,2不绑定
|
||||
/// <summary>
|
||||
/// 绑定手机号码
|
||||
/// </summary>
|
||||
public const string IsBindMobile = "isBindMobile";
|
||||
|
||||
//支付宝小程序appid============================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝小程序appid
|
||||
/// </summary>
|
||||
public const string MpAlipayAppid = "mpAlipayAppid";
|
||||
|
||||
/// <summary>
|
||||
/// 分享图片
|
||||
/// </summary>
|
||||
public const string ShareImage = "shareImage";
|
||||
|
||||
/// <summary>
|
||||
/// 分享标题
|
||||
/// </summary>
|
||||
public const string ShareTitle = "shareTitle";
|
||||
|
||||
/// <summary>
|
||||
/// 分享描述
|
||||
/// </summary>
|
||||
public const string ShareDesc = "shareDesc";
|
||||
|
||||
/// <summary>
|
||||
/// 关于我们文章
|
||||
/// </summary>
|
||||
public const string AboutArticleId = "aboutArticleId";
|
||||
|
||||
/// <summary>
|
||||
/// 关于我们文章
|
||||
/// </summary>
|
||||
public const string AboutArticle = "aboutArticle";
|
||||
|
||||
/// <summary>
|
||||
/// 客服ID
|
||||
/// </summary>
|
||||
public const string EntId = "entId";
|
||||
|
||||
/// <summary>
|
||||
/// 用户协议
|
||||
/// </summary>
|
||||
public const string UserAgreementId = "userAgreementId";
|
||||
|
||||
/// <summary>
|
||||
/// 用户协议
|
||||
/// </summary>
|
||||
public const string UserAgreement = "userAgreement";
|
||||
|
||||
/// <summary>
|
||||
/// 隐私政策
|
||||
/// </summary>
|
||||
public const string PrivacyPolicyId = "privacyPolicyId";
|
||||
|
||||
/// <summary>
|
||||
/// 隐私政策
|
||||
/// </summary>
|
||||
public const string PrivacyPolicy = "privacyPolicy";
|
||||
|
||||
/// <summary>
|
||||
/// 显示门店列表
|
||||
/// </summary>
|
||||
public const string ShowStoresSwitch = "showStoresSwitch";
|
||||
|
||||
/// <summary>
|
||||
/// 显示充值功能
|
||||
/// </summary>
|
||||
public const string ShowStoreBalanceRechargeSwitch = "showStoreBalanceRechargeSwitch";
|
||||
|
||||
//第三方接口============================================================================
|
||||
/// <summary>
|
||||
/// 易源接口授权key
|
||||
/// </summary>
|
||||
public const string ShowApiAppid = "showApiAppid";
|
||||
/// <summary>
|
||||
/// 易源接口授权密钥
|
||||
/// </summary>
|
||||
public const string ShowApiSecret = "showApiSecret";
|
||||
|
||||
|
||||
//短信平台============================================================================
|
||||
/// <summary>
|
||||
/// 是否开启短信
|
||||
/// </summary>
|
||||
public const string SmsEnabled = "smsEnabled";
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public const string SmsUserId = "smsUserId";
|
||||
/// <summary>
|
||||
/// 用户账号
|
||||
/// </summary>
|
||||
public const string SmsAccount = "smsAccount";
|
||||
/// <summary>
|
||||
/// 用户密码
|
||||
/// </summary>
|
||||
public const string SmsPassword = "smsPassword";
|
||||
/// <summary>
|
||||
/// 短信api地址
|
||||
/// </summary>
|
||||
public const string SmsApiUrl = "smsApiUrl";
|
||||
/// <summary>
|
||||
/// 短信签名
|
||||
/// </summary>
|
||||
public const string SmsSignature = "smsSignature";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 账户注册-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForReg = "smsTplForReg";
|
||||
|
||||
/// <summary>
|
||||
/// 账户登录-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForLogin = "smsTplForLogin";
|
||||
|
||||
/// <summary>
|
||||
/// 验证验证码-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForVeri = "smsTplForVeri";
|
||||
|
||||
/// <summary>
|
||||
/// 下单成功时-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForCreateOrder = "smsTplForCreateOrder";
|
||||
|
||||
/// <summary>
|
||||
/// 订单支付成功时-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForOrderPayed = "smsTplForOrderPayed";
|
||||
|
||||
/// <summary>
|
||||
/// 订单催付提醒-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForRemindOrderPay = "smsTplForRemindOrderPay";
|
||||
|
||||
/// <summary>
|
||||
/// 订单发货通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForDeliveryNotice = "smsTplForDeliveryNotice";
|
||||
|
||||
/// <summary>
|
||||
/// 售后确认通过-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForAfterSalesPass = "smsTplForAfterSalesPass";
|
||||
|
||||
/// <summary>
|
||||
/// 用户退款成功通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForRefundSuccess = "smsTplForRefundSuccess";
|
||||
|
||||
/// <summary>
|
||||
/// 订单付款成功平台通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForSellerOrderNotice = "smsTplForSellerOrderNotice";
|
||||
|
||||
/// <summary>
|
||||
/// 通用类型-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForCommon = "smsTplForCommon";
|
||||
|
||||
//网络打印机============================================================================
|
||||
/// <summary>
|
||||
/// 是否开启
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterEnabled = "netWorkPrinterEnabled";
|
||||
/// <summary>
|
||||
/// 应用ID
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterClientId = "netWorkPrinterClientId";
|
||||
/// <summary>
|
||||
/// 应用密钥
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterClientSecret = "netWorkPrinterClientSecret";
|
||||
/// <summary>
|
||||
/// 打印机设备号
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterMachineCode = "netWorkPrinterMachineCode";
|
||||
/// <summary>
|
||||
/// 打印机终端密钥
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterMsign = "netWorkPrinterMsign";
|
||||
/// <summary>
|
||||
/// 打印机名称
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterPrinterName = "netWorkPrinterPrinterName";
|
||||
/// <summary>
|
||||
/// 打印机设置联系方式
|
||||
/// </summary>
|
||||
public static readonly string NetWorkPrinterPhone = "netWorkPrinterPhone";
|
||||
|
||||
//代理模块============================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启代理模块
|
||||
/// </summary>
|
||||
public static readonly string IsOpenAgent = "isOpenAgent";
|
||||
|
||||
/// <summary>
|
||||
/// 是否显示代理模块申请及管理入口
|
||||
/// </summary>
|
||||
public static readonly string IsShowAgentPortal = "isShowAgentPortal";
|
||||
|
||||
/// <summary>
|
||||
/// 用户须知:
|
||||
/// </summary>
|
||||
public const string AgentNotes = "agentNotes";
|
||||
/// <summary>
|
||||
/// 分销协议:
|
||||
/// </summary>
|
||||
public const string AgentAgreement = "agentAgreement";
|
||||
/// <summary>
|
||||
/// 是否允许代理代购服务
|
||||
/// </summary>
|
||||
public const string IsAllowProcurementService = "isAllowProcurementService";
|
||||
|
||||
|
||||
//附件存储============================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 存储方式
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageType = "filesStorageType";
|
||||
/// <summary>
|
||||
/// 存储路径
|
||||
/// </summary>
|
||||
public static readonly string FilesStoragePath = "filesStoragePath";
|
||||
/// <summary>
|
||||
/// 文件后缀类型
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageFileSuffix = "filesStorageFileSuffix";
|
||||
/// <summary>
|
||||
/// 文件最大大小M
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageFileMaxSize = "filesStorageFileMaxSize";
|
||||
|
||||
/// <summary>
|
||||
/// 云存储绑定域名
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageBucketBindUrl = "filesStorageBucketBindUrl";
|
||||
/// <summary>
|
||||
/// 云存储授权账户
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageAccessKeyId = "filesStorageAccessKeyId";
|
||||
/// <summary>
|
||||
/// 云存储授权密钥
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageAccessKeySecret = "filesStorageAccessKeySecret";
|
||||
|
||||
/// <summary>
|
||||
/// 腾讯云账户标识
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageTencentAccountId = "filesStorageTencentAccountId";
|
||||
/// <summary>
|
||||
/// 腾讯云存储桶地域
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageTencentCosRegion = "filesStorageTencentCosRegion";
|
||||
/// <summary>
|
||||
/// 腾讯云存储桶名称
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageTencentBucketName = "filesStorageTencentBucketName";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云节点
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageAliYunEndpoint = "filesStorageAliYunEndpoint";
|
||||
/// <summary>
|
||||
/// 阿里云桶名称
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageAliYunBucketName = "filesStorageAliYunBucketName";
|
||||
|
||||
/// <summary>
|
||||
/// 七牛云桶名称
|
||||
/// </summary>
|
||||
public static readonly string FilesStorageQiNiuBucketName = "filesStorageQiNiuBucketName";
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
270
CoreCms.Net.Configuration/SystemSettingDictionary.cs
Normal file
270
CoreCms.Net.Configuration/SystemSettingDictionary.cs
Normal file
@@ -0,0 +1,270 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* Projectname= 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-03-02 23:52:48
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System.Collections.Generic;
|
||||
using CoreCms.Net.Model.ViewModels.Basics;
|
||||
|
||||
namespace CoreCms.Net.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 全局基础配置字典类型
|
||||
/// </summary>
|
||||
public static class SystemSettingDictionary
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统配置字典,不匹配数据库(1是2否)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Dictionary<string, DictionaryKeyValues> GetConfig()
|
||||
{
|
||||
Dictionary<string, DictionaryKeyValues> di = new Dictionary<string, DictionaryKeyValues>();
|
||||
//平台设置
|
||||
di.Add(SystemSettingConstVars.ShopName, new DictionaryKeyValues() { sKey = "平台名称", sValue = "核心内容管理系统" });
|
||||
di.Add(SystemSettingConstVars.ShopDesc, new DictionaryKeyValues() { sKey = "平台描述", sValue = "平台描述会展示在前台及微信分享描述" });
|
||||
di.Add(SystemSettingConstVars.ShopAddress, new DictionaryKeyValues() { sKey = "平台地址", sValue = "我的平台地址" });
|
||||
di.Add(SystemSettingConstVars.ShopBeiAn, new DictionaryKeyValues() { sKey = "备案信息", sValue = "网站备案信息" });
|
||||
di.Add(SystemSettingConstVars.ShopLogo, new DictionaryKeyValues() { sKey = "平台logo", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ShopFavicon, new DictionaryKeyValues() { sKey = "Favicon图标", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ShopDefaultImage, new DictionaryKeyValues() { sKey = "默认图", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.StoreSwitch, new DictionaryKeyValues() { sKey = "开启门店自提", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.CateStyle, new DictionaryKeyValues() { sKey = "分类样式", sValue = "3" });
|
||||
di.Add(SystemSettingConstVars.CateType, new DictionaryKeyValues() { sKey = "H5分类样式", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.AboutArticleId, new DictionaryKeyValues() { sKey = "关于我们文章", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.AboutArticle, new DictionaryKeyValues() { sKey = "关于我们文章", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.UserAgreementId, new DictionaryKeyValues() { sKey = "用户协议", sValue = "3" });
|
||||
di.Add(SystemSettingConstVars.UserAgreement, new DictionaryKeyValues() { sKey = "用户协议", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.PrivacyPolicyId, new DictionaryKeyValues() { sKey = "隐私政策", sValue = "4" });
|
||||
di.Add(SystemSettingConstVars.PrivacyPolicy, new DictionaryKeyValues() { sKey = "隐私政策", sValue = "" });
|
||||
|
||||
di.Add(SystemSettingConstVars.ShowStoresSwitch, new DictionaryKeyValues() { sKey = "显示门店列表", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.ShowStoreBalanceRechargeSwitch, new DictionaryKeyValues() { sKey = "显示充值功能", sValue = "2" });
|
||||
|
||||
//搜索发现关键字
|
||||
di.Add(SystemSettingConstVars.RecommendKeys, new DictionaryKeyValues() { sKey = "搜索发现关键词", sValue = "核心,内容,管理,系统" });
|
||||
//分享设置
|
||||
di.Add(SystemSettingConstVars.ShareImage, new DictionaryKeyValues() { sKey = "分享图片", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ShareTitle, new DictionaryKeyValues() { sKey = "分享标题", sValue = "优质好店邀您共享" });
|
||||
di.Add(SystemSettingConstVars.ShareDesc, new DictionaryKeyValues() { sKey = "分享描述", sValue = "" });
|
||||
//会员设置
|
||||
di.Add(SystemSettingConstVars.ShopMobile, new DictionaryKeyValues() { sKey = "商家手机号", sValue = "" });
|
||||
//1绑定,2不绑定-第三方的登陆的时候,是否需要绑定手机号码,强烈建议用户开启,除非只在微信小程序内使用
|
||||
di.Add(SystemSettingConstVars.IsBindMobile, new DictionaryKeyValues() { sKey = "绑定手机号码", sValue = "1" });
|
||||
//商品设置
|
||||
di.Add(SystemSettingConstVars.GoodsStocksWarn, new DictionaryKeyValues() { sKey = "库存警报数量", sValue = "10" });
|
||||
|
||||
//订单管理
|
||||
di.Add(SystemSettingConstVars.OrderCancelTime, new DictionaryKeyValues() { sKey = "订单取消时间", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.OrderCompleteTime, new DictionaryKeyValues() { sKey = "订单完成时间", sValue = "30" });
|
||||
di.Add(SystemSettingConstVars.OrderAutoSignTime, new DictionaryKeyValues() { sKey = "订单确认收货时间", sValue = "20" });
|
||||
di.Add(SystemSettingConstVars.OrderAutoEvalTime, new DictionaryKeyValues() { sKey = "订单自动评价时间", sValue = "30" });
|
||||
di.Add(SystemSettingConstVars.RemindOrderTime, new DictionaryKeyValues() { sKey = "订单提醒付款时间", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.ReshipName, new DictionaryKeyValues() { sKey = "退货联系人", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ReshipMobile, new DictionaryKeyValues() { sKey = "退货联系方式", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ReshipAreaId, new DictionaryKeyValues() { sKey = "退货区域", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ReshipAddress, new DictionaryKeyValues() { sKey = "退货详细地址", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ReshipCoordinate, new DictionaryKeyValues() { sKey = "退货坐标", sValue = "" });
|
||||
|
||||
|
||||
di.Add(SystemSettingConstVars.StoreOrderAutomaticDelivery, new DictionaryKeyValues() { sKey = "门店自提自动发货", sValue = "2" });
|
||||
|
||||
|
||||
|
||||
//分销功能
|
||||
|
||||
di.Add(SystemSettingConstVars.OpenDistribution, new DictionaryKeyValues() { sKey = "是否开启三级分销", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.DistributionNotes, new DictionaryKeyValues() { sKey = "用户须知", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.DistributionAgreement, new DictionaryKeyValues() { sKey = "分销协议", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.DistributionStore, new DictionaryKeyValues() { sKey = "是否开启店铺", sValue = "2" });
|
||||
//di.Add(GlobalSettingConstVars.FirstPushAward, new DictionaryKeyValues() { sKey = "直推奖励", sValue = "0" });
|
||||
//di.Add(GlobalSettingConstVars.SecondPushAward, new DictionaryKeyValues() { sKey = "次推奖励", sValue = "0" });
|
||||
di.Add(SystemSettingConstVars.ShowInviterInfo, new DictionaryKeyValues() { sKey = "是否显示邀请人信息", sValue = "2" });
|
||||
|
||||
|
||||
di.Add(SystemSettingConstVars.DistributionLevel, new DictionaryKeyValues() { sKey = "分销层级", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.DistributionType, new DictionaryKeyValues() { sKey = "成为分销商条件", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.DistributionMoney, new DictionaryKeyValues() { sKey = "消费自动成为分销商", sValue = "100" });
|
||||
di.Add(SystemSettingConstVars.DistributionGoods, new DictionaryKeyValues() { sKey = "购买商品成为分销商", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.DistributionGoodsId, new DictionaryKeyValues() { sKey = "购买商品成为分销商指定商品序列号", sValue = "0" });
|
||||
|
||||
di.Add(SystemSettingConstVars.CommissionType, new DictionaryKeyValues() { sKey = "佣金类型", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.CommissionFirst, new DictionaryKeyValues() { sKey = "一级佣金", sValue = "0" });
|
||||
di.Add(SystemSettingConstVars.CommissionSecond, new DictionaryKeyValues() { sKey = "二级佣金", sValue = "0" });
|
||||
di.Add(SystemSettingConstVars.CommissionThird, new DictionaryKeyValues() { sKey = "三级佣金", sValue = "0" });
|
||||
|
||||
//代理功能
|
||||
di.Add(SystemSettingConstVars.IsOpenAgent, new DictionaryKeyValues() { sKey = "是否开启代理模块", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.IsShowAgentPortal, new DictionaryKeyValues() { sKey = "前端显示入口", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.AgentNotes, new DictionaryKeyValues() { sKey = "用户须知", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.AgentAgreement, new DictionaryKeyValues() { sKey = "代理协议", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.IsAllowProcurementService, new DictionaryKeyValues() { sKey = "是否允许代理代购服务", sValue = "1" });
|
||||
|
||||
//积分设置
|
||||
di.Add(SystemSettingConstVars.SignPointType, new DictionaryKeyValues() { sKey = "签到奖励类型", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.SignRandomMin, new DictionaryKeyValues() { sKey = "随机奖励积分最小值", sValue = "1", });
|
||||
di.Add(SystemSettingConstVars.SignRandomMax, new DictionaryKeyValues() { sKey = "随机奖励积分最大值", sValue = "10" });
|
||||
di.Add(SystemSettingConstVars.FirstSignPoint, new DictionaryKeyValues() { sKey = "首次奖励积分", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.ContinuitySignAdditional, new DictionaryKeyValues() { sKey = "连续签到追加", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.SignMostPoint, new DictionaryKeyValues() { sKey = "单日最大奖励", sValue = "10" });
|
||||
di.Add(SystemSettingConstVars.PointSwitch, new DictionaryKeyValues() { sKey = "开启积分功能", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.PointDiscountedProportion, new DictionaryKeyValues() { sKey = "订单积分折现比例", sValue = "100" });
|
||||
di.Add(SystemSettingConstVars.OrdersPointProportion, new DictionaryKeyValues() { sKey = "订单积分使用比例", sValue = "10" });
|
||||
di.Add(SystemSettingConstVars.OrdersRewardProportion, new DictionaryKeyValues() { sKey = "订单积分奖励比例", sValue = "1" });
|
||||
|
||||
di.Add(SystemSettingConstVars.SignAppointDateStatus, new DictionaryKeyValues() { sKey = "指定特殊日期状态", sValue = "false" });
|
||||
di.Add(SystemSettingConstVars.SignAppointDate, new DictionaryKeyValues() { sKey = "指定特殊日期", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SignAppointDataType, new DictionaryKeyValues() { sKey = "指定日期奖励类型", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.SignAppointDateRate, new DictionaryKeyValues() { sKey = "指定日期倍率", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.SignAppointDateAdditional, new DictionaryKeyValues() { sKey = "指定日期追加", sValue = "10" });
|
||||
|
||||
// 提现设置
|
||||
di.Add(SystemSettingConstVars.TocashMoneyLow, new DictionaryKeyValues() { sKey = "最低提现金额", sValue = "0.01" });
|
||||
di.Add(SystemSettingConstVars.TocashMoneyRate, new DictionaryKeyValues() { sKey = "提现服务费率", sValue = "0" });
|
||||
di.Add(SystemSettingConstVars.TocashMoneyLimit, new DictionaryKeyValues() { sKey = "每日提现上限", sValue = "0" });
|
||||
|
||||
//小程序设置
|
||||
di.Add(SystemSettingConstVars.WxUrl, new DictionaryKeyValues() { sKey = "小程序部署URL", sValue = "https://", });
|
||||
di.Add(SystemSettingConstVars.WxNickName, new DictionaryKeyValues() { sKey = "小程序名称", sValue = "CoreShop", });
|
||||
di.Add(SystemSettingConstVars.WxAppid, new DictionaryKeyValues() { sKey = "AppId", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxAppSecret, new DictionaryKeyValues() { sKey = "AppSecret", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.WxToken, new DictionaryKeyValues() { sKey = "小程序验证TOKEN", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxEncodeaeskey, new DictionaryKeyValues() { sKey = "小程序EncodingAESKey", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.WxUserName, new DictionaryKeyValues() { sKey = "原始Id", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxPrincipalName, new DictionaryKeyValues() { sKey = "主体信息", sValue = "核心内容管理系统", });
|
||||
di.Add(SystemSettingConstVars.WxSignature, new DictionaryKeyValues() { sKey = "简介", sValue = "核心内容管理系统", });
|
||||
|
||||
//公众号设置
|
||||
di.Add(SystemSettingConstVars.WxOfficialUrl, new DictionaryKeyValues() { sKey = "公众号部署URL", sValue = "https://", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialName, new DictionaryKeyValues() { sKey = "公众号名称", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialId, new DictionaryKeyValues() { sKey = "微信号", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialAppid, new DictionaryKeyValues() { sKey = "AppId", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialAppSecret, new DictionaryKeyValues() { sKey = "AppSecret", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialSourceId, new DictionaryKeyValues() { sKey = "公众号原始ID", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialToken, new DictionaryKeyValues() { sKey = "微信验证TOKEN", sValue = "", });
|
||||
di.Add(SystemSettingConstVars.WxOfficialEncodeaeskey, new DictionaryKeyValues() { sKey = "EncodingAESKey", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.WxOfficialType, new DictionaryKeyValues() { sKey = "公众号类型", sValue = "service" });
|
||||
di.Add(SystemSettingConstVars.WxOfficialQrCode, new DictionaryKeyValues() { sKey = "公众号二维码", sValue = "" });
|
||||
|
||||
//其他设置
|
||||
di.Add(SystemSettingConstVars.QqMapKey, new DictionaryKeyValues() { sKey = "腾讯地图key", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.Kuaidi100Customer, new DictionaryKeyValues() { sKey = "公司编号", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.Kuaidi100Key, new DictionaryKeyValues() { sKey = "授权key", sValue = "" });
|
||||
|
||||
//统计代码
|
||||
di.Add(SystemSettingConstVars.StatisticsCode, new DictionaryKeyValues() { sKey = "百度统计代码", sValue = "" });
|
||||
//发票开关
|
||||
di.Add(SystemSettingConstVars.InvoiceSwitch, new DictionaryKeyValues() { sKey = "发票功能", sValue = "1" });
|
||||
//支付宝小程序appid
|
||||
di.Add(SystemSettingConstVars.MpAlipayAppid, new DictionaryKeyValues() { sKey = "支付宝小程序appid", sValue = "" });
|
||||
//客服ID
|
||||
di.Add(SystemSettingConstVars.EntId, new DictionaryKeyValues() { sKey = "客服ID", sValue = "" });
|
||||
//易源接口授权
|
||||
di.Add(SystemSettingConstVars.ShowApiAppid, new DictionaryKeyValues() { sKey = "AppId", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ShowApiSecret, new DictionaryKeyValues() { sKey = "授权Secret", sValue = "" });
|
||||
|
||||
//凯信通短信设置
|
||||
di.Add(SystemSettingConstVars.SmsEnabled, new DictionaryKeyValues() { sKey = "是否开启短信", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.SmsUserId, new DictionaryKeyValues() { sKey = "用户ID", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAccount, new DictionaryKeyValues() { sKey = "账号", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsPassword, new DictionaryKeyValues() { sKey = "密码", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsApiUrl, new DictionaryKeyValues() { sKey = "Api地址", sValue = "http://sms.corecms.net:9999/sms.aspx" });
|
||||
di.Add(SystemSettingConstVars.SmsSignature, new DictionaryKeyValues() { sKey = "短信签名", sValue = "" });
|
||||
|
||||
//附件存储
|
||||
di.Add(SystemSettingConstVars.FilesStorageType, new DictionaryKeyValues() { sKey = "存储方式", sValue = "LocalStorage" });
|
||||
di.Add(SystemSettingConstVars.FilesStoragePath, new DictionaryKeyValues() { sKey = "存储路径", sValue = "/upload/" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageFileSuffix, new DictionaryKeyValues() { sKey = "文件后缀类型", sValue = "gif,jpg,jpeg,png,bmp,xls,xlsx,doc,pdf,mp4,WebM,Ogv" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageFileMaxSize, new DictionaryKeyValues() { sKey = "文件最大大小", sValue = "10" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageBucketBindUrl, new DictionaryKeyValues() { sKey = "云存储绑定域名", sValue = "http://www.coreshop.cn/" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageAccessKeyId, new DictionaryKeyValues() { sKey = "云存储授权账户", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageAccessKeySecret, new DictionaryKeyValues() { sKey = "云存储授权密钥", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageTencentAccountId, new DictionaryKeyValues() { sKey = "腾讯云账户标识", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageTencentCosRegion, new DictionaryKeyValues() { sKey = "腾讯云桶地域", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageTencentBucketName, new DictionaryKeyValues() { sKey = "腾讯云桶名称", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageAliYunEndpoint, new DictionaryKeyValues() { sKey = "阿里云节点", sValue = "https://oss-cn-shenzhen.aliyuncs.com" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageAliYunBucketName, new DictionaryKeyValues() { sKey = "阿里云桶名称", sValue = "CoreShop" });
|
||||
|
||||
di.Add(SystemSettingConstVars.FilesStorageQiNiuBucketName, new DictionaryKeyValues() { sKey = "七牛云桶名称", sValue = "CoreShop" });
|
||||
|
||||
//短信发送内容模板
|
||||
di.Add(SystemSettingConstVars.SmsTplForReg, new DictionaryKeyValues() { sKey = "账户注册", sValue = "您正在注册账号,验证码是{code},请勿告诉他人。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForLogin, new DictionaryKeyValues() { sKey = "账户登录", sValue = "您正在登陆账号,验证码是{code},请勿告诉他人。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForVeri, new DictionaryKeyValues() { sKey = "验证验证码", sValue = "您的验证码是{code},请勿告诉他人。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForCreateOrder, new DictionaryKeyValues() { sKey = "下单成功时", sValue = "恭喜您,订单创建成功,祝您购物愉快。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForOrderPayed, new DictionaryKeyValues() { sKey = "订单支付成功时", sValue = "恭喜您,订单支付成功,祝您购物愉快。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForRemindOrderPay, new DictionaryKeyValues() { sKey = "订单催付提醒", sValue = "您的订单还有1个小时就要取消了,请及时进行支付。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForDeliveryNotice, new DictionaryKeyValues() { sKey = "订单发货通知", sValue = "您好,您的订单已经发货。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForAfterSalesPass, new DictionaryKeyValues() { sKey = "售后确认通过", sValue = "您好,您的售后已经通过。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForRefundSuccess, new DictionaryKeyValues() { sKey = "用户退款成功通知", sValue = "用户您好,您的退款已经处理,请确认。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForSellerOrderNotice, new DictionaryKeyValues() { sKey = "订单付款成功平台通知", sValue = "您有新的订单了,请及时处理。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForCommon, new DictionaryKeyValues() { sKey = "通用类型", sValue = "欢迎您访问我们的微信小程序,有问题请联系客服。" });
|
||||
|
||||
|
||||
return di;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取促销添加参数类型字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<CommonKeyValues> GetPromotionConditionType()
|
||||
{
|
||||
var list = new List<CommonKeyValues>
|
||||
{
|
||||
new CommonKeyValues() {sDescription = "所有商品满足条件", sValue = "goods", sKey = "GOODS_ALL"},
|
||||
new CommonKeyValues() {sDescription = "指定某些商品满足条件", sValue = "goods", sKey = "GOODS_IDS"},
|
||||
new CommonKeyValues() {sDescription = "指定商品分类满足条件", sValue = "goods", sKey = "GOODS_CATS"},
|
||||
new CommonKeyValues() {sDescription = "指定商品品牌满足条件", sValue = "goods", sKey = "GOODS_BRANDS"},
|
||||
new CommonKeyValues() {sDescription = "订单满XX金额满足条件", sValue = "order", sKey = "ORDER_FULL"},
|
||||
new CommonKeyValues() {sDescription = "用户符合指定等级", sValue = "user", sKey = "USER_GRADE"}
|
||||
};
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取促销添加结果类型字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<CommonKeyValues> GetPromotionResultType()
|
||||
{
|
||||
var list = new List<CommonKeyValues>
|
||||
{
|
||||
new CommonKeyValues() {sDescription = "指定商品减固定金额", sValue = "goods", sKey = "GOODS_REDUCE"},
|
||||
new CommonKeyValues() {sDescription = "指定商品打X折", sValue = "goods", sKey = "GOODS_DISCOUNT"},
|
||||
new CommonKeyValues() {sDescription = "指定商品一口价", sValue = "goods", sKey = "GOODS_ONE_PRICE"},
|
||||
new CommonKeyValues() {sDescription = "订单减指定金额", sValue = "order", sKey = "ORDER_REDUCE"},
|
||||
new CommonKeyValues() {sDescription = "订单打X折", sValue = "order", sKey = "ORDER_DISCOUNT"},
|
||||
new CommonKeyValues() {sDescription = "指定商品每第几件减指定金额", sValue = "goods", sKey = "GOODS_HALF_PRICE"}
|
||||
};
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统默认发货物流方式
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<CommonKeyValues> GetSystemLogistics()
|
||||
{
|
||||
var list = new List<CommonKeyValues>
|
||||
{
|
||||
new CommonKeyValues() {sDescription = "本地同城配送", sValue = "无", sKey = "benditongcheng"},
|
||||
new CommonKeyValues() {sDescription = "本地上门自提", sValue = "无", sKey = "shangmenziti"},
|
||||
};
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user