namespace CommonUtil.Top
{
///
/// 公共常量
///
public sealed class TopConstants
{
///
/// 项目api
///
public const string PROJECT_NAME_API = "JdCop.Api";
///
/// 项目api命名空间
///
public const string PROJECT_NAME_API_NAMESPACE = "JdCop.Api.Controllers";
///
/// 开放api命名空间
///
public const string PROJECT_NAME_OPEN_API_NAMESPACE = "JdCop.OpenApi.Controllers";
///
/// 项目开放api
///
public const string PROJECT_NAME_OPEN_API = "JdCop.OpenApi";
///
/// 项目接口
///
public const string PROJECT_NAME_ISERVICE = "JdCop.IService";
///
/// 项目接口实现
///
public const string PROJECT_NAME_SERVICE = "JdCop.Service";
///
/// 项目基类服务
///
public const string PROJECT_IBASERVICE = "IBaseService";
///
/// 项目公共
///
public const string PROJECT_NAME_COMMON = "CommonUtil";
///
/// 项目扩展
///
public const string PROJECT_NAME_EXTENSION = "JdCop.Extension";
///
/// 项目业务模型
///
public const string PROJECT_NAME_BIZMODEL = "JdCop.BizModel";
///
/// 项目db模型
///
public const string PROJECT_NAME_DBMODEL = "JdCop.DbModel";
///
/// 项目dto
///
public const string PROJECT_NAME_DTOMODEL = "JdCop.DTOModel";
///
/// 项目日志配置
///
public const string PROJECT_LOG_CONFIG = "Logging";
///
/// 精确日期个刷
///
public const string DATE_FORMAT = "yyyy/MM/dd";
///
/// 精确秒格式化
///
public const string DATE_TIME_FORMAT = "yyyy/MM/dd HH:mm:ss";
///
/// 精确毫秒格式化
///
public const string DATE_TIME_MS_FORMAT = "yyyy/MM/dd HH:mm:ss.fff";
///
/// xml文件类型
///
public const string XML_FILE_TYPE = ".xml";
///
/// utf8编码
///
public const string CHARSET_UTF8 = "utf-8";
///
/// json请求报文
///
public const string CONTENT_TYPE_APPLICATION_JSON = "application/json";
///
/// form请求报文
///
public const string CONTENT_TYPE_FORM = "application/x-www-form-urlencoded";
///
/// html输出报文
///
public const string CONTENT_TYPE_TEXT_HTML = "text/html";
///
/// api路由
///
public const string API_ROUTE = "api/[controller]/[action]";
///
/// 开放api路由
///
public const string OPEN_API_ROUTE = "api/[controller]/[action]";
///
/// 微服务api路由
///
public const string Service_API_ROUTE = "[controller]/[action]";
///
/// GET请求
///
public const string HTTP_GET = "GET";
///
/// POST请求
///
public const string HTTP_POST = "POST";
///
/// 输出报文-ok
///
public const string TOP_RESULT_OK = "ok";
///
/// 输出报文-登录失效
///
public const string TOP_RESULT_UNAUTHORIZED = "登录失效";
///
/// 输出报文-没有权限
///
public const string TOP_RESULT_FORBIDDEN = "没有权限";
///
/// 输出报文-普通错误
///
public const string TOP_RESULT_ERROR_GENERAL = "普通错误";
///
/// 输出报文-异常
///
public const string TOP_RESULT_ERROR_EXCEPTION = "系统出现问题,程序猿正在抢救..";
///
/// 输出报文-参数错误
///
public const string TOP_RESULT_ERROR_PARAMS = "参数错误";
///
/// 输出报文-时间戳错误
///
public const string TOP_RESULT_ERROR_TIMESTAMP = "时间戳错误";
///
/// 输出报文-签名错误
///
public const string TOP_RESULT_ERROR_SIGN = "签名错误";
///
/// 输出报文-令牌错误
///
public const string TOP_RESULT_ERROR_TOKEN = "令牌错误";
///
/// 输出报文-HTTP请求错误
///
public const string TOP_RESULT_ERROR_HTTP_METHOD_ERROR = "HTTP请求错误";
///
/// 输出报文-未定义返回类型
///
public const string TOP_RESULT_ERROR_UNDEFINED_RESPONSE_TYPE = "未定义返回类型";
///
/// 输出报文-未定义权限
///
public const string TOP_RESULT_ERROR_UNDEFINED_AUTHORITY = "未定义权限";
///
/// 输出报文-未继承基类返回
///
public const string TOP_RESULT_ERROR_BASE_TYPE = "未继承基类返回";
///
/// 输出报文-未使用统一命名空间
///
public const string TOP_RESULT_ERROR_NAMESPACE = "未使用统一命名空间";
///
/// Swagger名称
///
public const string SWAGGER_NAME = "v1";
///
/// 开放ApiSwagger名称
///
public const string SWAGGER_OPEN_NAME = "v1";
///
/// Swagger版本
///
public const string SWAGGER_VERSION = "v1";
///
/// 开放ApiSwagger版本
///
public const string SWAGGER_OPEN_VERSION = "v1";
///
/// Swagger标题
///
public const string SWAGGER_TITLE = "Api接口文档";
///
/// 开放ApiSwagger标题
///
public const string SWAGGER_OPEN_TITLE = "Api接口文档";
///
/// SwaggerJSON文件
///
public const string SWAGGER_JSON_URL = "/swagger/v1/swagger.json";
///
/// SwaggerJSON文件
///
public const string SWAGGER_OPEN_JSON_URL = "/swagger/v1/swagger.json";
///
/// 页码最小值
///
public const int PAGE_INDEX_MIN = 1;
///
/// 页码最大值
///
public const int PAGE_INDEX_MAX = 999999;
///
/// 整数最大值
///
public const int INT_MAX = 999999;
///
/// 页大小最小值
///
public const int PAGE_SIZE_MIN = 1;
///
/// 页大小最大值
///
public const int PAGE_SIZE_MAX = 100;
///
/// 批量操作最大值
///
public const int BATHCH_SIZE_MAX = 200;
///
/// 允许上传文件的白名单Key
///
public const string FILE_TYPE_CONFIG = "FileType";
///
/// 图片格式校验正则
///
public const string IMAGE_REGEX = "^(bmp)|(png)|(gif)|(jpg)|(jpeg)";
///
/// 文件格式校验正则
///
public const string FILE_REGEX = "^(doc)|(docx)|(xls)|(xlsx)";
///
/// 图片大小最大值,单位Bit
///
public const int IMAGE_SIZE_MAX = 10485760;
///
///
///
public const string JWT_ISSUSER = "JdCopApi";
///
///
///
public const string JWT_AUDIENCE = "SOP";
///
/// JWT密钥
///
public const string JWT_SECRET_KEY = "cf9e4bff-3d4c-4600-be94-9121363c39ae";
///
/// 京东服务端接口地址
///
public const string JD_SERVER_URL = "https://api.jd.com/routerjson";
///
/// 京东应用APPKey
///
public const string JD_APP_KEY = "51B59BB805903DA4CE513D29EC448375";
///
/// 京东应用密钥
///
public const string JD_APP_SECRET = "0282266f9a794112a0ab4ab6c78f8a09";
///
/// 首页是否显示公告,配置文件索引Key
///
public const string IS_SHOW_TIP = "IsShowTip";
///
/// 加密密钥
///
public const string ENCODE_KEY = "TYF4wPV8tWDWJh9n";
///
/// 加密偏移量
///
public const string ENCODE_IV = "PoNJuv9RFFqo6i53";
///
/// 请求日志埋点
///
public const string LOG_KEY = "operate";
///
/// 请求cookie-SellerId
///
public const string COOKIE_SELLERID = "sellerId";
}
}