feat: inform

This commit is contained in:
archer
2023-06-06 22:07:55 +08:00
parent 941549ff04
commit 55d0ed9de6
22 changed files with 561 additions and 102 deletions

View File

@@ -7,7 +7,7 @@ import {
EmbeddingModelType
} from '@/constants/model';
import type { DataType } from './data';
import { BillTypeEnum } from '@/constants/user';
import { BillTypeEnum, InformTypeEnum } from '@/constants/user';
import { TrainingModeEnum } from '@/constants/plugin';
export interface UserModelSchema {
@@ -155,3 +155,13 @@ export interface kbSchema {
name: string;
tags: string[];
}
export interface informSchema {
_id: string;
userId: string;
time: Date;
type: `${InformTypeEnum}`;
title: string;
content: string;
read: boolean;
}