feat: refactor MidJourney service for conpatible drawing in chat and draw in app

This commit is contained in:
RockYang
2023-09-12 18:01:24 +08:00
parent 036a6e3e41
commit fa341bab30
12 changed files with 467 additions and 262 deletions

View File

@@ -4,14 +4,13 @@ import "time"
type MidJourneyJob struct {
Id uint `gorm:"primarykey;column:id"`
UserId uint
ChatId string
UserId int
MessageId string
ReferenceId string
Hash string
Content string
ImgURL string
Hash string // message hash
Progress int
Prompt string
Image string
CreatedAt time.Time
}