perf: 账号api结构

This commit is contained in:
archer
2023-04-07 20:58:41 +08:00
parent d5923bc64f
commit 9b18a46456
6 changed files with 35 additions and 116 deletions

10
src/types/user.d.ts vendored
View File

@@ -6,19 +6,13 @@ export enum UserNumberEnum {
export interface UserType {
_id: string;
email: string;
accounts: {
type: string;
value: string;
}[];
openaiKey: string;
balance: number;
}
export interface UserUpdateParams {
balance?: number;
accounts?: {
type: string;
value: string;
}[];
openaiKey: string;
}
export interface UserBillType {