Files
FastGPT/src/types/user.d.ts
2023-05-08 09:49:11 +08:00

28 lines
459 B
TypeScript

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