package config

type BlockChain struct {
	MainHost string `mapstructure:"main-host" json:"main-host" yaml:"main-host"` // 主链节点
	Priv     string `mapstructure:"priv" json:"priv" yaml:"priv"`
	Address     string `mapstructure:"address" json:"address" yaml:"address"`
	ActionPriv string `mapstructure:"action-priv" json:"action_priv" yaml:"action-priv"`
	ActionAddress string `mapstructure:"action-address" json:"action_address" yaml:"action-address"`
	RewardPriv string `mapstructure:"reward-priv" json:"reward_priv" yaml:"reward-priv"`
	RewardAddress string `mapstructure:"reward-address" json:"reward_address" yaml:"reward-address"`
}

type Recaptcha struct {
	Url string `mapstructure:"url" json:"url" yaml:"url"`
	Key string `mapstructure:"key" json:"key" yaml:"key"`
}

type VoiceServer struct {
	AppId string `mapstructure:"appId" json:"url" yaml:"appId"`
	ApiSecret string `mapstructure:"apiSecret" json:"api_secret" yaml:"apiSecret"`
	ApiKey string `mapstructure:"apiKey" json:"api_key" yaml:"apiKey"`
}

type Twitter struct {
	ApiSecret string `mapstructure:"api-secret" json:"api-secret" yaml:"api-secret"`
	ApiKey string `mapstructure:"api-key" json:"api-key" yaml:"api-key"`
	AccessToken string `mapstructure:"access-token" json:"access-token" yaml:"access-token"`
	AccessSecret string `mapstructure:"access-secret" json:"access-secret" yaml:"access-secret"`
	BearerToken string `mapstructure:"bearer-token" json:"bearer-token" yaml:"bearer-token"`
	ExpiresTime string `mapstructure:"expires-time" json:"expires-time" yaml:"expires-time"` // 过期时间
	TwitterId string `mapstructure:"twitter-id" json:"twitter-id" yaml:"twitter-id"`
}

type Telegram struct {
	ApiId string `mapstructure:"api-id" json:"api-id" yaml:"api-id"`
	ApiHash string `mapstructure:"api-hash" json:"api-hash" yaml:"api-hash"`
	Robot string `mapstructure:"robot" json:"robot" yaml:"robot"`
}