feat: migrate codes from previous project

This commit is contained in:
ECSS 11
2026-01-19 02:10:24 -06:00
parent 00c0f457c5
commit 724fe14c0e
15 changed files with 420 additions and 10 deletions

24
internal/config/types.go Normal file
View File

@@ -0,0 +1,24 @@
package config
type Config struct {
Subscribes []Subscribe `mapstructure:"subscribes"`
Feishu Feishu `mapstructure:"feishu"`
Silicon Silicon `mapstructure:"silicon"`
}
type Subscribe struct {
Name string `mapstructure:"name"`
Url string `mapstructure:"url"`
Prompt string `mapstructure:"prompt"`
Model string `mapstructure:"model"`
}
type Feishu struct {
AppID string `mapstructure:"app_id"`
AppSecret string `mapstructure:"app_secret"`
ChatID string `mapstructure:"chat_id"`
}
type Silicon struct {
Token string `mapstructure:"token"`
}