17 lines
368 B
Go
17 lines
368 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func GetConnections(c *gin.Context) {
|
|
// 这里可以添加获取产品的逻辑
|
|
c.JSON(http.StatusOK, gin.H{"message": "Get Connections"})
|
|
}
|
|
|
|
func CreateConnection(c *gin.Context) {
|
|
// 这里可以添加创建产品的逻辑
|
|
c.JSON(http.StatusCreated, gin.H{"message": "Connection Created"})
|
|
}
|