Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SettingsService ¶
type SettingsService interface {
GetSettings() (*model.Settings, error)
SaveSettings(s *model.Settings) error
SaveLanguage(language string) error
SaveTitleGenerationAgent(config *model.AgentRoleConfig) error
SaveGroupReplyAgent(config *model.AgentRoleConfig) error
SaveIMSessionAgent(agent *model.IMSessionAgentConfig) error
SaveACPEnvVars(agentID string, entries []model.ACPEnvVarEntry) (version int64, changed bool, err error)
StageACPEnvVars(agentID string, entries []model.ACPEnvVarEntry) (int64, error)
RestoreACPEnvState(agentID string, expectedVersion int64, entries []model.ACPEnvVarEntry, version int64) error
SaveAgentPrefs(agentID string, prefs model.AgentPrefs) error
ClearAgentSettings(agentID string) error
GetACPEnvVars(agentType string) map[string]string
GetACPEnvVersion(agentType string) int64
GetLarkConfig() (appID, appSecret string)
GetLarkIMSenderIDs() (adminSenderID, sophiaSenderID string)
GetIMConfig() (workspaceID string, agent *model.IMSessionAgentConfig)
GetGroupReplyAgent() *model.AgentRoleConfig
// WeChat admin whitelist — populated via scan-to-login + first-contact
// approval (see doc_wechat_integration.md §5.1). WeChat does not have a
// bot identity concept comparable to Lark's sophia_sender_id, so there
// is no matching "GetWeChatBotID" method — group chats are unsupported
// in WeChat anyway (iLink bot_type=3 is P2P only).
GetWeChatAdminIDs() []string
AddWeChatAdminID(id string) error
RemoveWeChatAdminID(id string) error
}
func NewSettingsService ¶
func NewSettingsService() (SettingsService, error)
Click to show internal directories.
Click to hide internal directories.