feat: 交易记录接口增加stockCode字段返回

This commit is contained in:
claw_bot 2026-03-10 07:23:34 +00:00
parent 10132f9b82
commit 1d99099fca
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class TransactionItem
public string? time { get; set; }
public string? type { get; set; }
public string? title { get; set; }
public string? stockCode { get; set; }
public double amount { get; set; }
public string? currency { get; set; }
public string? status { get; set; }

View File

@ -403,6 +403,7 @@ public class PortfolioService : IPortfolioService
time = t.TransactionTime.ToString("HH:mm:ss"),
type = t.Type,
title = t.Title,
stockCode = t.StockCode,
amount = (double)t.TotalAmount,
currency = t.Currency,
status = t.Status,