using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddCompany
    {
        
        [Required(ErrorMessage = "ChinesenameIsEmpty")]
        public string chinesename { get; set; }

        public string chinesepinyin { get; set; }

        [Required(ErrorMessage = "ProvinceIsEmpty")]
        public string province { get; set; }

        public string city { get; set; }

        public string county { get; set; }

        [Required(ErrorMessage = "DetailaddressIsEmpty")]
        public string detailaddress { get; set; }

        public string industry_first { get; set; }

        public string industry_second { get; set; }

        [Required(ErrorMessage = "TelephoneIsEmpty")]
        public string telephone { get; set; }

        public string website { get; set; }

        [Required(ErrorMessage = "CompanyEmailIsEmpty")]
        public string email { get; set; }

        public string litpic { get; set; }

        public string description { get; set; }

        public string companycode { get; set; }

        public string identification { get; set; }

        [Required(ErrorMessage = "ContactIsEmpty")]
        public string contact { get; set; }

        public string create_time { get; set; }

        public int cid { get; set; }
    }

    public class RequestUpdateCompany : RequestAddCompany
    {
        [Required(ErrorMessage = "CompanyIdIsEmpty")]
        public int id { get; set; }
    }
}
