extend.go 746 Bytes
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4 5 6 7 8 9 10
package config

var ExtConfig Extend

// Extend 扩展配置
//  extend:
//    demo:
//      name: demo-name
// 使用方法: config.ExtConfig......即可!!
type Extend struct {
haoyanbin's avatar
1  
haoyanbin committed
11 12 13
	AMap      AMap // 这里配置对应配置文件的结构即可
	Aliyunoss Aliyunoss
	Upload    Upload
haoyanbin's avatar
haoyanbin committed
14
	Sms       Sms
haoyanbin's avatar
1  
haoyanbin committed
15 16 17 18 19
}

type AMap struct {
	Key string
}
haoyanbin's avatar
1  
haoyanbin committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33

type Aliyunoss struct {
	Accessid  string
	Accesskey string
	Endpoint  string
	Bucket    string
	Uploaddir string
}
type Upload struct {
	Dir              string
	Maxfilesize      int
	Imagetypes       string
	Sacceptfiletypes string
}
haoyanbin's avatar
haoyanbin committed
34 35 36 37 38 39 40 41 42 43 44

type Sms struct {
	Smsname    string
	Smspwd     string
	Epid       string
	Sign       string
	Ip         string
	Url        string
	Source     int
	Sourcename string
}