Files
energy-management-system/router/routes/device_point.go
2024-09-03 18:00:02 +08:00

22 lines
684 B
Go

package routes
import (
v1 "energy-management-system/api/v1"
"github.com/gin-gonic/gin"
)
type DevicePoint struct{}
func (r *DevicePoint) InitDevicePoint(Router *gin.RouterGroup) {
devicePointApi := Router.Group("devicePoint")
{
devicePointApi.GET("pointNameSelect", v1.Controllers.DevicePoint.PointNameSelect)
devicePointApi.GET("devicePointPage", v1.Controllers.DevicePoint.DevicePointPage)
devicePointApi.POST("createDevicePoint", v1.Controllers.DevicePoint.CreateDevicePoint)
devicePointApi.PUT("updateDevicePoint", v1.Controllers.DevicePoint.UpdateDevicePoint)
devicePointApi.GET("devicePointEditDetail", v1.Controllers.DevicePoint.DevicePointEditDetail)
}
}