系统配置重构,支持后台管理页面配置

This commit is contained in:
RockYang
2025-08-20 10:47:17 +08:00
parent 6242f648f1
commit 0956bef9db
19 changed files with 2107 additions and 138 deletions

View File

@@ -1,5 +1,7 @@
package service
import logger2 "geekai/logger"
const FailTaskProgress = 101
const (
TaskStatusRunning = "RUNNING"
@@ -15,6 +17,8 @@ type NotifyMessage struct {
Type string `json:"type"`
}
var logger = logger2.GetLogger()
const TranslatePromptTemplate = "Translate the following painting prompt words into English keyword phrases. Without any explanation, directly output the keyword phrases separated by commas. The content to be translated is: [%s]"
const ImagePromptOptimizeTemplate = `