generated from tailored/router-db-template
add db module
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user