2017-11-08 09:50:44 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
2017-12-01 06:04:31 +00:00
|
|
|
|
|
|
|
util "git.loafle.net/overflow/overflow_commons_go/util"
|
2017-11-08 09:50:44 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Host struct {
|
2017-12-01 06:04:31 +00:00
|
|
|
ID json.Number `json:"id,Number,omitempty"`
|
|
|
|
IP int64 `json:"ip,omitempty"`
|
|
|
|
Mac int64 `json:"mac,omitempty"`
|
2017-12-03 05:50:37 +00:00
|
|
|
OS string `json:"os,omitempty"`
|
2017-12-01 06:04:31 +00:00
|
|
|
Target bool `json:"target,omitempty"`
|
|
|
|
Ports []*Port `json:"ports,omitempty"`
|
2017-12-03 05:50:37 +00:00
|
|
|
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
|
|
|
UpdateDate util.Timestamp `json:"updateDate,omitempty"`
|
2017-12-01 06:04:31 +00:00
|
|
|
}
|