Workin service

This commit is contained in:
mr
2024-07-24 10:25:08 +02:00
parent 6b34be6508
commit c9410552a2
16 changed files with 1235 additions and 285 deletions

View File

@@ -5,3 +5,6 @@ autorender = false
copyrequestbody = true
EnableDocs = true
sqlconn =
MONGO_URL = "mongodb://127.0.0.1:27017/beego-demo"
MONGO_DATABASE = "DC_myDC-demo_06042021"

View File

@@ -1,19 +0,0 @@
package conf
import "sync"
type Config struct {
MongoUrl string
MongoLogin string
MongoPassword string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}