1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package gateway
- import "gorm.io/gorm"
- type DeviceScanParam struct {
- Chip string `json:"chip"`
- FilterName string `json:"filterName"`
- FilterRssi string `json:"filterRssi"`
- FilterMac string `json:"filterMac"`
- FilterType string `json:"filterType"`
- }
- type DeviceAddParam struct {
- Type string `json:"type" binding:"required" `
- Mac string `json:"mac" binding:"required" `
- }
- type DeviceInfo struct {
- gorm.Model
- Type string `gorm:"type type:varchar(2) not null comment '分类:0脑电;1心电'"`
- Mac string `gorm:"mac type:varchar(20) not null comment 'Mac 地址'"`
- }
- type DeviceConnParam struct {
- Chip string `json:"chip" binding:"required" `
- AddrType string `json:"addrType" binding:"required"`
- Mac string `json:"mac" binding:"required"`
- FilterName string `json:"filterName" binding:"required"`
- }
- type DeviceScannedFromGateway struct {
- Bdaddrs []Bdaddrs
- ChipId int64
- EvtType int64
- Name string
- Rssi int64
- adData string
- }
- type Bdaddrs struct {
- Bdaddr string `json:"bdaddr"`
- BdaddrType string `json:"bdaddrType"`
- }
- type DeviceScanned struct {
- MAC string
- Name string
- Rssi int64
- BdadrType string
- Chip int64
- }
- type DeviceDataReceived struct {
- Value string `json:"value"`
- Handle int64 `json:"handle"`
- Mac string `json:"id"`
- DataType string `json:"dataType"`
- }
|