通过list建立websocket
This commit is contained in:
@@ -16,27 +16,27 @@ import (
|
||||
)
|
||||
|
||||
type Image struct {
|
||||
ID int `json:"id" gorm:"primary_key"`
|
||||
Name string `json:"name"`
|
||||
Hash string `json:"hash"`
|
||||
Path string `json:"path"`
|
||||
Type string `json:"type"`
|
||||
Size int `json:"size"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Prompt string `json:"prompt"`
|
||||
Format string `json:"format"`
|
||||
NegativePrompt string `json:"negative_prompt"`
|
||||
NumInferenceSteps int `json:"num_inference_steps"` // Number of inference steps (minimum: 1; maximum: 500)
|
||||
GuidanceScale float32 `json:"guidance_scale"` // Scale for classifier-free guidance (minimum: 1; maximum: 20)
|
||||
Scheduler string `json:"scheduler"` // (DDIM|K_EULER|DPMSolverMultistep|K_EULER_ANCESTRAL|PNDM|KLMS)
|
||||
Seed int `json:"seed"` // 随机种子(minimum: 0; maximum: 2147483647)
|
||||
FromImage int `json:"from_image"` // 来源图片(如果是从图片生成的, 则记录来源图片的ID)
|
||||
Task string `json:"task"` // 任务编号(uuid)
|
||||
Status string `json:"status"` // 任务状态(queued|running|finished|failed)
|
||||
Progress int `json:"progress"` // 任务进度(0-100)
|
||||
Public bool `json:"public"` // 是否公开
|
||||
UserID int `json:"user_id"` // 用户ID
|
||||
ID int `json:"id" gorm:"primary_key"` // ID
|
||||
Name string `json:"name"` // 名称
|
||||
Hash string `json:"hash"` // 哈希值
|
||||
Path string `json:"path"` // 路径
|
||||
Type string `json:"type"` // 类型
|
||||
Size int `json:"size"` // 大小
|
||||
Width int `json:"width"` // 宽度
|
||||
Height int `json:"height"` // 高度
|
||||
Format string `json:"format"` // 格式
|
||||
Prompt string `json:"prompt"` // 提示词
|
||||
NegativePrompt string `json:"negative_prompt"` // 负向提示
|
||||
NumInferenceSteps int `json:"num_inference_steps"` // 推理步数(minimum: 1; maximum: 500)
|
||||
GuidanceScale float32 `json:"guidance_scale"` // 引导比例(minimum: 1; maximum: 20)
|
||||
Scheduler string `json:"scheduler"` // 调度器(DDIM|K_EULER|DPMSolverMultistep|K_EULER_ANCESTRAL|PNDM|KLMS)
|
||||
Seed int `json:"seed"` // 随机种子(minimum: 0; maximum: 2147483647)
|
||||
FromImage int `json:"from_image"` // 来源图片(如果是从图片生成的, 则记录来源图片的ID)
|
||||
Task string `json:"task"` // 任务编号(uuid)
|
||||
Status string `json:"status"` // 任务状态(queued|running|finished|failed)
|
||||
Progress int `json:"progress"` // 任务进度(0-100)
|
||||
Public bool `json:"public"` // 是否公开
|
||||
UserID int `json:"user_id"` // 用户ID
|
||||
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user