1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Text;
- using System.Text.Json.Serialization;
- using TEAMModelOS.SDK.Context.Attributes.Azure;
- using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
- namespace TEAMModelOS.Service.Models.Core
- {
- [CosmosDB(RU = 400, Name = "CoreClassroom")]
- public class Classroom:ID
- {
- public int? ttl { get; set; } = -1;
- public Classroom()
- {
- point = new Point();
- }
- [Required(ErrorMessage = "{0} 必须填写")]
- [JsonPropertyName("id")]
- public string id { get; set; }
- [Required(ErrorMessage = "{0} 必须填写")]
- [PartitionKey]
- public string scopeCode { get; set; }
- [Required(ErrorMessage = "{0} 必须填写")]
- public string classroomCode { get; set; }
- public Point point { get; set; }
- public string classroomName { get; set; }
- public string headMaster { get; set; }
- public string periodCode { get; set; }
- public string gradeCode { get; set; }
- public string hiteach { get; set; }
- public int studentCount { get; set; }
- public string classroomType { get; set; }
- public int status { get; set; } = 1;
- //public string scope { get; set; }
- //public string TEAMModelId { get; set; }
- }
- }
- public class Point
- {
- public float x { get; set; }
- public float y { get; set; }
- }
|