| 1234567891011121314151617181920212223242526272829 |
- package item
- import (
- "github.com/gin-gonic/gin"
- v1 "server/api/v1"
- "server/middleware"
- )
- type BluetoothRouter struct{}
- func (s *BluetoothRouter) InitBluetoothRouter(Router *gin.RouterGroup) {
- bluetoothRouter := Router.Group("bluetooth").Use(middleware.OperationRecord())
- bluetoothRouterWithoutRecord := Router.Group("bluetooth")
- bluetoothApi := v1.ApiGroupApp.ItemApiGroup.BluetoothApi
- {
- bluetoothRouter.POST("getDeviceData", bluetoothApi.GetDeviceData)
- bluetoothRouter.POST("scanAllDevice", bluetoothApi.ScanAllDevice)
- bluetoothRouter.POST("createBluetooth", bluetoothApi.CreateBluetooth)
- bluetoothRouter.POST("deviceSendCmd", bluetoothApi.DeviceSendCmd)
- }
- {
- bluetoothRouterWithoutRecord.GET("queryAllTempScanDevices", bluetoothApi.QueryAllTempScanDevices)
- bluetoothRouterWithoutRecord.GET("queryBluetoothsByGatewayID", bluetoothApi.QueryBluetoothsByGatewayID)
- bluetoothRouterWithoutRecord.POST("queryDataDashboardParameter", bluetoothApi.QueryDataDashboardParameter)
- bluetoothRouterWithoutRecord.POST("queryBluetoothList", bluetoothApi.QueryBluetoothList)
- }
- }
|