model

package
v0.0.0-...-9d05754 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-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 GoogsModel

type GoogsModel struct {
	ID         int64     `gorm:"column:id"`
	GoodsID    string    `gorm:"column:goods_id"`
	SellerID   string    `gorm:"column:seller_id"`
	GoodsName  string    `gorm:"column:goods_name"`
	Price      float64   `gorm:"column:price"`
	Category   uint32    `gorm:"column:category"`
	Stock      int32     `gorm:"column:stock"`
	Brand      string    `gorm:"column:brand"`
	Remark     string    `gorm:"column:remark"`
	CreateTime time.Time `gorm:"column:create_time;-"`
	UpdateTime time.Time `gorm:"column:update_time;-"`
	IsDelete   uint8     `gorm:"column:is_delete"`
}

func GetGoodsListByCategory

func GetGoodsListByCategory(db *gorm.DB, category string) ([]*GoogsModel, error)

func (GoogsModel) TableName

func (m GoogsModel) TableName() string

type PurchaseRecordModel

type PurchaseRecordModel struct {
	ID         int64     `gorm:"column:id"`
	GoodsID    string    `gorm:"column:goods_id"`
	OrderID    string    `gorm:"column:order_id"`
	PayID      string    `gorm:"column:pay_id"`
	Remark     string    `gorm:"column:remark"`
	CreateTime time.Time `gorm:"column:create_time;-"`
	UpdateTime time.Time `gorm:"column:update_time;-"`
	IsDelete   uint8     `gorm:"column:is_delete"`
}

func (PurchaseRecordModel) TableName

func (m PurchaseRecordModel) TableName() string

Jump to

Keyboard shortcuts

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