This commit is contained in:
2025-05-03 21:12:58 +08:00
parent c2a0623482
commit d6014b3c40
19 changed files with 115 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
import { XhsClient } from '@/libs/xhs.ts';
import { XhsClient } from '@kevisual/xhs/libs/xhs.ts';
import { Sequelize } from 'sequelize';
import { createSequelize } from '@/services/xhs-db/db.ts';
import { createSequelize } from '@kevisual/xhs/services/xhs-db/db.ts';
import path from 'node:path';
import fs from 'node:fs';
@@ -22,6 +22,10 @@ type XhsClientMap = {
type XhsServicesOptions = {
root?: string;
};
/**
* @description XhsServices is a singleton class that manages the XhsClient instances.
* It is used to create and manage the XhsClient instances.
*/
export class XhsServices {
map: Map<string, XhsClientMap> = new Map();
root: string = 'root';