- GetNavHistoryAsync现在会自动检查是否有历史数据 - 无历史数据时自动调用BackfillNavHistoryInternalAsync - 拆分内部回填方法,避免重复验证权限
14 lines
666 B
C#
Executable File
14 lines
666 B
C#
Executable File
using AssetManager.Models.DTOs;
|
|
|
|
namespace AssetManager.Services;
|
|
|
|
public interface IPortfolioService
|
|
{
|
|
CreatePortfolioResponse CreatePortfolio(CreatePortfolioRequest request, string userId);
|
|
List<PortfolioListItem> GetPortfolios(string userId);
|
|
TotalAssetsResponse GetTotalAssets(string userId);
|
|
PortfolioDetailResponse GetPortfolioById(string id, string userId);
|
|
Task<PortfolioDetailResponse> GetPortfolioByIdAsync(string id, string userId);
|
|
GetTransactionsResponse GetTransactions(string portfolioId, string userId, int limit, int offset);
|
|
CreateTransactionResponse CreateTransaction(CreateTransactionRequest request, string userId);
|
|
} |