using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestCategory
    {
        [Required(ErrorMessage = "PidIsEmpty")]
        public string Pid { get; set; }
        [Required(ErrorMessage = "NameIsEmpty")]
        public string Name { get; set; }
        [Required(ErrorMessage = "ImageIsEmpty")]
        public string Image { get; set; }
        [Required(ErrorMessage = "CtypeIsEmpty")]
        public int Ctype { get; set; }
        [Required(ErrorMessage = "PostUrlIsEmpty")]
        public string PostUrl { get; set; }
        [Required(ErrorMessage = "JsonIsEmpty")]
        public string Json { get; set; }
        [Required(ErrorMessage = "HeaderIsEmpty")]
        public string Header { get; set; }
        [Required(ErrorMessage = "OpenIsEmpty")]
        public string Open { get; set; }
        public int Sort { get; set; }
        public string Create_name { get; set; }
        public string Create_by { get; set; }
    }
    public class RequestModifyCategory:RequestCategory
    {
        public int Id { get; set; }

    }
}
