Files
rss-to-feishu-next/internal/config/types.go
2026-01-19 02:10:24 -06:00

25 lines
582 B
Go

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"`
}