فهرست منبع

add: secretUrl

Ben 1 سال پیش
والد
کامیت
6febbc1aa3
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      internal/dto/response.go
  2. 1 0
      internal/server/server.go

+ 1 - 0
internal/dto/response.go

@@ -60,6 +60,7 @@ type Node struct {
 	CountryLabel string `json:"countryLabel"`
 	Ip           string `json:"ip"`
 	Icon         string `json:"icon"`
+	SecretUrl    string `json:"secretUrl"`
 }
 
 type ConfigResponse struct {

+ 1 - 0
internal/server/server.go

@@ -226,5 +226,6 @@ func convert2DtoNode(node *model.Node, seq int) *dto.Node {
 		City:         node.City,
 		CountryLabel: fmt.Sprintf("%s - %d", countryLabels[node.CountryCode], seq+1),
 		Icon:         icons[node.CountryCode],
+		SecretUrl:    fmt.Sprintf("http://v.starttransfernow.com/secret?ip=%s", node.Ip),
 	}
 }