忽略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,17 +0,0 @@
using Newtonsoft.Json;
namespace ServiceClient.Response.PropertyEmployee
{
public class EmployeeItem
{
[JsonProperty("ID")] public int UserId { get; set; }
[JsonProperty("mobile")] public string Mobile { get; set; } = "";
[JsonProperty("name")] public string Name { get; set; } = "";
[JsonProperty("projectCode")] public int ProjectCode { get; set; }
[JsonProperty("isInternal")] public bool IsInternal { get; set; }
}
}

View File

@@ -1,57 +0,0 @@
using System;
using System.Collections.Generic;
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.PropertyEmployee;
using ServiceClient.Response.User;
namespace ServiceClient.Response.PropertyEmployee
{
public class QueryAllEmployeesByOwnerIdResponse
{
[JsonProperty("staffData")]
public List<EmployeeItem> EmployeeInfos { get; set; }=new List<EmployeeItem>();
}
}
namespace BaseInfoClient.Extension
{
public static class QueryAllEmployeesByOwnerIdResponseExtension
{
public static async Task<List<EmployeeItem>> QueryAllEmployeesByOwnerId(this BaseInfoHttpClient client
, int ownerId, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/baseinfo/v1/BaseData/GetAllBasePerson?Data.IsGetSaff=true&OwnerID={ownerId}");
var content = await response.Content.ReadAsStringAsync();
return content.FromJsonTo<ApiResult<QueryAllEmployeesByOwnerIdResponse>>().Data.EmployeeInfos;
}
catch (Exception e)
{
LogHelper.Error("根据OwnerId获取物业员工",e);
if (throwException)
{
BusinessException.Throw("获取员工信息失败");
}
else
{
return new List<EmployeeItem>();
}
}
return new List<EmployeeItem>();
}
}
}

View File

@@ -1,57 +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.PropertyEmployee;
using ServiceClient.Response.User;
namespace ServiceClient.Response.PropertyEmployee
{
public class QueryEmployeeInfoByUserIdResponse
{
[JsonProperty("staffData")] public EmployeeItem UserInfo { get; set; } = new EmployeeItem();
}
}
namespace BaseInfoClient.Extension
{
public static class QueryEmployeeInfoByUserIdResponseExtension
{
public static async Task<EmployeeItem> QueryEmployeeInfoByUserId(this BaseInfoHttpClient client, int ownerId,
int userId, bool throwException = false)
{
try
{
var response = await client.CreateHttpClient().GetAsync(
$"{client.BaseUrl}/api/baseinfo/v1/BaseData/GetOneBasePerson?Data.staffId={userId}&OwnerID={ownerId}");
var content = await response.Content.ReadAsStringAsync();
return content.FromJsonTo<ApiResult<QueryEmployeeInfoByUserIdResponse>>().Data.UserInfo;
}
catch (Exception e)
{
LogHelper.Error("根据员工Id获取员工信息",e);
if (throwException)
{
BusinessException.Throw("获取员工信息失败");
}
else
{
return new EmployeeItem();
}
}
return new EmployeeItem();
}
}
}