- GetNavHistoryAsync现在会自动检查是否有历史数据 - 无历史数据时自动调用BackfillNavHistoryInternalAsync - 拆分内部回填方法,避免重复验证权限
18 lines
447 B
C#
Executable File
18 lines
447 B
C#
Executable File
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;
|
|
} |