You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
288 B
23 lines
288 B
3 years ago
|
package domain
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type User struct {
|
||
|
ID string `bson:"_id"`
|
||
|
Castle string
|
||
|
Guild string
|
||
|
Name string
|
||
|
Level int
|
||
|
Source string
|
||
|
|
||
|
FirstSeen time.Time
|
||
|
LastSeen time.Time
|
||
|
}
|
||
|
|
||
|
type UserRepo interface {
|
||
|
Store(ctx context.Context, object *User) error
|
||
|
}
|