fusenapi/model/gmodel/fs_product_option_gen.go

25 lines
953 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package gmodel
import (
"gorm.io/gorm"
)
// fs_product_option 产品选项表(已废弃)
type FsProductOption struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
Title *string `gorm:"default:'';" json:"title"` // 名称
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品id
Price *int64 `gorm:"default:0;" json:"price"` // 产品单价
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
Status *int64 `gorm:"default:0;" json:"status"` // 状态值0:禁用1:启用)
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
}
type FsProductOptionModel struct {
db *gorm.DB
name string
}
func NewFsProductOptionModel(db *gorm.DB) *FsProductOptionModel {
return &FsProductOptionModel{db: db, name: "fs_product_option"}
}