|
@@ -21,7 +21,9 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public string subject { get; set; }
|
|
|
public string description { get; set; }
|
|
|
public string address { get; set; }
|
|
|
+ [Range(1697622366000, 4102415999000, ErrorMessage = $"时间范围错误")]
|
|
|
public long stime { get; set; }
|
|
|
+ [Range(1697622366000, 4102415999000, ErrorMessage = $"时间范围错误")]
|
|
|
public long etime { get; set; }
|
|
|
public string poster { get; set; }
|
|
|
public List<Attachment> attachment { get; set; } = new List<Attachment>();
|
|
@@ -33,7 +35,7 @@ namespace TEAMModelOS.SDK.Models
|
|
|
[Required(ErrorMessage = "Required")]
|
|
|
public string owner { get; set; }
|
|
|
/// <summary>
|
|
|
- /// "public公开/area区级/school校级",
|
|
|
+ /// "public公开/area区级/school校级", public公开活动 只能是醍摩豆智慧学区才能选择,
|
|
|
/// </summary>
|
|
|
[Required(ErrorMessage = "Required")]
|
|
|
public string scope { get; set; }
|
|
@@ -45,14 +47,16 @@ namespace TEAMModelOS.SDK.Models
|
|
|
/// <summary>
|
|
|
/// //区级活动时允许参与的学校,如果为空则全部学校
|
|
|
/// </summary>
|
|
|
- public List<IdNamePicture> schools { get; set; } = new List<IdNamePicture>();
|
|
|
+ public List<ActivitySchool > schools { get; set; } = new List<ActivitySchool>();
|
|
|
/// <summary>
|
|
|
/// //邀请制,允许参加的教师
|
|
|
/// </summary>
|
|
|
- public List<IdNameSchool> inviteTeachers { get; set; } = new List<IdNameSchool>();
|
|
|
+ public List<ActivityTeacher> inviteTeachers { get; set; } = new List<ActivityTeacher>();
|
|
|
/// <summary>
|
|
|
/// 模块"Contest/赛课活动", "Training/线上培训", "Research/教研活动"
|
|
|
/// </summary>
|
|
|
+ [Required(ErrorMessage = "模块不能为空")]
|
|
|
+ [MinLength(1, ErrorMessage = "模块不能为空")]
|
|
|
public List<string> modules { get; set; } = new List<string>();
|
|
|
/// <summary>
|
|
|
/// 本次活动的评审专家
|
|
@@ -70,6 +74,33 @@ namespace TEAMModelOS.SDK.Models
|
|
|
/// 创建者
|
|
|
/// </summary>
|
|
|
public string creatorId { get; set; }
|
|
|
+ /// <summary>
|
|
|
+ /// 0未发布,1已发布,2.已结束
|
|
|
+ /// </summary>
|
|
|
+ public int publish { get; set; }
|
|
|
+ }
|
|
|
+
|
|
|
+ public class ActivityTeacher
|
|
|
+ {
|
|
|
+ public string id { get; set; }
|
|
|
+ public string name { get; set; }
|
|
|
+ public string picture { get; set; }
|
|
|
+ public string school { get; set; }
|
|
|
+ /// <summary>
|
|
|
+ /// 0 未确认,1已确认,用于区级发布, publish=1,joinMode=invite,学校可以去进行邀请某一些教师。
|
|
|
+ /// </summary>
|
|
|
+ public int status { get; set; }
|
|
|
+ }
|
|
|
+ public class ActivitySchool
|
|
|
+ {
|
|
|
+ public string id { get; set; }
|
|
|
+ public string name { get; set; }
|
|
|
+ public string picture { get; set; }
|
|
|
+ public string school { get; set; }
|
|
|
+ /// <summary>
|
|
|
+ /// 0 未确认,1已确认,用于区级发布, publish=1,joinMode=invite,学校可以去进行邀请某一些教师。
|
|
|
+ /// </summary>
|
|
|
+ public int status { get; set; }
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -86,10 +117,12 @@ namespace TEAMModelOS.SDK.Models
|
|
|
/// <summary>
|
|
|
/// //参加活动获得积分。根据最后评委打分,0-100的比例获得积分,不足一分按一分计算。
|
|
|
/// </summary>
|
|
|
- public int balance { get; set; }
|
|
|
+ public int balance { get; set; } = 0;
|
|
|
/// <summary>
|
|
|
/// "sign","upload","review","score"//报名模块,上传作品模块,评审模块,成绩公布模块
|
|
|
/// </summary>
|
|
|
+ [Required(ErrorMessage = "优课评选子模块不能为空")]
|
|
|
+ [MinLength(1, ErrorMessage = "优课评选子模块不能为空")]
|
|
|
public List<string> modules { get; set; } = new List<string>();
|
|
|
|
|
|
public ContestSign sign { get; set; }
|