namespace Znyc.CloudCar.Configuration
{
///
/// 全局常量
///
public static class GlobalConstVars
{
///
/// 数据删除成功
///
public const string DeleteSuccess = "数据删除成功";
///
/// 数据删除失败
///
public const string DeleteFailure = "数据删除失败";
///
/// 系统禁止删除此数据
///
public const string DeleteProhibitDelete = "系统禁止删除此数据";
///
/// 此数据含有子类信息,禁止删除
///
public const string DeleteIsHaveChildren = "此数据含有子类信息,禁止删除";
///
/// 数据处理异常
///
public const string DataHandleEx = "数据接口出现异常";
///
/// 数据添加成功
///
public const string CreateSuccess = "数据添加成功";
///
/// 数据添加失败
///
public const string CreateFailure = "数据添加失败";
///
/// 数据移动成功
///
public const string MoveSuccess = "数据移动成功";
///
/// 数据移动失败
///
public const string MoveFailure = "数据移动失败";
///
/// 系统禁止添加数据
///
public const string CreateProhibitCreate = "系统禁止添加数据";
///
/// 数据编辑成功
///
public const string EditSuccess = "数据编辑成功";
///
/// 数据编辑失败
///
public const string EditFailure = "数据编辑失败";
///
/// 系统禁止编辑此数据
///
public const string EditProhibitEdit = "系统禁止编辑此数据";
///
/// 数据已存在
///
public const string DataIsHave = "数据已存在";
///
/// 数据不存在
///
public const string DataisNo = "数据不存在";
///
/// 请提交必要的参数
///
public const string DataParameterError = "请提交必要的参数";
///
/// 数据插入成功
///
public const string InsertSuccess = "数据插入成功!";
///
/// 数据插入失败
///
public const string InsertFailure = "数据插入失败!";
///
/// Excel导出失败
///
public const string ExcelExportFailure = "Excel导出失败";
///
/// Excel导出成功
///
public const string ExcelExportSuccess = "Excel导出成功";
///
/// 获取数据成功
///
public const string GetDataSuccess = "获取数据成功!";
///
/// 获取数据异常
///
public const string GetDataException = "获取数据异常!";
///
/// 获取数据失败
///
public const string GetDataFailure = "获取数据失败!";
///
/// 设置数据成功
///
public const string SetDataSuccess = "设置数据成功!";
///
/// 设置数据异常
///
public const string SetDataException = "设置数据异常!";
///
/// 设置数据失败
///
public const string SetDataFailure = "设置数据失败!";
///
/// Tools工具常量
///
public static class ToolsVars
{
///
///
///
public const string IllegalWordsCahceName = "IllegalWordsCahce";
}
///
/// 权限变量配置
///
public static class Permissions
{
public const string Name = "Permission";
///
/// 当前项目是否启用IDS4权限方案
/// true:表示启动IDS4
/// false:表示使用JWT
public static bool IsUseIds4 = false;
}
///
/// 路由变量前缀配置
///
public static class RoutePrefix
{
///
/// 前缀名
/// 如果不需要,尽量留空,不要修改
/// 除非一定要在所有的 api 前统一加上特定前缀
///
public const string Name = "";
}
///
/// 银行卡相关常量定义
///
public static class BankConst
{
public const string BankLogoUrl = "https://apimg.alipay.com/combo.png?d=cashier&t=";
}
///
/// RedisMqKey队列
///
public static class RedisMessageQueueKey
{
///
/// 微信支付成功后推送到接口进行数据处理
///
public const string WeChatPayNotice = "WeChatPayNoticeQueue";
///
/// 微信模板消息
///
public const string SendWxTemplateMessage = "SendWxTemplateMessage";
///
/// 订单完结后走代理或分销商提成处理
///
public const string OrderAgentOrDistribution = "OrderAgentOrDistributionQueue";
///
/// 订单完成时,结算该订单
///
public const string OrderFinishCommand = "OrderFinishCommandQueue";
///
/// 订单完成时,门店订单自动发货
///
public const string OrderAutomaticDelivery = "OrderAutomaticDeliveryQueue";
///
/// 订单完结后走打印模块
///
public const string OrderPrint = "OrderPrintQueue";
///
/// 售后审核通过后处理
///
public const string AfterSalesReview = "AfterSalesReview";
///
/// 日志队列
///
public const string LogingQueue = "LogingQueue";
///
/// 短信发送队列
///
public const string SmsQueue = "SmsQueue";
//用户相关
//订单支付成功后,用户升级处理
public const string UserUpGrade = "UserUpGradeQueue";
}
#region JWT
public class JWTClaim
{
///
/// 用户Id
///
public const string JwtUserId = "id";
///
/// 姓名
///
public const string JwtUserName = "nn";
///
/// 刷新有效期
///
public const string JwtRefreshExpires = "re";
///
/// 微信认证Id
///
public const string JwtOpenId = "oid";
///
/// 权限id
///
public const string JwtRoleId = "rid";
///
/// 开放平台Id(区分用户唯一性)
///
public const string JwtUnionId = "uid";
///
/// 头像url
///
public const string JwtAvatarUrl = "avatarurl";
///
/// SessionKey
///
public const string JwtSessionKey = "sessionKey";
}
#endregion
#region User
public class User
{
///
/// 默认头像名称
///
public const string DefaultAvataUrl = "Default_AvatarUrl.png";
///
/// 默认图片地址
///
public const string DefaultImagePrefix = "https://zhongnengyunche.com/cloudcar/wx/upload/avatar/";
///
/// 默认头像地址
///
public const string Default_AvataUrl_Address = "https://zhongnengyunche.com/cloudcar/wx/upload/avatar/Default_AvatarUrl.png";
///
/// 默认名称
///
public const string Default_UserName = "先生";
}
#endregion
#region 云币
public class Currency
{
///
/// 默认
///
public const int Default = 0;
///
/// 首次登陆
///
public const int FirstLogin = 10;
///
/// 邀新用户
///
public const int NewUsers = 10;
///
/// 每日分享
///
public const int DailyShare = 0;
///
/// 实名认证
///
public const int RealName = 0;
///
/// 每日签到
///
public const int Signin = 0;
///
/// 拔打电话
///
public const int CallPhone = 10;
///
/// 设备置顶
///
public const int TopEquipment = 100;
///
/// 刷新设备信息
///
public const int Refresh = 10;
///
/// 默认临时云币
///
public const int Default_TemporarylCredits = 0;
}
#endregion
#region CurrencyOperatingType
public class CurrencyOperatingType
{
public const string Add = "+";
public const string Reduce = "-";
}
#endregion
///
/// 默认Banner地址
///
public const string Default_Banner_Prefix =
"https://zhongnengyunche.com/cloudcar/wx/upload/banner/";
}
}