diff --git a/Server/YD_XinWei.Commons/Dto/Open/FaceListOfDeviceDto.cs b/Server/YD_XinWei.Commons/Dto/Open/FaceListOfDeviceDto.cs new file mode 100644 index 0000000..c48db3c --- /dev/null +++ b/Server/YD_XinWei.Commons/Dto/Open/FaceListOfDeviceDto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace YD_XinWei.Commons.Dto.Open +{ + public class FaceListOfDeviceDto : PageDto + { + public int OrgId { get; set; } + } +} diff --git a/Server/YD_XinWei.Commons/Dto/Open/FaceListOfDevicePageDto.cs b/Server/YD_XinWei.Commons/Dto/Open/FaceListOfDevicePageDto.cs new file mode 100644 index 0000000..242b83d --- /dev/null +++ b/Server/YD_XinWei.Commons/Dto/Open/FaceListOfDevicePageDto.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace YD_XinWei.Commons.Dto.Open +{ + public class FaceListOfDevicePageDto + { + public int Total { get; set; } + public int PageNum { get; set; } + public int PageSize { get; set; } + public int Size { get; set; } + public int StartRow { get; set; } + public int EndRow { get; set; } + public int Pages { get; set; } + public int PrePage { get; set; } + public int NextPage { get; set; } + public bool IsFirstPage { get; set; } + public bool IsLastPage { get; set; } + public bool HasPreviousPage { get; set; } + public bool HasNextPage { get; set; } + public int NavigatePages { get; set; } + public List NavigatePageNums { get; set; } = new List(); + public int NavigateFirstPage { get; set; } + public int NavigateLastPage { get; set; } + public List List { get; set; } = new List(); + } + + public class DeviceUserFaceVo + { + public int UserId { get; set; } + public int FaceType { get; set; } + public string FaceUrl { get; set; } = string.Empty; + public string FaceId { get; set; } = string.Empty; + public string PersonId { get; set; } = string.Empty; + } +} diff --git a/Server/YD_XinWei.Commons/Dto/PageDataDto.cs b/Server/YD_XinWei.Commons/Dto/PageDataDto.cs new file mode 100644 index 0000000..76f9af3 --- /dev/null +++ b/Server/YD_XinWei.Commons/Dto/PageDataDto.cs @@ -0,0 +1,20 @@ + + +namespace YD_XinWei.Commons.Dto +{ + /// + /// 通用分页返回 + /// + public class PageDataDto + { + /// + /// 总页数 + /// + public int Total { get; set; } + + /// + /// 数据集合 + /// + public List List { get; set; } + } +} diff --git a/Server/YD_XinWei.Commons/Dto/PageDto.cs b/Server/YD_XinWei.Commons/Dto/PageDto.cs new file mode 100644 index 0000000..6e180fe --- /dev/null +++ b/Server/YD_XinWei.Commons/Dto/PageDto.cs @@ -0,0 +1,24 @@ +using System.ComponentModel.DataAnnotations; + +namespace YD_XinWei.Commons.Dto +{ + /// + /// 分页 + /// + public class PageDto + { + /// + /// 页码 + /// + [Required(ErrorMessage = "页码参数不能为空")] + [Range(1, int.MaxValue, ErrorMessage = "参数必须大于0")] + public int PageNo { get; set; } + + /// + /// 每页行数 + /// + [Required(ErrorMessage = "行数不能为空")] + [Range(1, int.MaxValue, ErrorMessage = "参数必须大于0")] + public int PageSize { get; set; } + } +} diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs index 7897baf..04193e7 100644 --- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs +++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Commons")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3745c9b034aa32c859c2d39720b663ab8b57b93c")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0fe6b9902074841df3483134524084275defee80")] [assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Commons")] [assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Commons")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache index 3b5d6a9..6200dff 100644 --- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache +++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache @@ -1 +1 @@ -7f5729c2855c8794a38d2fceb144dfef3fa094ba9f16db5f184e9ffaf1240877 +05848327760aee62efe2eb50ea063d214c9b014ac40e23aa82e46c4c180418cf diff --git a/Server/YD_XinWei/Services/Interface/IXinWeiService.cs b/Server/YD_XinWei/Services/Interface/IXinWeiService.cs index dee56a3..f92e604 100644 --- a/Server/YD_XinWei/Services/Interface/IXinWeiService.cs +++ b/Server/YD_XinWei/Services/Interface/IXinWeiService.cs @@ -31,5 +31,12 @@ namespace YD_XinWei.Api.Services.Interface /// 学校Id /// Task> MinimumOfStudentInfoList(int orgId); + + /// + /// 获取人脸信息 + /// + /// + /// + Task> FaceListOfDevicePage(FaceListOfDeviceDto dto); } }