feat: 好友邀请

This commit is contained in:
archer
2023-04-21 22:23:19 +08:00
parent 4f51839026
commit 4397a0ad6b
22 changed files with 471 additions and 17 deletions

View File

@@ -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;
}