31 lines
753 B
Go
31 lines
753 B
Go
package config
|
|
|
|
var ExtConfig Extend
|
|
|
|
// Extend 扩展配置
|
|
//
|
|
// extend:
|
|
// demo:
|
|
// name: demo-name
|
|
//
|
|
// 使用方法: config.ExtConfig......即可!!
|
|
type Extend struct {
|
|
AMap AMap // 这里配置对应配置文件的结构即可
|
|
TrxGridUrl string
|
|
TronApiKey string `yaml:"tronApiKey"`
|
|
CliproxyUrl string //cliproxy服务地址
|
|
CliproxyApiUrl string //cliproxy api地址
|
|
DaisysmsUrl string //daisysms服务地址
|
|
SmsTextVerified SmsTextVerified `yaml:"smsTextVerified"` //短信验证服务配置
|
|
}
|
|
|
|
type SmsTextVerified struct {
|
|
Url string `yaml:"url"`
|
|
UserName string `yaml:"userName"`
|
|
ApiKey string `yaml:"apiKey"`
|
|
}
|
|
|
|
type AMap struct {
|
|
Key string
|
|
}
|