feat: add implements for stable diffusion service

This commit is contained in:
RockYang
2023-09-26 18:16:51 +08:00
parent db0a79da93
commit c86169022a
8 changed files with 569 additions and 62 deletions

20
api/store/model/sd_job.go Normal file
View File

@@ -0,0 +1,20 @@
package model
import "time"
type SdJob struct {
Id uint `gorm:"primarykey;column:id"`
Type string
UserId int
TaskId string
ImgURL string
Progress int
Prompt string
Params string
Started bool
CreatedAt time.Time
}
func (SdJob) TableName() string {
return "chatgpt_sd_jobs"
}