Ben 1 yıl önce
ebeveyn
işleme
9884bc6df5
2 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 1 0
      internal/dto/response.go
  2. 1 0
      internal/server/server.go

+ 1 - 0
internal/dto/response.go

@@ -57,6 +57,7 @@ type Node struct {
 	CountryCode string `json:"countryCode"`
 	CountryName string `json:"countryName"`
 	Ip          string `json:"ip"`
+	Icon        string `json:"icon"`
 }
 
 type ConfigResponse struct {

+ 1 - 0
internal/server/server.go

@@ -68,6 +68,7 @@ func List(c *gin.Context) {
 				Ip:          node.Ip,
 				CountryCode: node.CountryCode,
 				CountryName: node.CountryName,
+				Icon:        "https://img.zcool.cn/community/010a5a57dbc2140000018c1b0a9b5f.png",
 			})
 		}
 	}