using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.DncRepository.Request
{
    public class RequestAddPower: DNCPower
    {
        [Required(ErrorMessage = "MIDNotFound")]
        public int mid { get; set; }

    }
    public class RequestEditPower : DNCPower
    {
        [Required(ErrorMessage = "PowerIDNotFound")]
        public int powerid { get; set; }

    }
    public class DNCPower
    {
        [Required(ErrorMessage = "SelectNoPower")]
        public int add_power { get; set; }
        [Required(ErrorMessage = "SelectNoPower")]
        public int del_power { get; set; }
        [Required(ErrorMessage = "SelectNoPower")]
        public int check_power { get; set; }
        [Required(ErrorMessage = "SelectNoPower")]
        public int all_power { get; set; }
        public string remark { get; set; }
    }
    public class RequestDelPower
    {
        [Required(ErrorMessage = "PowerIDNotFound")]
        public int powerid { get; set; }

    }
}
