entity

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

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sku

type Sku struct {
	*gorm.Model
	SkuID   uint64 `gorm:" uniqueIndex;bigint(64);not null;comment:'全局自增唯一ID'"`
	SkuName uint64 `gorm:" varchar(128);default 'sku-dft';comment:'商品名称'"`
	Img     string `gorm:" varchar(256);not null;comment:'商品主图'"`
}

type Spu

type Spu struct {
	*gorm.Model
	SpuID uint64 `gorm:" uniqueIndex;bigint(64);not null;comment:'全局自增唯一ID'"`
	SkuID uint64 `gorm:" bigint(64);not null;comment:'skuID'"`
	Price uint64 `gorm:" bigint(32);not null;comment:'价格,单位分'"`
	Fund  uint64 `gorm:" bigint(32);not null;comment:'虚拟货币数'"`
}

Jump to

Keyboard shortcuts

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