• haoyanbin's avatar
    1 · c65e78f1
    haoyanbin authored
    c65e78f1
extend.go 561 Bytes
package config

var ExtConfig Extend

// Extend 扩展配置
//  extend:
//    demo:
//      name: demo-name
// 使用方法: config.ExtConfig......即可!!
type Extend struct {
	AMap      AMap // 这里配置对应配置文件的结构即可
	Aliyunoss Aliyunoss
	Upload    Upload
}

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
}