MallRecommend

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//OpenSub 是否启动订阅
	OpenSub = false
)

Functions

func GetRecommendDefaultList

func GetRecommendDefaultList(orgID int64, userID int64, noHaveProductID int64, limit int) (dataList []MallCore.FieldsCore, err error)

GetRecommendDefaultList 获取某个用户在某个商户下的推荐商品列 本方法会从列队中提取数据,且排除要排除掉的商品ID 满足条件后反馈数据,如果数据不足的,将用销量倒叙投放数据

func Init

func Init()

Init 初始化

Types

type FieldsTag

type FieldsTag struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//标签
	TagName string `db:"tag_name" json:"tagName"`
	//商品ID
	ProductID int64 `db:"product_id" json:"productID"`
}

FieldsTag 按照标签划分的推荐列

type FieldsUser

type FieldsUser struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//商品ID
	ProductID int64 `db:"product_id" json:"productID"`
}

FieldsUser 等待投放的列队,每个用户都存在差异性 此表用于基础推荐商品列结构

Jump to

Keyboard shortcuts

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