package main type Conf struct { Mongo MgoConf `json:"mongo"` Mongoq MgoConf `json:"mongoq"` Collection Collection `json:"collection"` //需要导出的所有数据表 Field map[string]FieldM `json:"field"` //需要导出的数据表字段信息 Company string `json:"company"` //企业名称的配置文件 Outdir string `json:"outdir"` //导出数据目录 Readfile ReadConf `json:"readfile"` Env EnvConf } type MgoConf struct { Host string Username string Password string Coll string DB string Size int } type ReadConf struct { Path string } //Collection 导出的数据表 type Collection struct { Out []string `json:"out"` } type FieldM struct { Name string Fields []string } type EnvConf struct { City int Proportion float64 Subl int Invesl int Psubl int Pinvesl int Compare int Savecoll string }