using System.ComponentModel.DataAnnotations;

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

        public string code { get; set; }

        [Required(ErrorMessage = "DrawingcodeIsEmpty")]
        public string drawingcode { get; set; }

        public string remark { get; set; }

        public int createtime { get; set; }
        public string image { get; set; }
    }

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