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

namespace TEAMModelOS.Models.Dto
{
    public class HomeworkScoringDto
    {
        /// <summary>
        /// 学生id
        /// </summary>
        [Required(ErrorMessage = "{0} 必须填写")]
        public string studentId { get; set; }
        
        /// <summary>
        /// 作业id
        /// </summary>
        [Required(ErrorMessage = "{0} 必须填写")]
        public string homeWorkId { get; set; }

        /// <summary>
        /// 教师打分
        /// </summary>
        public double? score { get; set; }

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

        /// <summary>
        ///  醍摩豆id 或者学生id
        /// </summary>
        [Required(ErrorMessage = "{0} 必须填写")]
        public string TEAMModelId { get; set; }

        /// <summary>
        /// 学生打星星
        /// </summary>
        public double start { get; set; } = -1;
    }
}
