Ethan 1 өдөр өмнө
parent
commit
258b877dc4

+ 3 - 2
.idea/workspace.xml

@@ -4,7 +4,7 @@
     <option name="autoReloadType" value="ALL" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="f4dc82b3-ff8e-4683-8d94-679b27583f09" name="Changes" comment="GO环境配置">
+    <list default="true" id="f4dc82b3-ff8e-4683-8d94-679b27583f09" name="Changes" comment="清理依赖">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -104,7 +104,8 @@
   </component>
   <component name="VcsManagerConfiguration">
     <MESSAGE value="GO环境配置" />
-    <option name="LAST_COMMIT_MESSAGE" value="GO环境配置" />
+    <MESSAGE value="清理依赖" />
+    <option name="LAST_COMMIT_MESSAGE" value="清理依赖" />
   </component>
   <component name="VgoProject">
     <environment>

+ 2 - 0
config/init.go

@@ -4,6 +4,7 @@ import (
 	"fmt"
 	"io/ioutil"
 	"os"
+	"youngee_m_api/app/dao"
 	"youngee_m_api/db"
 	"youngee_m_api/model/system_model"
 	"youngee_m_api/redis"
@@ -32,6 +33,7 @@ func Init() *system_model.Server {
 
 func loadExternelConfig(config *system_model.Config) {
 	db.Init(config.Mysql)
+	dao.Init(config.Mysql)
 	redis.Init(config.Redis)
 	service.LoginAuthInit(config.Server.Session)
 	service.SendCodeInit(config.Server.Session)

+ 5 - 4
config/pro.yaml

@@ -1,12 +1,13 @@
 mysql:
-  host: 192.168.0.165
+  host: 1.92.142.62
   port: 3306
-  user: test
-  password: testDB_123
+  user: root
+  password: Younggee_root_DB_123
   database: youngmini
 
+
 redis:
-  host: 139.9.53.143
+  host: 1.92.142.62
   port: 6379
   auth: younggeeRedis_123
   database: 1