You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
359 lines
11 KiB
359 lines
11 KiB
2 years ago
|
|
||
|
namespace Znyc.CloudCar.Configuration
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 全局常量
|
||
|
/// </summary>
|
||
|
public static 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>
|
||
|
/// 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";
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
#region JWT
|
||
|
public class JWTClaim
|
||
|
{
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 用户Id
|
||
|
/// </summary>
|
||
|
public const string JwtUserId = "id";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 姓名
|
||
|
/// </summary>
|
||
|
public const string JwtUserName = "nn";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 刷新有效期
|
||
|
/// </summary>
|
||
|
public const string JwtRefreshExpires = "re";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 微信认证Id
|
||
|
/// </summary>
|
||
|
public const string JwtOpenId = "oid";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 权限id
|
||
|
/// </summary>
|
||
|
public const string JwtRoleId = "rid";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 开放平台Id(区分用户唯一性)
|
||
|
/// </summary>
|
||
|
public const string JwtUnionId = "uid";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 头像url
|
||
|
/// </summary>
|
||
|
public const string JwtAvatarUrl = "avatarurl";
|
||
|
|
||
|
/// <summary>
|
||
|
/// SessionKey
|
||
|
/// </summary>
|
||
|
public const string JwtSessionKey = "sessionKey";
|
||
|
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
#region User
|
||
|
|
||
|
public class User
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 默认头像名称
|
||
|
/// </summary>
|
||
|
public const string DefaultAvataUrl = "Default_AvatarUrl.png";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 默认图片地址
|
||
|
/// </summary>
|
||
|
public const string DefaultImagePrefix = "https://zhongnengyunche.com/cloudcar/wx/upload/avatar/";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 默认头像地址
|
||
|
/// </summary>
|
||
|
public const string Default_AvataUrl_Address = "https://zhongnengyunche.com/cloudcar/wx/upload/avatar/Default_AvatarUrl.png";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 默认名称
|
||
|
/// </summary>
|
||
|
public const string Default_UserName = "先生";
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
#region 云币
|
||
|
public class Currency
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 默认
|
||
|
/// </summary>
|
||
|
public const int Default = 0;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 首次登陆
|
||
|
/// </summary>
|
||
|
public const int FirstLogin = 10;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 邀新用户
|
||
|
/// </summary>
|
||
|
public const int NewUsers = 10;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 每日分享
|
||
|
/// </summary>
|
||
|
public const int DailyShare = 0;
|
||
|
/// <summary>
|
||
|
/// 实名认证
|
||
|
/// </summary>
|
||
|
public const int RealName = 0;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 每日签到
|
||
|
/// </summary>
|
||
|
public const int Signin = 0;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 拔打电话
|
||
|
/// </summary>
|
||
|
public const int CallPhone = 10;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 设备置顶
|
||
|
/// </summary>
|
||
|
public const int TopEquipment = 100;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 刷新设备信息
|
||
|
/// </summary>
|
||
|
public const int Refresh = 10;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 默认临时云币
|
||
|
/// </summary>
|
||
|
public const int Default_TemporarylCredits = 0;
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
#region CurrencyOperatingType
|
||
|
public class CurrencyOperatingType
|
||
|
{
|
||
|
public const string Add = "+";
|
||
|
|
||
|
public const string Reduce = "-";
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
/// <summary>
|
||
|
/// 默认Banner地址
|
||
|
/// </summary>
|
||
|
public const string Default_Banner_Prefix =
|
||
|
"https://zhongnengyunche.com/cloudcar/wx/upload/banner/";
|
||
|
}
|
||
|
}
|