using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using TEAMModelOS.SDK.Context.Attributes.Azure; namespace TEAMModelOS.SDK.Models { /// /// 投票 /// public class Vote : CosmosEntity { public Vote() { pk = "Vote"; options = new List(); } public string school { get; set; } /// /// 投票名称 /// public string name { get; set; } /// /// 创建者的id /// public string creatorId { get; set; } /// /// pending 待发布|going 已发布|finish 已结束 /// public string progress { get; set; } /// /// 投票选项 /// public List options { get; set; } /// /// //匿名投票,不公布投票人相关信息 /// public bool secret { get; set; } /// /// 投票周期/once一次,day天,week周,month月,年year等 /// public string times { get; set; } //周期内可投票数 public int voteNum { get; set; } /// /// school|private /// public string scope { get; set; } /// /// 参与投票的教师醍摩豆id /// public List tmdids { get; set; } /// /// scope 为school时 是学校的班级 为private 时是私人班级 /// public List classes { get; set; } /// /// 开始时间 /// public long startTime { get; set; } /// /// 创建时间 /// public long createTime { get; set; } /// /// 结束时间 /// public long endTime { get; set; } /// /// 更新时间 /// public long updateTime { get; set; } /// /// 投票描述 /// public string description { get; set; } /// /// (100:待发布 200:已发布 300:已结束) /// public int status { get; set; } } /// /// 投票选项 /// public class OptionsVote { /// /// 投票编号 /// public string code { get; set; } /// /// 投票对象 /// public string value { get; set; } /// /// 投票对象描述 /// public string desc { get; set; } } }