2025-07-10 23:30:33 +08:00
|
|
|
export class Constant {
|
2026-05-31 01:41:33 +08:00
|
|
|
private constructor() {}
|
2025-07-10 23:30:33 +08:00
|
|
|
|
2026-05-31 01:41:33 +08:00
|
|
|
public static readonly HTTP_REQUEST_PREFIX: string = "https://open.chinanetcenter.com";
|
|
|
|
|
public static readonly HTTPS_REQUEST_PREFIX: string = "https://";
|
|
|
|
|
public static readonly HTTP_DOMAIN: string = "open.chinanetcenter.com";
|
2025-07-10 23:30:33 +08:00
|
|
|
|
2026-05-31 01:41:33 +08:00
|
|
|
public static readonly APPLICATION_JSON: string = "application/json";
|
2025-07-10 23:30:33 +08:00
|
|
|
|
2026-05-31 01:41:33 +08:00
|
|
|
public static readonly HEAD_SIGN_ACCESS_KEY: string = "x-cnc-accessKey";
|
|
|
|
|
public static readonly HEAD_SIGN_TIMESTAMP: string = "x-cnc-timestamp";
|
|
|
|
|
public static readonly HEAD_SIGN_ALGORITHM: string = "CNC-HMAC-SHA256";
|
2025-07-10 23:30:33 +08:00
|
|
|
|
2026-05-31 01:41:33 +08:00
|
|
|
public static readonly X_CNC_AUTH_METHOD: string = "x-cnc-auth-method";
|
2025-07-10 23:30:33 +08:00
|
|
|
|
2026-05-31 01:41:33 +08:00
|
|
|
public static readonly AUTH_METHOD: string = "AKSK";
|
2025-07-10 23:30:33 +08:00
|
|
|
|
2026-05-31 01:41:33 +08:00
|
|
|
public static readonly END_POINT: string = "{endPoint}";
|
2025-07-10 23:30:33 +08:00
|
|
|
}
|