using Ewide.Core.Service; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ewide.Application { public class HouseZoneInput { [Required(ErrorMessage = "区域编码不可为空")] [MinLength(9, ErrorMessage = "区域编码长度必须为9位及以上")] public string AreaCode { get; set; } } public class AddHouseZoneInput : OrgInput { /// /// 所属街道 /// [Required(ErrorMessage = "所属街道不能为空")] public override string Pid { get; set; } /// /// 名称 /// [Required(ErrorMessage = "片区名称不能为空")] public override string Name { get; set; } } public class UpdateHouseZoneInput : AddHouseZoneInput { /// /// 机构Id /// [Required(ErrorMessage = "片区Id不能为空")] public string Id { get; set; } } }