fusenapi/model/gmodel_gen/fs_qrcode_gen.go
2023-06-19 10:12:58 +08:00

22 lines
876 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_qrcode
type FsQrcode struct {
Id int64 `gorm:"primary_key;default:0;" 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:"index;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 }
func NewFsQrcodeModel(db *gorm.DB) *FsQrcodeModel { return &FsQrcodeModel{db} }