2025-08-05 10:51:35 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type Gateway struct {
|
|
|
|
|
Id int `gorm:"column:id;primaryKey"`
|
|
|
|
|
ConfigVersion int `gorm:"column:setid"`
|
|
|
|
|
ChangeCount int `gorm:"column:change_count"`
|
|
|
|
|
LimitCount int `gorm:"column:limit_count"`
|
|
|
|
|
Token string `gorm:"column:token"`
|
|
|
|
|
Macaddr string `gorm:"column:macaddr"`
|
|
|
|
|
TokenTime string `gorm:"column:token_time"`
|
|
|
|
|
PrivateIp string `gorm:"column:inner_ip"`
|
|
|
|
|
ProxyIp string `gorm:"column:l2ip"`
|
2025-08-09 16:17:41 +08:00
|
|
|
Enable bool `gorm:"column:enable"`
|
2025-08-05 10:51:35 +08:00
|
|
|
CreateTime string `gorm:"column:createtime"`
|
|
|
|
|
UpdateTime string `gorm:"column:updatetime"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *Gateway) TableName() string {
|
|
|
|
|
return "token"
|
|
|
|
|
}
|