28 lines
459 B
TypeScript
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;
|
|
}
|