1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package config
var ExtConfig Extend
// Extend 扩展配置
// extend:
// demo:
// name: demo-name
// 使用方法: config.ExtConfig......即可!!
type Extend struct {
AMap AMap // 这里配置对应配置文件的结构即可
Aliyunoss Aliyunoss
Upload Upload
Sms Sms
}
type AMap struct {
Key string
}
type Aliyunoss struct {
Accessid string
Accesskey string
Endpoint string
Bucket string
Uploaddir string
}
type Upload struct {
Dir string
Maxfilesize int
Imagetypes string
Sacceptfiletypes string
}
type Sms struct {
Smsname string
Smspwd string
Epid string
Sign string
Ip string
Url string
Source int
Sourcename string
}