using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddProjectUser
    {
        [Required(ErrorMessage = "NameIsEmpty")]
        public string name { get; set; }

        [Required(ErrorMessage = "SexIsEmpty")]
        public int sex { get; set; }

        [Required(ErrorMessage = "WorkCodeIsEmpty")]
        public string work_code { get; set; }

        [Required(ErrorMessage = "UserGroupidIDNull")]
        public string usergroupid { get; set; }

        [Required(ErrorMessage = "SectionIDNotNull")]
        public string sectionid { get; set; }

        [Required(ErrorMessage = "MobileIsEmpty")]
        public string mobile { get; set; }

        public string password { get; set; }

        public string fixed_line { get; set; }

        public string create_time { get; set; }

        public string email { get; set; }

        public string face { get; set; }

        public string rank { get; set; } = "";
    }

    public class RequestUpdateProjectUser : RequestAddProjectUser
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int id { get; set; }
    }

    public class RequestUpdatePassWord
    {
        public string oldpassword { get; set; }

        public string password { get; set; }
    }
}
