2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_qrcode_log 二维码扫描日志
|
|
|
|
type FsQrcodeLog struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
|
|
|
Title *string `gorm:"default:'';" json:"title"` // 二维码名称
|
|
|
|
QrcodeId *int64 `gorm:"default:0;" json:"qrcode_id"` // 二维码ID
|
|
|
|
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 分组ID
|
|
|
|
CreateAt *int64 `gorm:"default:0;" json:"create_at"` // 创建时间
|
2023-08-18 03:41:36 +00:00
|
|
|
Platform *string `gorm:"default:'';" json:"platform"` // 系统信息
|
|
|
|
UserAgent *string `gorm:"default:'';" json:"user_agent"` // 浏览器
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsQrcodeLogModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsQrcodeLogModel(db *gorm.DB) *FsQrcodeLogModel {
|
|
|
|
return &FsQrcodeLogModel{db: db, name: "fs_qrcode_log"}
|
|
|
|
}
|