Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogsModel ¶
type GoogsModel struct { ID int64 `gorm:"column:id"` GoodsID string `gorm:"column:goods_id"` SellerID string `gorm:"column:seller_id"` GoodsName string `gorm:"column:goods_name"` Price float64 `gorm:"column:price"` Category uint32 `gorm:"column:category"` Stock int32 `gorm:"column:stock"` Brand string `gorm:"column:brand"` Remark string `gorm:"column:remark"` CreateTime time.Time `gorm:"column:create_time;-"` UpdateTime time.Time `gorm:"column:update_time;-"` IsDelete uint8 `gorm:"column:is_delete"` }
func GetGoodsListByCategory ¶
func GetGoodsListByCategory(db *gorm.DB, category string) ([]*GoogsModel, error)
func (GoogsModel) TableName ¶
func (m GoogsModel) TableName() string
type PurchaseRecordModel ¶
type PurchaseRecordModel struct { ID int64 `gorm:"column:id"` GoodsID string `gorm:"column:goods_id"` OrderID string `gorm:"column:order_id"` PayID string `gorm:"column:pay_id"` Remark string `gorm:"column:remark"` CreateTime time.Time `gorm:"column:create_time;-"` UpdateTime time.Time `gorm:"column:update_time;-"` IsDelete uint8 `gorm:"column:is_delete"` }
func (PurchaseRecordModel) TableName ¶
func (m PurchaseRecordModel) TableName() string
Click to show internal directories.
Click to hide internal directories.