Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Collection = mongodb.DB().Connection().Collection("memberReadHistory")
Functions ¶
func BatchDelete ¶
BatchDelete 批量删除
Types ¶
type MemberReadHistory ¶
type MemberReadHistory struct { Id primitive.ObjectID `bson:"_id,omitempty"` MemberId int64 `bson:"memberId"` MemberNickname string `bson:"memberNickname"` MemberIcon string `bson:"memberIcon"` ProductId int64 `bson:"productId"` ProductName string `bson:"productName"` ProductPic string `bson:"productPic"` ProductSubTitle string `bson:"productSubTitle"` ProductPrice float64 `bson:"productPrice"` CreateTime time.Time `bson:"createTime"` }
MemberReadHistory 会员商品浏览历史记录
func FindByMemberIDOrderByCreateTimeDesc ¶
func FindByMemberIDOrderByCreateTimeDesc(ctx context.Context, memberID int64, page, size int64) ( []*MemberReadHistory, int64, error)
FindByMemberIDOrderByCreateTimeDesc 根据会员ID分页查找记录并按创建时间降序排序
func NewModel ¶
func NewModel() *MemberReadHistory
func (*MemberReadHistory) InsertOrUpdate ¶
func (m *MemberReadHistory) InsertOrUpdate(ctx context.Context) (*mongo.UpdateResult, error)
Click to show internal directories.
Click to hide internal directories.