package
Version:
v0.0.0-...-9c0293a
Opens a new window with list of versions in this module.
Published: Aug 11, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 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:'虚拟货币数'"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.