AssetManager.API/AssetManager.Models/ApiResponse.cs
niannian zheng b5499ef7fe refactor: 将模型属性改为可为空类型以增强健壮性
- 修改ApiResponse、RiskParityConfig等DTO类的属性为可空类型
- 在策略计算器中添加空值检查逻辑
- 更新服务层代码处理可能的空值情况
- 添加发布配置文件FolderProfile.pubxml
2026-03-06 15:51:59 +08:00

18 lines
447 B
C#

namespace AssetManager.Models;
public class ApiResponse<T>
{
public int code { get; set; }
public T? data { get; set; }
public string? message { get; set; }
}
public static class StatusCodes
{
public const int Success = 200;
public const int BadRequest = 400;
public const int Unauthorized = 401;
public const int Forbidden = 403;
public const int NotFound = 404;
public const int InternalServerError = 500;
}