123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package isapi
- import (
- "github.com/gin-gonic/gin"
- v1 "lcfns/api/v1"
- "lcfns/middleware"
- )
- type IsApiRouter struct {
- }
- func (i *IsApiRouter) InitInfoRouter(Router *gin.RouterGroup) {
- var is = v1.ApiGroupApp.ISAPIApiGroup
- //摄像头系统相关
- sys := Router.Group("/ISAPI/System/")
- {
- sys.GET("deviceInfo", is.GetInfo)
- sys.GET("capabilities", is.GetCap)
- sys.PUT("Network/mailing/1", is.PutEmail)
- }
- //摄像头智能事件
- smart := Router.Group("/ISAPI/Smart/").Use(middleware.OperationRecord())
- smartNoRecord := Router.Group("/ISAPI/Smart/")
- {
- //区域入侵
- smartNoRecord.GET("FieldDetection/1/capabilities", is.GetFieldDectionCap)
- smartNoRecord.GET("channels/1/calibrations/FieldDetection", is.GetSizeFd)
- smart.PUT("channels/1/calibrations/FieldDetection", is.PutSizeFd)
- smartNoRecord.GET("FieldDetection/1", is.GetFieldDection)
- smart.PUT("FieldDetection/1", is.PutFieldDection)
- //越界侦测
- smartNoRecord.GET("LineDetection/1/capabilities", is.GetLineDetectionCap)
- smartNoRecord.GET("channels/1/calibrations/linedetection", is.GetSizeLd)
- smart.PUT("channels/1/calibrations/linedetection", is.PutSizeLd)
- smartNoRecord.GET("LineDetection/1", is.GetLineDetection)
- smart.PUT("LineDetection/1", is.PutLineDetection)
- //进入区域
- smartNoRecord.GET("regionEntrance/1/capabilities", is.GetRegionEntranceCap)
- smartNoRecord.GET("channels/1/calibrations/regionEntrance", is.GetSizeRe)
- smart.PUT("channels/1/calibrations/regionEntrance", is.PutSizeRe)
- smartNoRecord.GET("regionEntrance/1", is.GetRegionEntrance)
- smart.PUT("regionEntrance/1", is.PutRegionEntrance)
- }
- }
|