sku

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTableName string = "sku"
)

Variables

This section is empty.

Functions

func TableName

func TableName(model string) string

Types

type SKU

type SKU struct {
	ID             int64  `gorm:"column:id;primaryKey" json:"-"`
	SkuId          string `gorm:"column:sku_id" json:"-"`         //品牌ID
	BrandId        int64  `gorm:"column:brand_id" json:"-"`       //品牌ID
	PackageId      int64  `gorm:"column:package_id" json:"-"`     //品牌ID
	SkuImageId     int64  `gorm:"column:sku_image_id" json:"-"`   //品牌ID
	ManualFileId   int64  `gorm:"column:manual_file_id" json:"-"` //品牌ID
	CategoryId     int64  `gorm:"column:category_id" json:"-"`    //状态
	ModelName      string `gorm:"column:model_name" json:"-"`     //品牌别名
	Specifications string `gorm:"column:specifications" json:"-"` //品牌别名
	Description    string `gorm:"column:description" json:"-"`    //品牌别名
	CreatedAt      string `gorm:"column:created_at" json:"-"`     //更新时间
	UpdatedAt      string `gorm:"column:updated_at" json:"-"`     //更新时间
	DeletedAt      string `gorm:"column:deleted_at" json:"-"`     //删除时间
}

func GetSkuByModelBrand

func GetSkuByModelBrand(name string, brand int64) (obj *SKU, err error)

func (*SKU) TableName

func (p *SKU) TableName() string

Jump to

Keyboard shortcuts

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