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 05:23:49 +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删除
|
|
|
|
|
CreatedAt *time.Time `gorm:"index;default:'0000-00-00 00:00:00';" json:"created_at"` //
|
|
|
|
|
UpdatedAt *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"updated_at"` //
|
|
|
|
|
IsOpenRender *int64 `gorm:"default:0;" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
|
|
|
|
IsThousandFace *int64 `gorm:"default:0;" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
|
|
|
|
IsLowRendering *int64 `gorm:"default:0;" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
|
|
|
|
IsRemoveBg *int64 `gorm:"default:1;" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
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"} }
|