12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using Azure.Cosmos;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Text;
- using System.Text.Json;
- using System.Text.Json.Serialization;
- using TEAMModelOS.SDK.Context.Attributes.Azure;
- using TEAMModelOS.SDK.DI;
- namespace TEAMModelFunction
- {
- public class Classroom:ID
- {
- public string pk { get; set; }
- public int? ttl { get; set; }
- public Classroom()
- {
- students = new List<StudentSimple>();
- teacher = new Teachers();
- }
- [JsonPropertyName("id")]
- public string id { get; set; }
- public float x { get; set; }
-
- public float y { get; set; }
-
- public string name { get; set; }
-
- public Teachers teacher { get; set; }
-
- public string periodId { get; set; }
-
- public string gradeId { get; set; }
-
- public string sn { get; set; }
-
- public int studentCount { get; set; }
- public List<StudentSimple> students { get; set; }
- /// <summary>
- /// TBL IRS 类型区分
- /// </summary>
-
- public string style { get; set; }
-
- public int status { get; set; } = 1;
- /// <summary>
- /// </summary>
- /*[ProtoMember(13)]
- [Required(ErrorMessage = "{0} 必须填写,请设置个人教室还是学校教室")]
- public int type { get; set; } = 1;*/
- [PartitionKey]
- public string code { get; set; }
- /// <summary>
- /// 教室属性,普通 /专设的教室
- /// </summary>
- public string openType { get; set; }
- public string scope { get; set; }
- }
- public class StudentSimple
- {
- public string id { get; set; }
- public string name { get; set; }
- public string no { get; set; }
- public string groupId { get; set; }
- public string groupName { get; set; }
- }
- public class Teachers
- {
- public string id { get; set; }
- public string name { get; set; }
- }
- }
|