po

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CouponPO

type CouponPO struct {
	ID        string
	OrderID   string
	CouponID  string // 券ID
	Rule      string // 规则描述
	Discount  int64  // 折扣数
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `gorm:"index"`
}

func (*CouponPO) GetID

func (s *CouponPO) GetID() string

func (*CouponPO) TableName

func (s *CouponPO) TableName() string

type OrderPO

type OrderPO struct {
	ID          string
	User        string
	TotalAmount int64
	Remark      string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time `gorm:"index"`
}

func (*OrderPO) After

func (s *OrderPO) After(tx *gorm.DB) (err error)

func (*OrderPO) GetID

func (s *OrderPO) GetID() string

func (*OrderPO) TableName

func (s *OrderPO) TableName() string

type SaleItemPO

type SaleItemPO struct {
	ID        string
	OrderID   string
	Code      string // 编码
	Name      string // 商品名
	Price     int64  // 价格
	Count     int32  // 数量
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `gorm:"index"`
}

func (*SaleItemPO) GetID

func (s *SaleItemPO) GetID() string

func (*SaleItemPO) TableName

func (s *SaleItemPO) TableName() string

Jump to

Keyboard shortcuts

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