Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leaderboard ¶
type Leaderboard struct { ID primitive.ObjectID `bson:"_id,omitempty"` UserID primitive.ObjectID `bson:"userId"` Method string `bson:"method"` TotalPoint int `bson:"totalPoint"` Rank int `bson:"rank"` CreatedAt primitive.DateTime `bson:"createdAt"` UpdatedAt primitive.DateTime `bson:"updatedAt"` }
func UpsertLeaderboard ¶
func UpsertLeaderboard(ctx context.Context, client *mongo.Client, Leaderboard *Leaderboard) (*Leaderboard, error)
type Point ¶
type UserPoints ¶
type UserPoints struct { UserID primitive.ObjectID `bson:"_id"` TotalPoint int `bson:"totalPoint"` }
func AggregateUserPoints ¶
Click to show internal directories.
Click to hide internal directories.