refactor: optimize codebase encoding

This commit is contained in:
tinkle-community
2026-03-12 16:12:08 +08:00
parent 2314ece9d1
commit 736d2d385d
61 changed files with 2301 additions and 1533 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ func (c *Client) fetchAI500() ([]CoinData, error) {
return nil, fmt.Errorf("API returned failure status")
}
// 空列表是正常情况,不是错误
// Empty list is a normal condition, not an error
if len(response.Data.Coins) == 0 {
log.Printf("️ AI500 returned empty coin list (no coins meet criteria currently)")
return []CoinData{}, nil
+1 -1
View File
@@ -23,7 +23,7 @@ type NetFlowResponse struct {
Netflows []NetFlowPosition `json:"netflows"`
Count int `json:"count"`
Type string `json:"type"` // institution or personal
Trade string `json:"trade"` // 合约 or 现货
Trade string `json:"trade"` // futures or spot
TimeRange string `json:"time_range"`
RankType string `json:"rank_type"` // top or low
Limit int `json:"limit"`