Skip to content

Commit 804872b

Browse files
committed
fix: 修复启动报错,锁定ts版本
1 parent f47094b commit 804872b

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"traceur": "^0.0.111",
121121
"ts-node": "^1.4.3",
122122
"tslint": "^3.15.1",
123-
"typescript": "^2.0.3",
123+
"typescript": "2.0.3",
124124
"walk": "^2.3.9",
125125
"yargs": "^6.0.0",
126126
"minimatch": "^3.0.3"

frontend/src/client/app/shared/models/question.model.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
// 问题模型数据定义
2-
export interface QuestionModel{
2+
3+
// export interface QuestionModel{
4+
// title:string; //问题标题(描述)
5+
// type:QuestionType; //问题类型
6+
// options?:any[]; //答案选项
7+
// answer:any; //问题答案
8+
// }
9+
10+
export class QuestionModel {
311
title:string; //问题标题(描述)
412
type:QuestionType; //问题类型
513
options?:any[]; //答案选项
@@ -12,4 +20,4 @@ export const enum QuestionType{
1220
SingleSelect,
1321
MultiSelect,
1422
Score
15-
}
23+
}

frontend/src/client/app/shared/models/questionnaire.model.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
import { QuestionModel } from './question.model';
22

3+
// //问卷数据模型定义
4+
// export interface QuestionnaireModel{
5+
// id?:string; //问卷ID
6+
// title:string; //问卷标题
7+
// starter:string; //开始问候语
8+
// ending:string; //结束问候语
9+
// state:QuestionnaireState; //问卷状态
10+
// questionList: QuestionModel[]; //问题列表
11+
// createDate?:string; //创建日期
12+
// }
13+
314
//问卷数据模型定义
4-
export interface QuestionnaireModel{
15+
export class QuestionnaireModel{
516
id?:string; //问卷ID
617
title:string; //问卷标题
718
starter:string; //开始问候语
@@ -16,4 +27,4 @@ export const enum QuestionnaireState{
1627
Created, //已创建状态
1728
Published, //发布回收状态
1829
Finished //完成状态
19-
}
30+
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// 用户信息
2-
export interface UserModel{
2+
// export interface UserModel{
3+
// username:string; //问卷标题
4+
// createDate?:string; //创建日期
5+
// }
6+
7+
export class UserModel{
38
username:string; //问卷标题
49
createDate?:string; //创建日期
510
}

0 commit comments

Comments
 (0)