aggiunto il campo "Read" per tenere traccia della lettura del documento.
This commit is contained in:
parent
59e3c609d2
commit
b2ae33be3b
2 changed files with 3 additions and 1 deletions
1
dbs.go
1
dbs.go
|
@ -29,6 +29,7 @@ type MongoLogin struct {
|
|||
Protocol string `json:"protocol"`
|
||||
Ip string `json:"ip"`
|
||||
Date time.Time `json:"date"`
|
||||
Read bool `json:"read"`
|
||||
}
|
||||
|
||||
type Index struct {
|
||||
|
|
3
main.go
3
main.go
|
@ -22,7 +22,7 @@ type Options struct {
|
|||
}
|
||||
|
||||
const (
|
||||
_VERSION = "v1.1.3"
|
||||
_VERSION = "v1.1.4"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -139,6 +139,7 @@ func main() {
|
|||
Protocol: sval[0],
|
||||
Ip: sval[2],
|
||||
Date: time.Unix(date, 0),
|
||||
Read: false,
|
||||
}
|
||||
ind := Index{
|
||||
User: user,
|
||||
|
|
Loading…
Add table
Reference in a new issue