- 修改ApiResponse、RiskParityConfig等DTO类的属性为可空类型 - 在策略计算器中添加空值检查逻辑 - 更新服务层代码处理可能的空值情况 - 添加发布配置文件FolderProfile.pubxml
18 lines
447 B
C#
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;
|
|
} |