feat: 账单模块
This commit is contained in:
10
src/types/index.d.ts
vendored
10
src/types/index.d.ts
vendored
@@ -3,4 +3,12 @@ import type { Mongoose } from 'mongoose';
|
||||
declare global {
|
||||
var mongodb: Mongoose | string | null;
|
||||
}
|
||||
export {};
|
||||
|
||||
export type PagingData<T> = {
|
||||
pageNum;
|
||||
pageSize;
|
||||
data: T[];
|
||||
total;
|
||||
};
|
||||
|
||||
export type RequestPaging = { pageNum: number; pageSize: number };
|
||||
|
||||
9
src/types/mongoSchema.d.ts
vendored
9
src/types/mongoSchema.d.ts
vendored
@@ -75,3 +75,12 @@ export interface ChatPopulate extends ChatSchema {
|
||||
userId: UserModelSchema;
|
||||
modelId: ModelSchema;
|
||||
}
|
||||
|
||||
export interface BillSchema {
|
||||
_id: string;
|
||||
userId: string;
|
||||
chatId: string;
|
||||
time: number;
|
||||
textLen: number;
|
||||
price: number;
|
||||
}
|
||||
|
||||
9
src/types/user.d.ts
vendored
9
src/types/user.d.ts
vendored
@@ -19,3 +19,12 @@ export interface UserUpdateParams {
|
||||
value: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface UserBillType {
|
||||
id: string;
|
||||
time: string;
|
||||
textLen: number;
|
||||
userId: string;
|
||||
chatId: string;
|
||||
price: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user