oms_cart_item

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder() *omsCartItemQueryBuilder

Types

type OmsCartItem

type OmsCartItem struct {
	Id                int64     //
	ProductId         int64     //
	ProductSkuId      int64     //
	MemberId          int64     //
	Quantity          int32     // 购买数量
	Price             float64   // 添加到购物车的价格
	ProductPic        string    // 商品主图
	ProductName       string    // 商品名称
	ProductSubTitle   string    // 商品副标题(卖点)
	ProductSkuCode    string    // 商品sku条码
	MemberNickname    string    // 会员昵称
	CreateDate        time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` // 创建时间
	ModifyDate        time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` // 修改时间
	DeleteStatus      int32     // 是否删除
	ProductCategoryId int64     // 商品分类
	ProductBrand      string    //
	ProductSn         string    //
	ProductAttr       string    // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]
}

OmsCartItem 购物车表

func NewModel

func NewModel() *OmsCartItem

func (*OmsCartItem) Create

func (t *OmsCartItem) Create(db *gorm.DB) (id int64, err error)

Jump to

Keyboard shortcuts

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