123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Text;
- using TEAMModelOS.SDK.Context.Attributes.Azure;
- using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
- namespace TEAMModelOS.Service.Models
- {
- /// <summary>
- /// 试卷信息
- /// </summary>
- [CosmosDB(RU = 400, Name = "School")]
- public class Paper : ID
- {
- /// <summary>
- /// 学校编码,个人编码,考试编码
- /// </summary>
- [PartitionKey]
- [Required(ErrorMessage = "{0} 必须填写")]
- public string code { get; set; }
- public string pk { get; set; }
- public int? ttl { get; set; }
- public Paper() {
- item = new List<ItemInfo>();
- }
- [JsonProperty(PropertyName = "id")]
- public string id { get; set; }
-
-
- public List<ItemInfo> item { get; set; }
- public string subjectCode { get; set; }
- public string periodCode { get; set; }
- public List<string> gradeCode { get; set; }
- public string name { get; set; }
- public int itemCount { get; set; }
- public double level { get; set; }
- public double score { get; set; }
- /// <summary>
- /// type:{
- /// pointkey:[num1,num2....]
- /// }
- /// </summary>
- public Dictionary<string, ScoreCount> typeScore { get; set; }
- public Dictionary<string, ScoreCount> levelScore { get; set; }
- public Dictionary<string, ScoreItem> pointScore { get; set; }
- public long createTime { get; set; }
- /// <summary>
- /// 正确答案
- /// </summary>
- public List<Answer> answers { get; set; }
- }
-
- public class ScoreItem
- {
- public ScoreItem()
- {
- item = new List<int>();
- }
- public double score { get; set; }
- public List<int> item { get; set; }
- }
- public class ScoreCount{
-
- public double score { get; set; }
- public int count { get; set; }
- }
- }
|