Files
FastGPT/src/types/user.d.ts
2023-04-16 19:53:50 +08:00

23 lines
383 B
TypeScript

export interface UserType {
_id: string;
username: string;
openaiKey: string;
balance: number;
}
export interface UserUpdateParams {
balance?: number;
openaiKey: string;
}
export interface UserBillType {
id: string;
time: string;
type: 'chat' | 'splitData' | 'return';
textLen: number;
tokenLen: number;
userId: string;
chatId: string;
price: number;
}