From 11f89d0dae223d22786a0332d22a866b29420cdd Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Fri, 19 May 2017 21:55:40 +1000 Subject: [PATCH] start to move CRM configurations into files. --- config.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config.go b/config.go index f9bb602..ac7d9d6 100644 --- a/config.go +++ b/config.go @@ -32,6 +32,22 @@ type WechatAPIConfig struct { //APIConfig contains secrets that cannot store in source file var APIConfig WechatAPIConfig +type EspoCRMAPIConfig struct { + + //where the EspoCRM is installed + BaseURL string `json:"BaseURL"` + + //access UserName + UserName string `json:"UserName"` + + //access Password + UserPass string `json:"password"` +} + +//CRMConfig contains secrets that cannot store in source file +// +var CRMConfig EspoCRMAPIConfig + func readConfig() error { log.Printf("read config from %s\r\n", "server_config.json")