using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace TEAMModelOS.Models.Dto
{
    public class HomeworkCommentDto
    {
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessage = "{0} 必须填写")]
        public string studentId { get; set; }

        [Required(ErrorMessage = "{0} 必须填写")]
        public string homeWorkId { get; set; }

        /// <summary>
        /// 评论id 不带是评论 带是评论的回复
        /// </summary>
        public string commentid { get; set; }

        /// <summary>
        /// 评论者id
        /// </summary>
        public string fromId { get; set; }
        
        /// <summary>
        /// 被评论者id 醍摩豆或studenId
        /// </summary>
        public string toId { get; set; }

        /// <summary>
        /// 评论者身份 教师 学生
        /// </summary>
        public string identity { get; set; }

        /// <summary>
        /// 评语
        /// </summary>
        public string comment { get; set; }


        /// <summary>
        /// 学生分数
        /// </summary>
        public double? score { get; set; }
    }
}
