mirror of https://github.com/bjdgyc/anylink.git
设置Info字段的默认值
This commit is contained in:
parent
86a4ed8948
commit
b8d3eedd9d
|
@ -66,8 +66,8 @@ type AccessAudit struct {
|
||||||
SrcPort uint16 `json:"src_port" xorm:"not null"`
|
SrcPort uint16 `json:"src_port" xorm:"not null"`
|
||||||
Dst string `json:"dst" xorm:"varchar(60) not null"`
|
Dst string `json:"dst" xorm:"varchar(60) not null"`
|
||||||
DstPort uint16 `json:"dst_port" xorm:"not null"`
|
DstPort uint16 `json:"dst_port" xorm:"not null"`
|
||||||
AccessProto uint8 `json:"access_proto" xorm:"not null default 0 Int(10)"` // 访问协议
|
AccessProto uint8 `json:"access_proto" xorm:"default 0"` // 访问协议
|
||||||
Info string `json:"info" xorm:"varchar(255) not null"` // 详情
|
Info string `json:"info" xorm:"varchar(255) not null default ''"` // 详情
|
||||||
CreatedAt time.Time `json:"created_at" xorm:"DateTime"`
|
CreatedAt time.Time `json:"created_at" xorm:"DateTime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue