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 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"
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11import { 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+ }
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments