using System.ComponentModel.DataAnnotations;

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

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

        public string email { get; set; }

        [Required(ErrorMessage = "PasswordIsEmpty")]
        public string password { get; set; }

        public int roleid { get; set; }

        public string power { get; set; }

        public string graduate { get; set; }
    }

    public class RequestUpdateAdmin
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int userid { get; set; }

        [Required(ErrorMessage = "NameIsEmpty")]
        public string nickname { get; set; }

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

        public int roleid { get; set; }
    }
}
