2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
2023-09-26 05:23:49 +00:00
|
|
|
"time"
|
2023-06-16 11:04:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// fs_guest 游客表
|
|
|
|
type FsGuest struct {
|
2023-09-26 09:16:10 +00:00
|
|
|
GuestId int64 `gorm:"primary_key;default:0;auto_increment;" json:"guest_id"` // ID
|
|
|
|
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
|
|
|
|
Status *int64 `gorm:"index;default:1;" json:"status"` // 1正常 0不正常
|
|
|
|
IsDel *int64 `gorm:"index;default:0;" json:"is_del"` // 是否删除 1删除
|
|
|
|
Ctime *time.Time `gorm:"index;default:'0000-00-00 00:00:00';" json:"ctime"` //
|
|
|
|
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsGuestModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsGuestModel(db *gorm.DB) *FsGuestModel { return &FsGuestModel{db: db, name: "fs_guest"} }
|