2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_cloud_render_log 云渲染日志表
|
|
|
|
type FsCloudRenderLog struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
|
|
|
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
|
|
|
PostData *string `gorm:"default:'';" json:"post_data"` //
|
|
|
|
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
|
|
|
Title *string `gorm:"index;default:'';" json:"title"` //
|
|
|
|
Time *int64 `gorm:"default:0;" json:"time"` // 所用时间
|
|
|
|
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
|
|
|
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsCloudRenderLogModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsCloudRenderLogModel(db *gorm.DB) *FsCloudRenderLogModel {
|
|
|
|
return &FsCloudRenderLogModel{db: db, name: "fs_cloud_render_log"}
|
|
|
|
}
|