| | |
| | | |
| | | type conf struct { |
| | | PhotoUrl string `yaml:"photoUrl"` |
| | | Videopersons string `yaml:"videopersons"` |
| | | Personaction string `yaml:"personaction"` |
| | | Serverip string `yaml:"serverIp"` |
| | | Serverport string `yaml:"serverPort"` |
| | | Dbtablepersons string `yaml:"dbTablePersons"` |
| | | VideoPersons string `yaml:"videoPersons"` |
| | | PersonAction string `yaml:"personAction"` |
| | | ServerIp string `yaml:"serverIp"` |
| | | ServerPort string `yaml:"serverPort"` |
| | | DbTablePersons string `yaml:"dbTablePersons"` |
| | | } |
| | | |
| | | func init() { |
| | |
| | | //把yaml形式的字符串解析成struct类型 |
| | | yaml.Unmarshal(data, &c) |
| | | weedfsUrl = c.PhotoUrl |
| | | videoPersonUrl = c.Videopersons |
| | | personAction = c.Personaction |
| | | videoPersonUrl = c.VideoPersons |
| | | personAction = c.PersonAction |
| | | } |
| | | |
| | | // 人脸的数据结构 |