Classroom.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.Json.Serialization;
  5. using TEAMModelOS.SDK.Context.Attributes.Azure;
  6. using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
  7. namespace TEAMModelOS.Service.Models.Core
  8. {
  9. [CosmosDB(RU = 400, Name = "CoreClassroom")]
  10. public class Classroom:ID
  11. {
  12. public Classroom()
  13. {
  14. point = new Point();
  15. }
  16. [JsonPropertyName("id")]
  17. public string id { get; set; }
  18. [PartitionKey]
  19. public string schoolCode { get; set; }
  20. public string classroomCode { get; set; }
  21. public Point point { get; set; }
  22. public string classroomName { get; set; }
  23. public string headMaster { get; set; }
  24. public string periodCode { get; set; }
  25. public string gradeCode { get; set; }
  26. public string hiteach { get; set; }
  27. public int studentCount { get; set; }
  28. public string classroomType { get; set; }
  29. public int status { get; set; } = 1;
  30. public string scope { get; set; }
  31. public string TEAMModelId { get; set; }
  32. }
  33. }
  34. public class Point
  35. {
  36. public float x { get; set; }
  37. public float y { get; set; }
  38. }