fusenapi/model/gmodel/fs_qrcode_gen.go
2023-11-03 17:09:05 +08:00

25 lines
1.0 KiB
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_qrcode
type FsQrcode struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
Title *string `gorm:"default:'';" json:"title"` // 名称
TagId *int64 `gorm:"index;default:0;" json:"tag_id"` // 用户id
ScanTimes *int64 `gorm:"default:0;" json:"scan_times"` // 扫码次数
CreateAt *int64 `gorm:"default:0;" json:"create_at"` // 添加时间
Link *string `gorm:"default:'';" json:"link"` //
SvgPath *string `gorm:"default:'';" json:"svg_path"` // svg地址
Status *int64 `gorm:"default:1;" json:"status"` // 状态1:正常 0下架
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 0
}
type FsQrcodeModel struct {
db *gorm.DB
name string
}
func NewFsQrcodeModel(db *gorm.DB) *FsQrcodeModel { return &FsQrcodeModel{db: db, name: "fs_qrcode"} }