using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestLogin
    {
        public string UserId { get; set; }
        public string UserPwd { get; set; }
    }
    public class RequestUserRoles
    {
        [Required(ErrorMessage = "UserID 是必须的")]
        public int UserId { get; set; }
        [Required(ErrorMessage = "RoleId 是必须的")]
        public int RoleId { get; set; }
    }
    public class RolesStatus
    {

        public int Role { get; set; }
        public int Checked { get; set; }
    }
    public class RequestRolesAuthority
    {
        [Required(ErrorMessage = "RoleID 是必须的")]
        public int RoleId { get; set; }
        public List<RolesAuthority> RolesAuthStatus { get; set; }
    }
    public class RolesAuthority
    {
        public int MenuId { get; set; }
        public int Checked { get; set; }
    }
}
