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

177 lines
4.7 KiB
C#

namespace Myshipping.Core;
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";
#region 公共数据库
/// <summary>
/// 船公司
/// </summary>
public const string CACHE_KEY_COMMON_DB_CARRIER = "CommonDbCarrier";
/// <summary>
/// 船名
/// </summary>
public const string CACHE_KEY_COMMON_DB_VESSEL = "CommonDbVessel";
/// <summary>
/// 船代
/// </summary>
public const string CACHE_KEY_COMMON_DB_FORWARDER = "CommonDbForwarder";
/// <summary>
/// 场站
/// </summary>
public const string CACHE_KEY_COMMON_DB_YARD = "CommonDbYard";
/// <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>
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";
/// <summary>
/// 场站映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_YARD = "CommonDbMappingYard";
/// <summary>
/// 起始港映射
/// </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>
/// 运输条款
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_SERVICE = "CommonDbMappingService";
/// <summary>
/// 签单方式
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_CODEISSUETYPE = "CommonDbCodeIssueType";
/// <summary>
/// 字典映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_DICT_DATA = "DictDataList";
/// <summary>
/// EDI映射
/// </summary>
public const string CACHE_KEY_DJY_EDI_SETTING = "DjyEdiSetting";
/// <summary>
/// 系统配置
/// </summary>
public const string DJY_CONST = "DJY_CONST";
#endregion
public const string API_USER_HEADER_KEY = "USER_KEY";
public const string API_USER_HEADER_SECRET = "USER_SECRET";
#endregion
/// <summary>
/// 程序集
/// </summary>
public static string[] ENTITY_ASSEMBLY_NAME = new string[] { "Myshipping.Core", "Myshipping.Application", "Myshipping.FlowCenter" };
/// <summary>
/// 删除字段
/// </summary>
public const string DELETE_FIELD = "IsDeleted";
#region 数据库编号
public const string MasterDb = "0";
#endregion
}