添加动态目标
All checks were successful
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
Docker Build & Deploy / Build Docker Image (push) Successful in 22s
Docker Build & Deploy / Deploy to Production (push) Successful in 10s

This commit is contained in:
孙诚
2026-01-15 20:00:41 +08:00
parent caf6f3fe60
commit f4f1600782
7 changed files with 237 additions and 12 deletions

View File

@@ -102,6 +102,24 @@ public class BudgetController(
}
}
/// <summary>
/// 获取指定周期的存款预算信息
/// </summary>
[HttpGet]
public async Task<BaseResponse<BudgetResult?>> GetSavingsBudgetAsync(int year, int month, BudgetPeriodType type)
{
try
{
var result = await budgetService.GetSavingsBudgetAsync(year, month, type);
return result.Ok();
}
catch (Exception ex)
{
logger.LogError(ex, "获取存款预算信息失败");
return $"获取存款预算信息失败: {ex.Message}".Fail<BudgetResult?>();
}
}
/// <summary>
/// 删除预算
/// </summary>