File tree Expand file tree Collapse file tree 4 files changed +30
-6
lines changed
src/client/app/shared/models Expand file tree Collapse file tree 4 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 120
120
"traceur" : " ^0.0.111" ,
121
121
"ts-node" : " ^1.4.3" ,
122
122
"tslint" : " ^3.15.1" ,
123
- "typescript" : " ^ 2.0.3" ,
123
+ "typescript" : " 2.0.3" ,
124
124
"walk" : " ^2.3.9" ,
125
125
"yargs" : " ^6.0.0" ,
126
126
"minimatch" : " ^3.0.3"
Original file line number Diff line number Diff line change 1
1
// 问题模型数据定义
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 {
3
11
title :string ; //问题标题(描述)
4
12
type :QuestionType ; //问题类型
5
13
options ?:any [ ] ; //答案选项
@@ -12,4 +20,4 @@ export const enum QuestionType{
12
20
SingleSelect ,
13
21
MultiSelect ,
14
22
Score
15
- }
23
+ }
Original file line number Diff line number Diff line change 1
1
import { QuestionModel } from './question.model' ;
2
2
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
+
3
14
//问卷数据模型定义
4
- export interface QuestionnaireModel {
15
+ export class QuestionnaireModel {
5
16
id ?:string ; //问卷ID
6
17
title :string ; //问卷标题
7
18
starter :string ; //开始问候语
@@ -16,4 +27,4 @@ export const enum QuestionnaireState{
16
27
Created , //已创建状态
17
28
Published , //发布回收状态
18
29
Finished //完成状态
19
- }
30
+ }
Original file line number Diff line number Diff line change 1
1
// 用户信息
2
- export interface UserModel {
2
+ // export interface UserModel{
3
+ // username:string; //问卷标题
4
+ // createDate?:string; //创建日期
5
+ // }
6
+
7
+ export class UserModel {
3
8
username :string ; //问卷标题
4
9
createDate ?:string ; //创建日期
5
10
}
You can’t perform that action at this time.
0 commit comments