feat: 好友邀请
This commit is contained in:
12
src/types/mongoSchema.d.ts
vendored
12
src/types/mongoSchema.d.ts
vendored
@@ -18,6 +18,9 @@ export interface UserModelSchema {
|
||||
promotionAmount: number;
|
||||
openaiKey: string;
|
||||
createTime: number;
|
||||
promotion: {
|
||||
rate: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface AuthCodeSchema {
|
||||
@@ -162,3 +165,12 @@ export interface OpenApiSchema {
|
||||
lastUsedTime?: Date;
|
||||
apiKey: String;
|
||||
}
|
||||
|
||||
export interface PromotionRecordSchema {
|
||||
_id: string;
|
||||
userId: string; // 收益人
|
||||
objUId?: string; // 目标对象(如果是withdraw则为空)
|
||||
type: 'invite' | 'shareModel' | 'withdraw';
|
||||
createTime: Date; // 记录时间
|
||||
amount: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user