forked from OtterMind/Chat2DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathai.ts
More file actions
16 lines (11 loc) · 658 Bytes
/
Copy pathai.ts
File metadata and controls
16 lines (11 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import createRequest from './base';
import { IInviteQrCode, ILoginAndQrCode, IRemainingUse } from '@/typings/ai';
const getRemainingUse = createRequest<void, IRemainingUse>('/api/ai/config/remaininguses', {
errorLevel: false,
});
const getLoginQrCode = createRequest<{ token?: string }, ILoginAndQrCode>('/api/ai/config/getLoginQrCode');
const getLoginStatus = createRequest<{ token?: string }, ILoginAndQrCode>('/api/ai/config/getLoginStatus', {
errorLevel: false,
});
const getInviteQrCode = createRequest<void, IInviteQrCode>('/api/ai/config/getInviteQrCode');
export default { getRemainingUse, getLoginQrCode, getLoginStatus, getInviteQrCode };