init commit

This commit is contained in:
2025-04-09 15:52:24 +08:00
parent d1c5fb1162
commit a5b87653a3
31 changed files with 718 additions and 24 deletions
+2 -1
View File
@@ -2,13 +2,14 @@ package volume
import (
"encoding/json"
"floares/config"
"floares/lib/model"
"log"
"net/http"
)
func ListJsons() model.VolumesJson {
req, _ := http.NewRequest("GET", "http://127.0.0.1:8888/volumes", nil)
req, _ := http.NewRequest("GET", config.Entrypoint+"/volumes", nil)
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Println("request for volume list error:", err)