忽略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,63 +0,0 @@
using System;
using System.Threading.Tasks;
using Etor.Infrastructure.Common;
using Etor.Infrastructure.Data;
using Etor.Infrastructure.Serializer;
using Etor.Infrastructure.WebApi;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using ServiceClient;
using ServiceClient.Response.Householder;
using ServiceClient.Response.User;
namespace ServiceClient.Response.User
{
public class QueryVisiterAndUserByWxOpenIdResponse
{
[JsonProperty("userData")]
public HouseholderItem HouseholderItem { get; set; }
[JsonProperty("visterData")]
public VisterItem VisterItem { get; set; }
}
}
namespace BaseInfoClient.Extension
{
public static class QueryVisiterAndUserByWxOpenIdResponseExtension
{
public static async Task<QueryVisiterAndUserByWxOpenIdResponse> QueryVisiterAndUserByWxOpenId(
this BaseInfoHttpClient client, string openId,bool throwException = false)
{
try
{
var response =
await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/baseinfo/v1/BaseData/GetUserVisterByOpenID?openId={openId}");
//var response =
// await client.CreateHttpClient().GetAsync(
// $"https://localhost:44324/api/baseinfo/v1/BaseData/GetUserVisterByOpenID?openId={openId}");
var content = await response.Content.ReadAsStringAsync();
return content.FromJsonTo<ApiResult<QueryVisiterAndUserByWxOpenIdResponse>>().Data;
}
catch (Exception e)
{
LogHelper.Error("根据openId查询用户",e);
if (throwException)
{
BusinessException.Throw("获取用户信息失败");
}
else
{
return new QueryVisiterAndUserByWxOpenIdResponse();
}
}
return new QueryVisiterAndUserByWxOpenIdResponse();
}
}
}

View File

@@ -1,53 +0,0 @@
using System;
using System.Threading.Tasks;
using Etor.Infrastructure.Common;
using Etor.Infrastructure.Data;
using Etor.Infrastructure.Serializer;
using Etor.Infrastructure.WebApi;
using Newtonsoft.Json;
using ServiceClient;
using ServiceClient.Response.User;
namespace ServiceClient.Response.User
{
public class QueryVisterByVisterIdResponse
{
[JsonProperty("visterData")] public VisterItem VisterItem { get; set; } = new VisterItem();
}
}
namespace BaseInfoClient.Extension
{
public static class QueryVisterByVisterIdResponseExtension
{
public static async Task<VisterItem> QueryVisterByVisterId(this BaseInfoHttpClient client, int ownerId,
int visterId, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/baseinfo/v1/BaseData/GetOneBasePerson?OwnerID={ownerId}&Data.visterId={visterId}");
var content = await response.Content.ReadAsStringAsync();
return content.FromJsonTo<ApiResult<QueryVisterByVisterIdResponse>>().Data.VisterItem;
}
catch (Exception e)
{
LogHelper.Error("根据访客Id查询访客信息",e);
if (throwException)
{
BusinessException.Throw("获取访客信息失败");
}
else
{
return new VisterItem();
}
}
return new VisterItem();
}
}
}

View File

@@ -1,97 +0,0 @@
using System;
using Newtonsoft.Json;
namespace ServiceClient.Response.User
{
public class VisterItem
{
/// <summary>
/// 邀请人姓名
/// </summary>
[JsonProperty("username")]
public string UserName { get; set; }
/// <summary>
/// 访客姓名
/// </summary>
[JsonProperty("visitorname")]
public string VisitorName { get; set; }
/// <summary>
/// 访客电话
/// </summary>
[JsonProperty("visitorphone")]
public string VisitorPhone { get; set; }
/// <summary>
/// 20 前台登记 10 用户邀请 30 人脸访问 40员工端邀请
/// </summary>
[JsonProperty("visitortype")]
public int VisitorType { get; set; }
[JsonProperty("openid")] public string OpenId { get; set; }
/// <summary>
/// 来访日期
/// </summary>
[JsonProperty("entrytime")]
public DateTime EntryTime { get; set; }
[JsonProperty("expirytime")] public DateTime ExpiryTime { get; set; }
[JsonProperty("projectcode")] public int ProjectCode { get; set; }
[JsonProperty("buildcode")] public string BuildCode { get; set; }
[JsonProperty("unit")] public string Unit { get; set; }
[JsonProperty("room")] public string Room { get; set; }
[JsonProperty("reason")] public string Reason { get; set; }
/// <summary>
/// 邀请函模板类型
/// </summary>
[JsonProperty("templatetype")]
public int TemplateType { get; set; }
/// <summary>
/// 10申请中 20申请通过 30: 黑名单用户 40申请作废
/// </summary>
[JsonProperty("stats")]
public int Stats { get; set; }
/// <summary>
/// 访客接受时间
/// </summary>
[JsonProperty("accepttime")]
public DateTime AcceptTime { get; set; }
/// <summary>
/// 备注
/// </summary>
[JsonProperty("bak")]
public string Bak { get; set; }
/// <summary>
/// 微信头像
/// </summary>
[JsonProperty("wxImgUrl")]
public string WxImgUrl { get; set; }
/// <summary>
/// 人脸地址
/// </summary>
[JsonProperty("faceUrl")]
public string FaceUrl { get; set; }
/// <summary>
/// 访客人员ID
/// </summary>
[JsonProperty("userId")]
public System.Int32? UserId { get; set; } = 0;
[JsonProperty("ID")]
public int Id { get; set; }
}
}