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
+14
View File
@@ -0,0 +1,14 @@
package network
import (
"floares/lib/http/network"
"github.com/gin-gonic/gin"
)
func ListNetwork(c *gin.Context) {
net := network.ListNetwork()
c.JSON(200, gin.H{
"data": net,
"code": 200,
})
}
+7
View File
@@ -0,0 +1,7 @@
package network
import "github.com/gin-gonic/gin"
func RegisterRouter(r *gin.RouterGroup) {
r.GET("/", ListNetwork)
}