fusenapi/model/gmodel/fs_qrcode_user_gen.go

22 lines
650 B
Go
Raw Permalink Normal View History

2023-06-19 01:53:35 +00:00
package gmodel
2023-06-16 11:04:13 +00:00
import (
"gorm.io/gorm"
)
// fs_qrcode_user 二维码-用户名表
type FsQrcodeUser struct {
2023-06-19 10:27:31 +00:00
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
Name *string `gorm:"index;default:'';" json:"name"` // 用户名
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0删除
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
2023-06-16 11:04:13 +00:00
}
type FsQrcodeUserModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsQrcodeUserModel(db *gorm.DB) *FsQrcodeUserModel {
return &FsQrcodeUserModel{db: db, name: "fs_qrcode_user"}
}