Documentation ¶
Index ¶
- type Model
- func (self *Model) AddHatedUser(cxt context.Context, discussID, userID primitive.ObjectID) (*mongo.UpdateResult, error)
- func (self *Model) AddLikedUser(cxt context.Context, discussID, userID primitive.ObjectID) (*mongo.UpdateResult, error)
- func (self *Model) DeleteHatedUser(cxt context.Context, discussID, userID primitive.ObjectID) (*mongo.UpdateResult, error)
- func (self *Model) DeleteLikedUser(cxt context.Context, discussID, userID primitive.ObjectID) (*mongo.UpdateResult, error)
- func (self *Model) FilterByEvaluation(evaluation float64) bson.D
- func (self *Model) FilterByExcludePublishUserIDs(publishUserIDs []primitive.ObjectID) bson.D
- func (self *Model) FilterByGteEvaluation(evaluation float64) bson.D
- func (self *Model) FilterByLocation(location geometry.Point, maxDistance, minDistance float64) bson.D
- func (self *Model) FilterByLteEvaluation(evaluation float64) bson.D
- func (self *Model) FilterByObjectID(objectID primitive.ObjectID) bson.D
- func (self *Model) FilterByPublishUserID(publishUserID primitive.ObjectID) bson.D
- func (self *Model) FilterByPublishUserIDs(publishUserIDs []primitive.ObjectID) bson.D
- func (self *Model) FilterByType(typ int) bson.D
- func (self *Model) FilterByTypes(types []int) bson.D
- func (self *Model) FilterByVisibility(visibility int) bson.D
- func (self *Model) FilterByVisibilityOrAll(visibility int) bson.D
- func (self *Model) FilterNormalDiscuss() bson.D
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (*Model) AddHatedUser ¶
func (*Model) AddLikedUser ¶
func (*Model) DeleteHatedUser ¶
func (*Model) DeleteLikedUser ¶
func (*Model) FilterByExcludePublishUserIDs ¶
func (*Model) FilterByGteEvaluation ¶
func (*Model) FilterByLocation ¶
func (*Model) FilterByLteEvaluation ¶
func (*Model) FilterByObjectID ¶
func (*Model) FilterByPublishUserID ¶
func (*Model) FilterByPublishUserIDs ¶
func (*Model) FilterByVisibilityOrAll ¶
func (*Model) FilterNormalDiscuss ¶
Click to show internal directories.
Click to hide internal directories.