mysql

package
v0.0.0-...-ccdcda8 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommodityDB

func NewCommodityDB(client *gorm.DB) repository.CommodityDB

Types

type Category

type Category struct {
	Id        int64 `gorm:"primary_key"`
	Name      string
	CreatorId int64
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func (Category) TableName

func (Category) TableName() string

type Spu

type Spu struct {
	Id               int64 `gorm:"primary_key"`
	Name             string
	CreatorId        int64
	Description      string
	CategoryId       int64
	GoodsHeadDrawing string
	Price            float64
	ForSale          int
	Shipping         float64
	CreatedAt        time.Time
	UpdatedAt        time.Time
	DeletedAt        gorm.DeletedAt `gorm:"index"`
}

func (*Spu) TableName

func (spu *Spu) TableName() string

type SpuImage

type SpuImage struct {
	Id        int64 `gorm:"primary_key"`
	Url       string
	SpuId     int64
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func (*SpuImage) TableName

func (spu *SpuImage) TableName() string

type SpuToSku

type SpuToSku struct {
	SkuId     int64
	SpuId     int64
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func (*SpuToSku) TableName

func (s *SpuToSku) TableName() string

Jump to

Keyboard shortcuts

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