소스 검색

接口调整

zhouj1203@hotmail.com 6 년 전
부모
커밋
0912a75c8d

+ 1 - 1
TEAMModelOS.Model/Evaluation/Dtos/DocInfoDto.cs

@@ -4,7 +4,7 @@ using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
 using System.Text;
 
-namespace TEAMModelOS.Model.Evaluation.Dtos
+namespace TEAMModelOS.Model.Evaluation.Dtos.Own
 {
     [MessagePackObject(keyAsPropertyName: true)]
     public class DocInfoDto

+ 38 - 0
TEAMModelOS.Model/Evaluation/Dtos/Own/Evaluats.cs

@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.Evaluation.Dtos.Own
+{
+    public class Evaluats
+    {
+        /// <summary>
+        /// 题库集合
+        /// </summary>
+        public string[] ItemIds { get; set; }
+        /// <summary>
+        /// 评测名称
+        /// </summary>
+        public string Name { get; set; }
+        /// <summary>
+        /// 评测科目
+        /// </summary>
+        public string Subject { get; set; }
+        /// <summary>
+        /// 考试情景
+        /// </summary>
+        public string Scene { get; set; }
+        /// <summary>
+        /// 评测类型
+        /// </summary>
+        public string Type { get; set; }
+        /// <summary>
+        /// 评测对象
+        /// </summary>
+        public string Target { get; set; }
+        /// <summary>
+        /// 评测排定
+        /// </summary>
+        public string Schedule { get; set; }
+    }
+}

+ 1 - 1
TEAMModelOS.Model/Evaluation/Dtos/ExerciseDto.cs

@@ -4,7 +4,7 @@ using System.Collections.Generic;
 using System.Text;
 using TEAMModelOS.Model.Core.Dtos;
 
-namespace TEAMModelOS.Model.Evaluation.Dtos
+namespace TEAMModelOS.Model.Evaluation.Dtos.Own
 {
     [MessagePackObject(keyAsPropertyName: true)]
     public class ExerciseDto

+ 26 - 0
TEAMModelOS.Model/Evaluation/Dtos/Own/ItemBankDto.cs

@@ -0,0 +1,26 @@
+using MessagePack;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using TEAMModelOS.Model.Core.Dtos;
+
+namespace TEAMModelOS.Model.Evaluation.Dtos.Own
+{
+    [MessagePackObject(keyAsPropertyName: true)]
+    public class ItemBankDto
+    {
+        public ItemBankDto()
+        {
+            Options = new List<CodeValue>();
+            Answer = new List<string>();
+        }
+        public string PartitionKey { get; set; }
+        public string RowKey { get; set; }
+        public string ShaCode { get; set; }
+        public string Question { get; set; }
+        public List<CodeValue> Options { get; set; }
+        public List<string> Answer { get; set; }
+        public string Explain { get; set; }
+        public string Type { get; set; }
+    }
+}

+ 21 - 0
TEAMModelOS.Model/Evaluation/Dtos/Own/TestPaperDto.cs

@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.Evaluation.Dtos.Own
+{
+    public class TestPaperDto
+    {
+        public string Name { get; set; }
+        public List<string> ItemId { get; set; }
+        public string SchoolCode { get; set; }
+        public string PeriodCode { get; set; }
+        public string GradeCode { get; set; }
+        public string ClassCode { get; set; }
+        public string SubjectCode { get; set; }
+        public string TeamodelId { get; set; }
+        public List<string> Point { get; set; }
+        public object Extend { get; set; }
+        public int State { get; set; }
+    }
+}

TEAMModelOS.Model/Evaluation/Dtos/ExerciseInfo.cs → TEAMModelOS.Model/Evaluation/Dtos/Third/ExerciseInfo.cs


TEAMModelOS.Model/Evaluation/Dtos/Item.cs → TEAMModelOS.Model/Evaluation/Dtos/Third/Item.cs


TEAMModelOS.Model/Evaluation/Dtos/ItemOption.cs → TEAMModelOS.Model/Evaluation/Dtos/Third/ItemOption.cs


TEAMModelOS.Model/Evaluation/Dtos/MemberAnswer.cs → TEAMModelOS.Model/Evaluation/Dtos/Third/MemberAnswer.cs


TEAMModelOS.Model/Evaluation/Dtos/MemberInfo.cs → TEAMModelOS.Model/Evaluation/Dtos/Third/MemberInfo.cs


TEAMModelOS.Model/Evaluation/Dtos/TestPaperInfo.cs → TEAMModelOS.Model/Evaluation/Dtos/Third/TestPaperInfo.cs


+ 1 - 0
TEAMModelOS.Model/Evaluation/Models/Evaluating.cs

@@ -15,6 +15,7 @@ namespace TEAMModelOS.Model.Evaluation.Models
         /// 题库集合
         /// </summary>
         public string[] ItemIds { get; set; }
+
         /// <summary>
         /// 评测名称
         /// </summary>

+ 4 - 4
TEAMModelOS.Model/Evaluation/Models/ItemBank.cs

@@ -33,6 +33,10 @@ namespace TEAMModelOS.Model.EvaluaTion.Models
         /// </summary>
         public string Point { get; set; }
         /// <summary>
+        /// 选项
+        /// </summary>
+        public string Option { get; set; }
+        /// <summary>
         /// 标准答案
         /// </summary>
         public string Answer { get; set; }
@@ -58,10 +62,6 @@ namespace TEAMModelOS.Model.EvaluaTion.Models
         /// </summary>
         public string Difficulty { get; set; }
         /// <summary>
-        /// 创建时间
-        /// </summary>
-        public DateTime Date { get; set; }
-        /// <summary>
         /// 重要性
         /// </summary>
         public string Importance { get; set; }

+ 16 - 4
TEAMModelOS.Model/Evaluation/Models/TestPaper.cs

@@ -5,9 +5,9 @@ using TEAMModelOS.SDK.Context.Attributes.Azure;
 
 namespace TEAMModelOS.Model.Evaluation.Models
 {
+    [TableSpace(Name = "Evaluation")]
     public class TestPaper
     {
-        public string id { get; set; }
         [PartitionKey]
         public string Name { get; set; }
         /// <summary>
@@ -18,15 +18,27 @@ namespace TEAMModelOS.Model.Evaluation.Models
         /// 题序(试卷排版顺序)
         /// </summary>
         public string Index { get; set; }
+        public string SchoolCode { get; set; }
+        /// <summary>
+        /// 学段编码
+        /// </summary>
+        /// 
+        public string PeriodCode { get; set; }
+        public string GradeCode { get; set; }
+        public string ClassCode { get; set; }
+        public string SubjectCode { get; set; }
+        public string TeamodelId { get; set; }
+        /// <summary>
+        /// 是否公开
+        /// </summary>
+        public int State { get; set; } = 0;
         /// <summary>
         /// 动态字段部分
         /// </summary>
-        public object Extend { get; set; }
+        public object Extends { get; set; }
         /// <summary>
         /// 分值或者配分
         /// </summary>
         public string Point { get; set; }
-        public DateTimeOffset Stime { get; set; }
-        public DateTimeOffset Etime { get; set; }
     }
 }