對齊
This commit is contained in:
		@@ -6,17 +6,17 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Model struct {
 | 
			
		||||
	ID           int      `json:"id"`
 | 
			
		||||
	Name         string   `json:"name"`
 | 
			
		||||
	Type         string   `json:"type"`          // (lora|ckp|hyper|ti)
 | 
			
		||||
	TriggerWords string   `json:"trigger_words"` // 觸發詞
 | 
			
		||||
	BaseModel    string   `json:"base_model"`    // (SD1.5|SD2)
 | 
			
		||||
	ModelPath    string   `json:"model_path"`    // 模型路徑
 | 
			
		||||
	Status       string   `json:"status"`        // (waiting|running|success|error)
 | 
			
		||||
	Progress     int      `json:"progress"`      // (0-100)
 | 
			
		||||
	Tags         []string `json:"tags"`
 | 
			
		||||
	CreatedAt    string   `json:"created_at"`
 | 
			
		||||
	UpdatedAt    string   `json:"updated_at"`
 | 
			
		||||
	ID           int    `json:"id"`
 | 
			
		||||
	Name         string `json:"name"`
 | 
			
		||||
	Type         string `json:"type"`          // (lora|ckp|hyper|ti)
 | 
			
		||||
	TriggerWords string `json:"trigger_words"` // 觸發詞
 | 
			
		||||
	BaseModel    string `json:"base_model"`    // (SD1.5|SD2)
 | 
			
		||||
	ModelPath    string `json:"model_path"`    // 模型路徑
 | 
			
		||||
	Status       string `json:"status"`        // (waiting|running|success|error)
 | 
			
		||||
	Progress     int    `json:"progress"`      // (0-100)
 | 
			
		||||
	Tags         string `json:"tags"`
 | 
			
		||||
	CreatedAt    string `json:"created_at"`
 | 
			
		||||
	UpdatedAt    string `json:"updated_at"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (model *Model) Create() error {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user