优化后端目录命名与模块归位

This commit is contained in:
yml2213
2026-05-26 08:57:19 +08:00
parent 7aef1a6d50
commit 36dfc46884
34 changed files with 53 additions and 54 deletions
@@ -1,6 +1,6 @@
import { createHttpError } from '../../../utils/http.js'
import { cloudtentaclesRequest } from './http-client.js'
import { resolveCloudtentaclesConfig } from './shared.js'
import { resolveCloudtentaclesConfig } from './helpers.js'
type JsonObject = Record<string, any>
@@ -1,7 +1,7 @@
import { createHash, constants, publicEncrypt } from 'node:crypto'
import { createHttpError } from '../../../utils/http.js'
import { resolveCloudtentaclesConfig } from './shared.js'
import { resolveCloudtentaclesConfig } from './helpers.js'
type JsonObject = Record<string, any>
@@ -4,7 +4,7 @@ import https from 'node:https'
import { createHttpError } from '../../../utils/http.js'
import { logInfo } from '../../../utils/logger.js'
import { notifyCloudtentaclesAuthExpired } from '../../notification/domain-notifications.js'
import { buildCloudtentaclesHeaders, buildCloudtentaclesUrl, resolveCloudtentaclesConfig } from './shared.js'
import { buildCloudtentaclesHeaders, buildCloudtentaclesUrl, resolveCloudtentaclesConfig } from './helpers.js'
type JsonObject = Record<string, any>
type HeaderAdapter = {
@@ -1,6 +1,6 @@
import { createHttpError } from '../../../utils/http.js'
import { cloudtentaclesRequest } from './http-client.js'
import { resolveCloudtentaclesConfig } from './shared.js'
import { resolveCloudtentaclesConfig } from './helpers.js'
type JsonObject = Record<string, any>
@@ -2,7 +2,7 @@ import { createHttpError } from '../../../utils/http.js'
import { logInfo } from '../../../utils/logger.js'
import { encryptCloudtentaclesPayload, md5CloudtentaclesPassword } from './crypto-service.js'
import { cloudtentaclesRequest } from './http-client.js'
import { resolveCloudtentaclesConfig } from './shared.js'
import { resolveCloudtentaclesConfig } from './helpers.js'
type JsonObject = Record<string, any>
@@ -3,7 +3,7 @@ import https from 'node:https'
import { createHttpError } from '../../../utils/http.js'
import { cloudtentaclesRequest } from './http-client.js'
import { resolveCloudtentaclesConfig } from './shared.js'
import { resolveCloudtentaclesConfig } from './helpers.js'
const BIND_URL_PROBE_MAX_BODY_BYTES = 64 * 1024
const AMS_SIGNATURE_EXPIRED_CODE = '99998'
@@ -1,6 +1,6 @@
import { createHttpError } from '../../../utils/http.js'
import { kuaishouEticketRequest } from './http-client.js'
import { resolveKuaishouEticketConfig } from './shared.js'
import { resolveKuaishouEticketConfig } from './helpers.js'
type JsonObject = Record<string, any>
@@ -5,7 +5,7 @@ import type { IncomingHttpHeaders } from 'node:http'
import { parseJsonObject } from '../../../utils/json.js'
import { createHttpError } from '../../../utils/http.js'
import { logInfo } from '../../../utils/logger.js'
import { buildKuaishouEticketHeaders, buildKuaishouEticketUrl, resolveKuaishouEticketConfig } from './shared.js'
import { buildKuaishouEticketHeaders, buildKuaishouEticketUrl, resolveKuaishouEticketConfig } from './helpers.js'
type JsonObject = Record<string, any>
@@ -1,6 +1,6 @@
import { createHttpError } from '../../../utils/http.js'
import { kuaishouEticketRequest } from './http-client.js'
import { resolveKuaishouEticketConfig } from './shared.js'
import { resolveKuaishouEticketConfig } from './helpers.js'
type JsonObject = Record<string, any>