Versions in this module Expand all Collapse all v0 v0.0.1 Jul 17, 2024 Changes in this version + var Collection = mongodb.DB().Connection().Collection("memberBrandAttention") + func DeleteAllByMemberID(ctx context.Context, memberID int64) (int64, error) + func DeleteByMemberIDAndBrandID(ctx context.Context, memberID, brandID int64) (int64, error) + type MemberBrandAttention struct + BrandCity string + BrandId int64 + BrandLogo string + BrandName string + CreateTime time.Time + Id primitive.ObjectID + MemberIcon string + MemberId int64 + MemberNickname string + func FindByMemberIDAndBrandID(ctx context.Context, memberID, brandID int64) (*MemberBrandAttention, error) + func FindByMemberIDWithPagination(ctx context.Context, memberID int64, page, size int64) ([]*MemberBrandAttention, int64, error) + func NewModel() *MemberBrandAttention + func (m *MemberBrandAttention) Insert(ctx context.Context) (*mongo.InsertOneResult, error)