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 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"` }
Click to show internal directories.
Click to hide internal directories.