Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Collection = mongodb.DB().Connection().Collection("memberBrandAttention")
Functions ¶
func DeleteAllByMemberID ¶
DeleteAllByMemberID 根据会员ID删除记录
Types ¶
type MemberBrandAttention ¶
type MemberBrandAttention struct { Id primitive.ObjectID `bson:"_id,omitempty"` MemberId int64 `bson:"memberId"` MemberNickname string `bson:"memberNickname"` MemberIcon string `bson:"memberIcon"` BrandId int64 `bson:"brandId"` BrandName string `bson:"brandName"` BrandLogo string `bson:"brandLogo"` BrandCity string `bson:"brandCity"` CreateTime time.Time `bson:"createTime"` }
MemberBrandAttention 会员品牌关注
func FindByMemberIDAndBrandID ¶
func FindByMemberIDAndBrandID(ctx context.Context, memberID, brandID int64) ( *MemberBrandAttention, error)
FindByMemberIDAndBrandID 根据会员ID和品牌ID查找记录
func FindByMemberIDWithPagination ¶
func FindByMemberIDWithPagination(ctx context.Context, memberID int64, page, size int64) ( []*MemberBrandAttention, int64, error)
FindByMemberIDWithPagination 根据会员ID分页查找记录
func NewModel ¶
func NewModel() *MemberBrandAttention
func (*MemberBrandAttention) Insert ¶
func (m *MemberBrandAttention) Insert(ctx context.Context) (*mongo.InsertOneResult, error)
Click to show internal directories.
Click to hide internal directories.