flores/service/network/inspect.go
2025-04-11 18:00:46 +08:00

21 lines
355 B
Go

package network
import (
"floares/lib/http/network"
"github.com/gin-gonic/gin"
"net/http"
)
func ListConnect(c *gin.Context) {
ns := c.Param("ns")
if ns == "" {
c.JSON(http.StatusBadRequest, gin.H{
"code": http.StatusBadRequest,
"msg": "namespace is required",
})
}
inspect := network.GetInspect(ns)
c.JSON(http.StatusOK, inspect)
}