AssetManager.API/AssetManager.Services/IPortfolioService.cs
niannian zheng 9741468f3e feat: 添加用户授权支持并重构组合服务
重构组合服务接口和实现,添加用户ID参数以实现多租户隔离
更新组合控制器,从JWT令牌中提取用户ID并验证权限
完善组合服务数据库操作,包括组合创建、查询和交易处理
更新README文档,补充组合API详细说明
2026-03-02 14:47:16 +08:00

13 lines
583 B
C#

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);
GetTransactionsResponse GetTransactions(string portfolioId, string userId, int limit, int offset);
CreateTransactionResponse CreateTransaction(CreateTransactionRequest request, string userId);
}