add db module

This commit is contained in:
2025-05-03 04:48:12 +08:00
parent ee483aa87e
commit c2a0623482
32 changed files with 28860 additions and 109 deletions

View File

@@ -1,14 +1,16 @@
import { client, program } from '../common.ts';
import { xhsServices, program } from '../common.ts';
program
.command('get-userinfo')
.description('获取用户信息')
.action(async () => {
const client = xhsServices.getClient();
const res = await client.getSelfInfoV2();
console.log(res);
});
const getUserById = async (userId: string) => {
const client = xhsServices.getClient();
const res = await client.getUserInfoFromHtml(userId);
console.log(res);
};