package model import "time" // 提示词定制模式:跟随平台模板 / 在模板后追加要求 / 完全改写。 const ( PromptModeInherit = "inherit" PromptModeAppend = "append" PromptModeRewrite = "rewrite" ) // PromptCustomization 用户对某个任务类型提示词的定制。 // 平台模板本身内置在 internal/prompts,只有定制需要落库;一个任务类型最多一条。 type PromptCustomization struct { ID string `gorm:"primaryKey;size:64" json:"id"` Operation string `gorm:"size:64;not null;uniqueIndex" json:"operation"` Mode string `gorm:"size:16;not null" json:"mode"` Content string `gorm:"type:text" json:"content"` // BaseTemplateVersion 定制时依据的平台模板版本,用于判断定制是否已落后于平台更新。 BaseTemplateVersion int `json:"baseTemplateVersion"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }