member_brand_attention

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Collection = mongodb.DB().Connection().Collection("memberBrandAttention")

Functions

func DeleteAllByMemberID

func DeleteAllByMemberID(ctx context.Context, memberID int64) (int64, error)

DeleteAllByMemberID 根据会员ID删除记录

func DeleteByMemberIDAndBrandID

func DeleteByMemberIDAndBrandID(ctx context.Context, memberID, brandID int64) (int64, error)

DeleteByMemberIDAndBrandID 根据会员ID和品牌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"`
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL