[octopus-go] 初步完成gin gorm框架集成

This commit is contained in:
zeaslity
2023-03-07 17:32:35 +08:00
parent a18f2353a9
commit da56f6586c
9 changed files with 416 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
package entity
import (
"gorm.io/gorm"
)
type ServerInfo struct {
gorm.Model
ServerName string `grom:type`
TopicName string
ServerIPPublicV4 string
ServerIPInnerV4 string
ServerIPPublicV6 string
ServerIPInnerV6 string
ProxyType uint
Location string
Provider string
ManagePort string
CpuBrand string
CpuCore string
MemoryTotal string
DiskTotal string
DiskUsage string
IoSpeed string
TcpControl string
Virtualization string
OsInfo string
OsKernelInfo string
MachineId string
Comment string
Version uint
}