fix: 抽取概要

This commit is contained in:
archer
2023-03-26 22:43:39 +08:00
parent 3e4487ad9a
commit 249ed18d15
3 changed files with 33 additions and 36 deletions

View File

@@ -1,6 +1,7 @@
import { Schema, model, models, Model } from 'mongoose';
import { modelList } from '@/constants/model';
import { BillSchema as BillType } from '@/types/mongoSchema';
import { BillTypeMap } from '@/constants/user';
const BillSchema = new Schema({
userId: {
@@ -10,7 +11,7 @@ const BillSchema = new Schema({
},
type: {
type: String,
enum: ['chat', 'splitData', 'return'],
enum: Object.keys(BillTypeMap),
required: true
},
modelName: {