using System; using System.Collections.Generic; using System.Text; using TEAMModelOS.SDK.Context.Attributes.Azure; using TEAMModelOS.SDK.Module.AzureCosmosDBV3; namespace TEAMModelOS.Service.Models.Learn { [CosmosDB(RU = 400, Name = "HomeWorkTeacherComments")] public class TeacherComments : ID { public TeacherComments(){ comment = new List(); } public string id { get; set; } /// /// 评语 /// public List comment { get; set; } /// /// 醍摩豆id 或者学生id /// [PartitionKey] public string TEAMModelId { get; set; } public class Comment { /// /// 评语 /// public string comment { get; set; } /// /// 评论时间 /// public long createTime { get; set; } = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeMilliseconds(); public string id { get; set; } public int order { get; set; } } } }