mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: fix overwritten new response model
This commit is contained in:
1 parent
ebd713200c
commit
75f5407dde
2 files changed
+19
-5
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import { FileGraph } from '@linux-odyssey/file-graph'
|
||||
// eslint-disable-next-line import/no-relative-packages
|
||||
import { IResponse } from '../../packages/models/src/response'
|
||||
|
||||
export interface Task {
|
||||
id: number
|
||||
@@ -6,6 +8,13 @@ export interface Task {
|
||||
completed: boolean
|
||||
}
|
||||
|
||||
export interface StageResponse {
|
||||
status: string
|
||||
hints: string[]
|
||||
tasks: Task[]
|
||||
responses: IResponse[]
|
||||
}
|
||||
|
||||
export interface Session {
|
||||
_id: string
|
||||
status: string
|
||||
@@ -13,4 +22,5 @@ export interface Session {
|
||||
pwd: string
|
||||
hints: string[]
|
||||
tasks: Task[]
|
||||
responses: IResponse[]
|
||||
}
|
||||
Reference in new issue
Block a user