✨ feat(gvg): 添加队伍快照
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
import BaseModel from "./BaseModel";
|
||||
import { index, getModelForClass, prop, DocumentType } from '@typegoose/typegoose';
|
||||
import { genCode } from "../pubUtils/util";
|
||||
import { LineupHero } from './../domain/roleField/hero';
|
||||
import { GVGTeamType } from "./GVGTeam";
|
||||
import { GVGHeroInfo } from "../domain/dbGeneral";
|
||||
|
||||
class TeamInfo {
|
||||
@prop({ required: true })
|
||||
@@ -42,8 +42,8 @@ class TeamInfo {
|
||||
@prop({ required: true, default: 0 })
|
||||
durability: number; // 耐久
|
||||
|
||||
@prop({ required: true, type: () => LineupHero, _id: false })
|
||||
lineup: LineupHero[]
|
||||
@prop({ required: true, type: () => GVGHeroInfo, _id: false })
|
||||
lineup: GVGHeroInfo[]
|
||||
}
|
||||
|
||||
@index({ battleCode: 1 })
|
||||
|
||||
Reference in New Issue
Block a user