feat: add err_msg field for mj and sd jobs

This commit is contained in:
RockYang
2024-01-26 14:50:36 +08:00
parent 399cf65fc9
commit 6bd6bb3885
12 changed files with 50 additions and 16 deletions

View File

@@ -15,8 +15,9 @@ type MidJourneyJob struct {
Hash string // message hash
Progress int
Prompt string
UseProxy bool // 是否使用反代加载图片
Publish bool //是否发布图片到画廊
UseProxy bool // 是否使用反代加载图片
Publish bool //是否发布图片到画廊
ErrMsg string // 报错信息
CreatedAt time.Time
}

View File

@@ -11,7 +11,8 @@ type SdJob struct {
Progress int
Prompt string
Params string
Publish bool //是否发布图片到画廊
Publish bool //是否发布图片到画廊
ErrMsg string // 报错信息
CreatedAt time.Time
}

View File

@@ -17,5 +17,6 @@ type MidJourneyJob struct {
Prompt string `json:"prompt"`
UseProxy bool `json:"use_proxy"`
Publish bool `json:"publish"`
ErrMsg string `json:"err_msg"`
CreatedAt time.Time `json:"created_at"`
}

View File

@@ -15,5 +15,6 @@ type SdJob struct {
Progress int `json:"progress"`
Prompt string `json:"prompt"`
Publish bool `json:"publish"`
ErrMsg string `json:"err_msg"`
CreatedAt time.Time `json:"created_at"`
}