remove 移除海宁餐补处理
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Kurisu.RemoteCall" Version="0.4.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,29 +0,0 @@
|
||||
using Dlhis.Canteen.Api.Request;
|
||||
using Dlhis.Canteen.Api.Response;
|
||||
using Kurisu.RemoteCall.Attributes;
|
||||
|
||||
namespace Dlhis.Canteen.Api;
|
||||
|
||||
/// <summary>
|
||||
/// 海宁餐补API
|
||||
/// </summary>
|
||||
[EnableRemoteClient(Name = "haining-service", BaseUrl = "https://pay.aizhuhotel.com")]
|
||||
public interface IHainingMealSupplementApi
|
||||
{
|
||||
/// <summary>
|
||||
/// 餐补写入
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[Post("/jingke/api/canteen/InputCredit")]
|
||||
Task<HainingResponse<object>> AddMealSupplementAsync(AddHainingMealSupplementRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 海宁储能
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[Post("/jschuneng/api/canteen/InputCredit")]
|
||||
Task<HainingResponse<object>> AddHsChuNengMealSupplementAsync(AddHainingMealSupplementRequest request);
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Canteen.Api.Request;
|
||||
|
||||
public class AddHainingMealSupplementRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
[Required]
|
||||
[JsonProperty("orderNo")]
|
||||
public string UniqueId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工号
|
||||
/// </summary>
|
||||
[Required]
|
||||
[JsonProperty("ename")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 餐补金额
|
||||
/// </summary>
|
||||
[JsonProperty("credit")]
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考勤日期
|
||||
/// </summary>
|
||||
[Required]
|
||||
[JsonProperty("sysdate")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[JsonProperty("payRef")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Dlhis.Canteen.Api.Response;
|
||||
|
||||
public class HainingResponse<T>
|
||||
{
|
||||
public int Code { get; set; }
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public T Data { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user