history

package
v0.0.0-...-1f6533e Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowseHistory

type BrowseHistory struct {
	gorm.Model
	UserId     int64  `json:"user_id"      gorm:"column:user_id;type:int(11);comment:用户ID"`
	GoodsId    int64  `json:"goods_id"     gorm:"column:goods_id;type:int(11);comment:商品id"`
	Title      string `json:"title"        gorm:"column:title;type:varchar(30);comment:商品名称"`
	Price      string `json:"price"        gorm:"column:price;type:decimal(10,2);comment:商品价格"`
	Cover      string `json:"cover"        gorm:"column:cover;type:varchar(255);comment:商品图片"`
	BrowseDate string `json:"browse_date"  gorm:"column:browse_date;type:varchar(255);comment:浏览日期"`
}

BrowseHistory 浏览记录表

func NewHistory

func NewHistory() *BrowseHistory

func (*BrowseHistory) CreateHistory

func (b *BrowseHistory) CreateHistory(ctx context.Context, in *BrowseHistory) (*BrowseHistory, error)

Jump to

Keyboard shortcuts

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