You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Const/CommonConst.cs

286 lines
7.6 KiB
C#

namespace Myshipping.Core;
2 years ago
public class CommonConst
{
#region 缓存
/// <summary>
/// 用户缓存
/// </summary>
public const string CACHE_KEY_USER = "user_";
/// <summary>
/// 菜单缓存
/// </summary>
public const string CACHE_KEY_MENU = "menu_";
/// <summary>
/// 权限缓存
/// </summary>
public const string CACHE_KEY_PERMISSION = "permission_";
/// <summary>
/// 数据范围缓存
/// </summary>
public const string CACHE_KEY_DATASCOPE = "datascope_";
public const string CACHE_KEY_USERSDATASCOPE = "usersdatascope_";
/// <summary>
/// 验证码缓存
/// </summary>
public const string CACHE_KEY_CODE = "vercode_";
/// <summary>
/// 库表实体信息缓存
/// </summary>
public const string CACHE_KEY_ENTITYINFO = "tableentity";
/// <summary>
/// 所有权限缓存
/// </summary>
public const string CACHE_KEY_ALLPERMISSION = "allpermission";
2 years ago
2 years ago
/// <summary>
/// 新 用户数据权限缓存
/// </summary>
public const string CACHE_KEY_USERDATASCOPE = "userdatascope";
1 year ago
/// <summary>
/// 新 用户数据权限缓存(自定义)
/// </summary>
public const string CACHE_KEY_USERDATASCOPEZDY = "userdatascopezdy";
2 years ago
1 year ago
/// <summary>
/// SysEmp
/// </summary>
public const string CACHE_KEY_SysEmp = "SysEmp";
/// <summary>
/// SysOrg
/// </summary>
public const string CACHE_KEY_SysOrg = "SysOrg";
2 years ago
2 years ago
#region 公共数据库
2 years ago
/// <summary>
/// 船公司
/// </summary>
2 years ago
public const string CACHE_KEY_COMMON_DB_CARRIER = "CommonDbCarrier";
2 years ago
/// <summary>
/// 船名
/// </summary>
2 years ago
public const string CACHE_KEY_COMMON_DB_VESSEL = "CommonDbVessel";
2 years ago
/// <summary>
/// 船代
/// </summary>
2 years ago
public const string CACHE_KEY_COMMON_DB_FORWARDER = "CommonDbForwarder";
2 years ago
/// <summary>
/// 场站
/// </summary>
2 years ago
public const string CACHE_KEY_COMMON_DB_YARD = "CommonDbYard";
2 years ago
/// <summary>
/// 起始港
/// </summary>
public const string CACHE_KEY_COMMON_DB_PORTLOAD = "CommonDbPortload";
/// <summary>
/// 目的港
/// </summary>
public const string CACHE_KEY_COMMON_DB_PORT = "CommonDbPort";
/// <summary>
/// 包装
/// </summary>
public const string CACHE_KEY_COMMON_DB_PACKAGE = "CommonDbPackage";
/// <summary>
/// 运输方式
/// </summary>
public const string CACHE_KEY_COMMON_DB_SERVICE = "CommonDbService";
/// <summary>
/// 箱型
/// </summary>
public const string CACHE_KEY_COMMON_DB_CTN = "CommonDbCtn";
/// <summary>
/// 付费方式
/// </summary>
public const string CACHE_KEY_COMMON_DB_FRT = "CommonDbFrt";
/// <summary>
/// 航线
/// </summary>
11 months ago
public const string CACHE_KEY_COMMON_DB_LANE = "CommonDbLane";
/// <summary>
/// 航线与港口的的关系
/// </summary>
public const string CACHE_KEY_COMMON_DB_LANE_PORT = "CommonDbLanePort";
/// <summary>
/// 国家
/// </summary>
public const string CACHE_KEY_COMMON_DB_COUNTRY = "CommonDbCountry";
/// <summary>
/// 箱型映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_CTN = "CommonDbMappingCtn";
/// <summary>
/// 箱型映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_CARRIER = "CommonDbMappingCarrier";
/// <summary>
/// 付费方式映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_FRT = "CommonDbMappingFrt";
/// <summary>
/// 租户参数
/// </summary>
public const string CACHE_KEY_COMMON_DB_TENANT_PARAM_VALUE = "TenantParamValue";
/// <summary>
/// 船名映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_VESSEL = "CommonDbMappingVessel";
2 years ago
/// <summary>
/// 场站映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_YARD = "CommonDbMappingYard";
2 years ago
/// <summary>
2 years ago
/// 船代映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_FORWARDER = "CommonDbMappingForwarder";
/// <summary>
2 years ago
/// 起始港映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_PORTLOAD = "CommonDbMappingPortLoad";
/// <summary>
/// 目的港映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_PORT = "CommonDbMappingPort";
/// <summary>
/// 包装映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_PACKAGE = "CommonDbMappingPackage";
/// <summary>
2 years ago
/// 运输条款
2 years ago
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_SERVICE = "CommonDbMappingService";
2 years ago
/// <summary>
/// 签单方式
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_CODEISSUETYPE = "CommonDbCodeIssueType";
2 years ago
/// <summary>
2 years ago
/// 签单方式映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_ISSUETYPE = "CommonDbMappingIssueType";
/// <summary>
2 years ago
/// 字典映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_DICT_DATA = "DictDataList";
2 years ago
/// <summary>
2 years ago
/// EDI映射
2 years ago
/// </summary>
public const string CACHE_KEY_DJY_EDI_SETTING = "DjyEdiSetting";
2 years ago
/// <summary>
/// 系统配置
/// </summary>
public const string DJY_CONST = "DJY_CONST";
1 year ago
/// <summary>
/// 城市信息
/// </summary>
11 months ago
public const string CACHE_KEY_COMMON_DB_CITY = "CommonDbCodeCity";
1 year ago
/// <summary>
/// 省份信息
/// </summary>
public const string CACHE_KEY_COMMON_DB_PROVINCE = "CommonDbCodeProvince";
/// <summary>
/// 起运港与船代的关系
/// </summary>
public const string CACHE_KEY_COMMON_DB_RELA_PORTLOAD_FORWARDER = "CommonDbRelaPortLoadForwarder";
2 years ago
#endregion
public const string API_USER_HEADER_KEY = "USER_KEY";
public const string API_USER_HEADER_SECRET = "USER_SECRET";
2 years ago
#endregion
/// <summary>
/// 程序集
/// </summary>
public static string[] ENTITY_ASSEMBLY_NAME = new string[] { "Myshipping.Core", "Myshipping.Application", "Myshipping.FlowCenter" };
2 years ago
/// <summary>
/// 删除字段
/// </summary>
public const string DELETE_FIELD = "IsDeleted";
#region 数据库编号
public const string MasterDb = "0";
11 months ago
#endregion
#region 角色Code
/// <summary>
/// 机密费用检阅角色Code
11 months ago
/// </summary>
public const string ROLE_SECRET_FEE_REVIEW = "SecretFeeReview";
/// <summary>
/// 普通员工角色Code
/// </summary>
public const string ROLE_COMMON_EMPLOYEE = "CommonEmployee";
11 months ago
#endregion
#region 费用
/// <summary>
/// 费用编码缓存键
/// </summary>
public const string CACHE_KEY_FEE_CODE = "FeeCodeList";
/// <summary>
/// 币别缓存键
/// </summary>
public const string CACHE_KEY_FEE_CURRENCY = "FeeCurrencyList";
#endregion
7 months ago
#region 标签
/// <summary>
/// 标签缓存键
/// </summary>
public const string CACHE_KEY_BOOKING_LABEL = "BookingLabelList";
#endregion
#region 系统运行方式
/// <summary>
/// 和川(会执行一些和川特有的逻辑)
/// </summary>
public const string RUN_TYPE_HECHUAN = "HeChuan";
/// <summary>
/// 标准模式(自用)
/// </summary>
public const string RUN_TYPE_NORMAL = "Normal";
/// <summary>
/// 客户订舱系统-客户端
/// </summary>
public const string RUN_TYPE_CUST = "CUST";
/// <summary>
/// 客户订舱系统-大简云运营端
/// </summary>
public const string RUN_TYPE_DJY = "DJY";
#endregion
2 years ago
}