40 lines
908 B
C#
40 lines
908 B
C#
using Kurisu.AspNetCore.Utils.Converters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Dlhis.Canteen.MealSupplementRecord.Response;
|
|
|
|
public class MealSupplementRecordItemResponse
|
|
{
|
|
/// <summary>
|
|
/// 餐补日期
|
|
/// </summary>
|
|
[JsonConverter(typeof(ToDateJsonConverter))]
|
|
public DateTime Date { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public decimal CurrentAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐补金额
|
|
/// </summary>
|
|
public string Amount => CurrentAmount.ToString("f2");
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string Remark { get; set; }
|
|
}
|
|
|
|
public class MealSupplementRecordMyResponse
|
|
{
|
|
[JsonIgnore]
|
|
public decimal CurrentMonthSum { get; set; }
|
|
|
|
/// <summary>
|
|
/// 当前月份总和
|
|
/// </summary>
|
|
public string MonthSum => CurrentMonthSum.ToString("f2");
|
|
|
|
public List<MealSupplementRecordItemResponse> Items { get; set; }
|
|
}
|