internal

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID          = "_id"
	CatId       = "catId"
	CommunityId = "communityId"
	Photos      = "photos"
	Title       = "title"
	Text        = "text"
	UserId      = "userId"
	UpdateAt    = "updateAt"
	CreateAt    = "createAt"
)
View Source
const (
	IdSorter = iota
	ScoreSorter
)
View Source
const MomentCollectionName = "moment"

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterOptions

type FilterOptions struct {
	OnlyUserId       *string
	OnlyCommunityId  *string
	OnlyCommunityIds []string
}

type Moment

type Moment struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	CatId       string             `bson:"catId,omitempty"`
	CommunityId string             `bson:"communityId,omitempty"`
	Photos      []string           `bson:"photos,omitempty"`
	Title       string             `bson:"title,omitempty"`
	Text        string             `bson:"text,omitempty"`
	UserId      string             `bson:"userId,omitempty"`
	UpdateAt    time.Time          `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt    time.Time          `bson:"createAt,omitempty" json:"createAt,omitempty"`
	// 仅ES查询时使用
	Score_ float64 `bson:"_score,omitempty" json:"_score,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL