refactor 优化代码
This commit is contained in:
11
Src/Dlhis.Jip.Api/Responses/DHRResponse.cs
Normal file
11
Src/Dlhis.Jip.Api/Responses/DHRResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class DHRResponse<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 200:success
|
||||
/// </summary>
|
||||
public int Code { get; set; }
|
||||
public string Message { get; set; }
|
||||
public T Data { get; set; }
|
||||
}
|
||||
87
Src/Dlhis.Jip.Api/Responses/SapBusinessTripInfoResponse.cs
Normal file
87
Src/Dlhis.Jip.Api/Responses/SapBusinessTripInfoResponse.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class SapBusinessTripInfoResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 明细数据
|
||||
/// </summary>
|
||||
[JsonProperty("OT_2002")]
|
||||
public List<SapBusinessTripInfoItem> Items { get; set; }
|
||||
}
|
||||
|
||||
public class SapBusinessTripInfoItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 工号
|
||||
/// </summary>
|
||||
[JsonProperty("OV_GONGH")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 姓名
|
||||
/// </summary>
|
||||
[JsonProperty("OV_ENAME")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
[JsonProperty("OV_BEGDA")]
|
||||
public DateTime BeginDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
[JsonProperty("OV_ENDDA")]
|
||||
public DateTime EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[JsonProperty("OV_BEGUZ")]
|
||||
public TimeOnly? BeginDateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[JsonProperty("OV_ENDUZ")]
|
||||
public TimeOnly? EndDateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出差类型
|
||||
/// </summary>
|
||||
[JsonProperty("OV_AWART")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出差类型描述
|
||||
/// </summary>
|
||||
[JsonProperty("OV_ATEXT")]
|
||||
public string TypeDesc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出差时数
|
||||
/// </summary>
|
||||
[JsonProperty("OV_STDAZ")]
|
||||
public double Hour { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出差天数
|
||||
/// </summary>
|
||||
[JsonProperty("OV_ABWTG")]
|
||||
public double Day { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出差目的地
|
||||
/// </summary>
|
||||
[JsonProperty("OV_CCMDD")]
|
||||
public string Destination { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出差目的地描述
|
||||
/// </summary>
|
||||
[JsonProperty("OV_CCMDDMS")]
|
||||
public string DestinationDesc { get; set; }
|
||||
}
|
||||
11
Src/Dlhis.Jip.Api/Responses/SapFaceSyncResponse.cs
Normal file
11
Src/Dlhis.Jip.Api/Responses/SapFaceSyncResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class SapFaceSyncResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// S 成功
|
||||
/// </summary>
|
||||
public string OLX { get; set; }
|
||||
|
||||
public string OMS { get; set; }
|
||||
}
|
||||
10
Src/Dlhis.Jip.Api/Responses/SapOrganizationResponse.cs
Normal file
10
Src/Dlhis.Jip.Api/Responses/SapOrganizationResponse.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Dlhis.Jip.Api.Dto;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class SapOrganizationResponse
|
||||
{
|
||||
[JsonProperty("T_ORG")]
|
||||
public SapOrganization Org { get; set; }
|
||||
}
|
||||
26
Src/Dlhis.Jip.Api/Responses/SapPersonResponse.cs
Normal file
26
Src/Dlhis.Jip.Api/Responses/SapPersonResponse.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Dlhis.Jip.Api.Dto;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class SapPersonResponse
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[JsonProperty("T_PERSON")]
|
||||
public SapPerson<SapPersonItem> Person { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// 离职状态
|
||||
// /// </summary>
|
||||
// [JsonProperty("T_0000")]
|
||||
// public SapPerson<SapPersonJobStatus> JobStatusInfo { get; set; }
|
||||
//
|
||||
// /// <summary>
|
||||
// /// 部门变更信息
|
||||
// /// </summary>
|
||||
// [JsonProperty("T_0001")]
|
||||
// public SapPerson<SapPersonDepartmentStatus> DepartmentInfo { get; set; }
|
||||
|
||||
}
|
||||
10
Src/Dlhis.Jip.Api/Responses/SapPositionResponse.cs
Normal file
10
Src/Dlhis.Jip.Api/Responses/SapPositionResponse.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Dlhis.Jip.Api.Dto;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class SapPositionResponse
|
||||
{
|
||||
[JsonProperty("T_POST")]
|
||||
public SapPosition Position { get; set; }
|
||||
}
|
||||
11
Src/Dlhis.Jip.Api/Responses/UploadAttendanceResponse.cs
Normal file
11
Src/Dlhis.Jip.Api/Responses/UploadAttendanceResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class UploadAttendanceResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 0 成功
|
||||
/// </summary>
|
||||
public string OLX { get; set; }
|
||||
|
||||
public string OMS { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user