添加在线调试 api
This commit is contained in:
15
server/pkg/models/node.go
Normal file
15
server/pkg/models/node.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// Node 客户端模型
|
||||
type Node struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Version byte
|
||||
FwdPort uint16
|
||||
Provider string
|
||||
Location string
|
||||
|
||||
Channels []Channel `gorm:"foreignKey:NodeId"`
|
||||
}
|
||||
Reference in New Issue
Block a user