Files
number_zj/20220330_Vote/Vote.Services/Dto/OutsideWallInput.cs
范露尧 589b8a0132 修改授权方式为手机号码和验证码方式
测试出的问题修复
2023-07-12 16:11:42 +08:00

136 lines
5.0 KiB
C#

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();
// }
//}
}
/// <summary>
///
/// </summary>
public class OutsideWallInput
{
public string communityId { get; set; }
/// <summary>
///
/// </summary>
public string communityName { get; set; }
public string deliveryear { get; set; }
public List<string> 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<SanjuBuilding> 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<string> curwallproblems { get; set; } = new List<string>();
public string curwallproblemother { get; set; }
public string wallproblemsfirst { get; set; }
public string firstproblemdate { get; set; }
public string problemfrequency { get; set; }
public List<string> problemseason { get; set; } = new List<string>();
public List<string> wallproblemtoward { get; set; } = new List<string>();
public List<ProblemToward> problemfiles { get; set; } = new List<ProblemToward>();
//public List<string> problemfiles2 { get; set; }
//public List<string> problemfiles3 { get; set; }
//public List<string> problemfiles4 { get; set; }
public string problemfanwei { get; set; }
public List<string> problemheight { get; set; } = new List<string>();
public List<string> diaoluowu { get; set; } = new List<string>();
}
public class ProblemToward
{
public string Toward { get; set; }
public string file { get; set; }
}
public class Mapper : IRegister
{
public void Register(TypeAdapterConfig config)
{
config.ForType<SanjuBuilding, outside_wall_building>()
.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));
}
}
/// <summary>
///
/// </summary>
public class VerifyLoginInput
{
/// <summary>
///
/// </summary>
[Required]
public string code { get; set; }
/// <summary>
///
/// </summary>
[Required]
public string phone { get; set; }
}
}