using Furion.DatabaseAccessor; using Mapster; using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using Vote.Services.Entities; namespace Vote.Services.Dto { public class OutsideWallBuildingsOutput : outside_wall_building { public string communityId { get; set; } public string communityName { get; set; } public string submitCode { get; set; } public DateTime? createtime { get; set; } } public class OutsideWallQueryBuildingInput { public string wallId { get; set; } } public class OutsideWallQueryInput { public string submitCode { get; set; } public string communityId { get; set; } } public class OutsideWallResultOutput : outside_wall { public int submitBuildCount { get; set; } //{ // get // { // return this.outside_wall_buildings.Where(a => !string.IsNullOrWhiteSpace(a.curwallproblems)).Count(); // } //} } /// /// /// public class OutsideWallInput { public string communityId { get; set; } /// /// /// public string communityName { get; set; } public string deliveryear { get; set; } public List fileList { get; set; } public decimal buildcount { get; set; } public decimal householdcount { get; set; } public decimal totalfloorage { get; set; } public int isExistProblem { get; set; } public int problemismodify { get; set; } public string problemmodifyunitname { get; set; } public string problemmodifyisagain { get; set; } public string contract { get; set; } public List buildings { get; set; } } public class SanjuCommunity { public string Name { get; set; } public string ID { get; set; } public string Code { get; set; } } public class SanjuBuilding { public string ID { get; set; } public string AreaName { get; set; } public string RoadName { get; set; } public string CompletedDate { get; set; } public string BuildingName { get; set; } public string Address { get; set; } public int LevelCount { get; set; } public int HouseHolds { get; set; } public string BuildingUnit { get; set; } public string DesingerUnit { get; set; } public string ConstructionUnit { get; set; } public string MonitorUnit { get; set; } public string WuYeUnit { get; set; } public decimal AreaCount { get; set; } public List curwallproblems { get; set; } = new List(); public string curwallproblemother { get; set; } public string wallproblemsfirst { get; set; } public string firstproblemdate { get; set; } public string problemfrequency { get; set; } public List problemseason { get; set; } = new List(); public List wallproblemtoward { get; set; } = new List(); public List problemfiles { get; set; } = new List(); //public List problemfiles2 { get; set; } //public List problemfiles3 { get; set; } //public List problemfiles4 { get; set; } public string problemfanwei { get; set; } public List problemheight { get; set; } = new List(); public List diaoluowu { get; set; } = new List(); } public class ProblemToward { public string Toward { get; set; } public string file { get; set; } } public class Mapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() .Map(dest => dest.curwallproblems, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.curwallproblems)) .Map(dest => dest.problemseason, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.problemseason)) .Map(dest => dest.wallproblemtoward, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.wallproblemtoward)) //.Map(dest => dest.problemfiles, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.problemfiles)) .Map(dest => dest.problemheight, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.problemheight)) .Map(dest => dest.diaoluowu, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.diaoluowu)); } } /// /// /// public class VerifyLoginInput { /// /// /// [Required] public string code { get; set; } /// /// /// [Required] public string phone { get; set; } } }