忽略dll文件git

This commit is contained in:
“wanyongkang”
2023-07-29 10:19:42 +08:00
parent 7f97317bcc
commit b562aba2b1
3868 changed files with 63608 additions and 385427 deletions

View File

@@ -1,145 +0,0 @@
using BaseInfoClient.Response.Visitor;
using Etor.Infrastructure.Common;
using Etor.Infrastructure.Data;
using Etor.Infrastructure.Serializer;
using Etor.Infrastructure.WebApi;
using ServiceClient;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace BaseInfoClient.Extension
{
public static class QueryVisitorByOpenidOrId
{
public static async Task<List<VisitorResponseItem>> QueryVisitorByOpenId(this BaseInfoHttpClient client
, QueryMenJinVisitorRequest param, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/visitor/v1/Request/QueryByOpenId?OwnerId={param.OwnerId}&Data.OpenId={param.OpenId}");
var content = await response.Content.ReadAsStringAsync();
var result = content.FromJsonTo<ApiResult<List<VisitorResponseItem>>>();
return result.Data;
}
catch (Exception e)
{
LogHelper.Error("根据OwnerId获取住户", e);
if (throwException)
{
BusinessException.Throw("获取住户信息失败");
}
else
{
return new List<VisitorResponseItem>();
}
}
return new List<VisitorResponseItem>();
}
public static async Task<VisitorResponseItem> QueryVisitorById(this BaseInfoHttpClient client
, QueryMenJinVisitorRequest param, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/visitor/v1/Request/QueryById?OwnerId={param.OwnerId}&Data.Id={param.Id}&Data.Type={param.Type}");
var content = await response.Content.ReadAsStringAsync();
var result = content.FromJsonTo<ApiResult<VisitorResponseItem>>();
return result.Data;
}
catch (Exception e)
{
LogHelper.Error("根据OwnerId获取住户", e);
if (throwException)
{
BusinessException.Throw("获取住户信息失败");
}
else
{
return new VisitorResponseItem();
}
}
return new VisitorResponseItem();
}
/// <summary>
/// 根据人脸ID获取访客信息
/// </summary>
/// <param name="client"></param>
/// <param name="param"></param>
/// <param name="throwException"></param>
/// <returns></returns>
public static async Task<VisitorResponseItem> QueryVisitorByFaceId(this BaseInfoHttpClient client
, int ownerId,string faceId, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/visitor/v1/Request/QueryByFaceId?OwnerId={ownerId}&Data.FaceId={faceId}");
var content = await response.Content.ReadAsStringAsync();
var result = content.FromJsonTo<ApiResult<VisitorResponseItem>>();
return result.Data;
}
catch (Exception e)
{
LogHelper.Error("根据OwnerId获取住户", e);
if (throwException)
{
BusinessException.Throw("获取住户信息失败");
}
else
{
return new VisitorResponseItem();
}
}
return new VisitorResponseItem();
}
/// <summary>
/// 根据人脸ID获取访客信息
/// </summary>
/// <param name="client"></param>
/// <param name="param"></param>
/// <param name="throwException"></param>
/// <returns></returns>
public static async Task<List<QueryDeviceByBuildResponse>> QueryVisitorProFace(this BaseInfoHttpClient client
, int projectCode, string buildCode,string unit,int operaterID, int ownerID, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/doorway/v1/device/GetFacesClient?OperaterID={operaterID}&OwnerID={ownerID}&Data.ProjectCode={projectCode}&Data.BuildCode={buildCode}&Data.Unit={unit}&Data.UserType=0");
var content = await response.Content.ReadAsStringAsync();
var result = content.FromJsonTo<ApiResult<List<QueryDeviceByBuildResponse>>>();
return result.Data;
}
catch (Exception e)
{
LogHelper.Error("根据OwnerId获取住户", e);
if (throwException)
{
BusinessException.Throw("获取住户设备信息失败");
}
else
{
return new List<QueryDeviceByBuildResponse>();
}
}
return new List<QueryDeviceByBuildResponse>();
}
}
}

View File

@@ -1,56 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BaseInfoClient.Response.Visitor
{
public class VisitorResponseItem
{
public int Id { get; set; }
public DateTime ExpiryTime { get; set; }
public DateTime EntryTime { get; set; }
public string Unit { get; set; }
public string BuildCode { get; set; }
public int ProjectCode { get; set; }
/// <summary>
/// 10邀约 20申请
/// </summary>
public int Type { get; set; }
public string Reason { get; set; }
public string VisitorName { get; set; }
/// <summary>
/// 访客电话
/// </summary>
public string VisitorPhone { get; set; }
public int CheckUserId { get; set; }
/// <summary>
/// 审核人姓名
/// </summary>
public string CheckUserName { get; set; }
public string Room { get; set; }
/// <summary>
/// 状态 10 审核中 20 已通过 30 已拒绝
/// </summary>
public int State { get; set; }
}
public class QueryMenJinVisitorRequest
{
public int Id { get; set; }
public string OpenId { get; set; }
public DateTime InTime { get; set; }
/// <summary>
/// 10 申请 20 邀约
/// </summary>
public int Type { get; set; }
public int OwnerId { get; set; }
}
public class QueryDeviceByBuildResponse
{
public string Ip { get; set; }
public string PassWord { get; set; }
public string DeviceNo { get; set; }
public int Port { get; set; }
}
}