mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-04 21:27:39 +08:00
28 lines
624 B
Go
28 lines
624 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type MidJourneyJob struct {
|
|
Id uint `gorm:"primarykey;column:id"`
|
|
Type string
|
|
UserId int
|
|
TaskId string
|
|
ChannelId string
|
|
MessageId string
|
|
ReferenceId string
|
|
ImgURL string
|
|
OrgURL string // 原图地址
|
|
Hash string // message hash
|
|
Progress int
|
|
Prompt string
|
|
UseProxy bool // 是否使用反代加载图片
|
|
Publish bool //是否发布图片到画廊
|
|
ErrMsg string // 报错信息
|
|
Power int // 消耗算力
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
func (MidJourneyJob) TableName() string {
|
|
return "chatgpt_mj_jobs"
|
|
}
|