重新定义接口

This commit is contained in:
injoyai
2025-11-17 15:48:57 +08:00
parent b2a4c00253
commit fc04b5042a
4 changed files with 5 additions and 5 deletions

View File

@@ -175,14 +175,14 @@ type Manage struct {
// RangeStocks 遍历所有股票
func (this *Manage) RangeStocks(f func(code string)) {
for _, v := range this.Codes.GetStocks() {
f(v)
f(v.FullCode())
}
}
// RangeETFs 遍历所有ETF
func (this *Manage) RangeETFs(f func(code string)) {
for _, v := range this.Codes.GetETFs() {
f(v)
f(v.FullCode())
}
}