Ver Fonte

修改项目目录

hongze há 1 mês atrás
pai
commit
8ac9f9457e
79 ficheiros alterados com 185 adições e 187 exclusões
  1. 9 9
      controller/auth.go
  2. 5 5
      controller/eta_trial/questionnaire.go
  3. 5 5
      controller/eta_trial/user.go
  4. 7 7
      controller/index_data/jiayue_index.go
  5. 3 3
      controller/index_data/pcsg_index.go
  6. 11 11
      controller/index_data/zhongji_index.go
  7. 2 2
      controller/resp/base.go
  8. 4 4
      controller/xiangyu/auth.go
  9. 5 5
      controller/xiangyu/crm.go
  10. 4 4
      controller/xiangyu/index.go
  11. 2 2
      controller/xiangyu/user.go
  12. 3 3
      core/log.go
  13. 2 2
      core/run_server.go
  14. 2 2
      global/global.go
  15. 1 1
      go.mod
  16. 2 2
      init_serve/mysql.go
  17. 1 1
      init_serve/oracle_jy.go
  18. 2 2
      init_serve/redis.go
  19. 4 4
      init_serve/router.go
  20. 3 3
      init_serve/task.go
  21. 4 4
      logic/xiangyu/auth.go
  22. 4 4
      logic/xiangyu/crm.go
  23. 1 1
      logic/xiangyu/index.go
  24. 3 3
      logic/xiangyu/user.go
  25. 1 1
      main.go
  26. 4 4
      middleware/auth.go
  27. 4 4
      middleware/recover.go
  28. 3 3
      middleware/token.go
  29. 1 1
      models/crm/admin.go
  30. 1 1
      models/crm/eta_trial.go
  31. 1 1
      models/crm/eta_trial_active_record.go
  32. 1 1
      models/crm/eta_trial_login_duration_record.go
  33. 1 1
      models/crm/eta_trial_questionnaire.go
  34. 1 1
      models/crm/eta_trial_questionnaire_record.go
  35. 1 1
      models/crm/open_api_user.go
  36. 1 1
      models/crm/sys_department.go
  37. 1 1
      models/crm/sys_group.go
  38. 1 1
      models/crm/sys_role.go
  39. 1 1
      models/crm/sys_role_admin.go
  40. 1 1
      models/eta/admin.go
  41. 1 1
      models/eta/crm_config.go
  42. 1 1
      models/eta/sys_department.go
  43. 1 1
      models/eta/sys_group.go
  44. 1 1
      models/eta/sys_role.go
  45. 1 1
      models/eta/sys_session.go
  46. 1 1
      models/eta/sys_third_session.go
  47. 1 1
      models/eta/sys_user_login_record.go
  48. 1 1
      models/index/base.go
  49. 1 1
      models/index/business_sys_interaction_log.go
  50. 4 4
      models/index/edb_update_log.go
  51. 1 1
      models/jiayue/category.go
  52. 1 1
      models/jiayue/dict.go
  53. 2 2
      models/pcsg/bloomberg.go
  54. 1 1
      models/rddp/sys_session.go
  55. 1 1
      models/rddp/sys_user_login_record.go
  56. 1 1
      models/request/eta_trial/questionnaire.go
  57. 1 1
      models/response/index_data.go
  58. 2 2
      routers/auth.go
  59. 1 1
      routers/eta_trial.go
  60. 2 2
      routers/index_data.go
  61. 2 2
      routers/pcsg.go
  62. 2 2
      routers/xiangyu.go
  63. 2 2
      services/alarm_msg/alarm_msg.go
  64. 3 3
      services/binlog/binlog.go
  65. 3 3
      services/binlog/handler.go
  66. 2 2
      services/cache_queue.go
  67. 1 1
      services/company.go
  68. 3 3
      services/index_data/edb_update_log.go
  69. 5 5
      services/index_data/jiayue_platform.go
  70. 2 2
      services/index_data/pcsg_bloomberg.go
  71. 5 7
      services/index_data/zhongji_smm.go
  72. 3 3
      services/session.go
  73. 4 4
      services/sys_user_sync.go
  74. 1 1
      services/xiangyu/auth.go
  75. 1 1
      services/xiangyu/crm.go
  76. 1 1
      services/xiangyu/index.go
  77. 2 2
      services/xiangyu/user.go
  78. 3 3
      task/task.go
  79. 1 1
      utils/redis.go

+ 9 - 9
controller/auth.go

@@ -2,15 +2,15 @@ package controller
 
 import (
 	"encoding/base64"
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/crm"
-	"eta/eta_bridge/models/eta"
-	"eta/eta_bridge/models/rddp"
-	"eta/eta_bridge/models/request"
-	"eta/eta_bridge/models/response"
-	"eta/eta_bridge/services"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/crm"
+	"eta_gn/eta_bridge/models/eta"
+	"eta_gn/eta_bridge/models/rddp"
+	"eta_gn/eta_bridge/models/request"
+	"eta_gn/eta_bridge/models/response"
+	"eta_gn/eta_bridge/services"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"

+ 5 - 5
controller/eta_trial/questionnaire.go

@@ -1,11 +1,11 @@
 package eta_trial
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/crm"
-	etaTrialReq "eta/eta_bridge/models/request/eta_trial"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/crm"
+	etaTrialReq "eta_gn/eta_bridge/models/request/eta_trial"
+	"eta_gn/eta_bridge/utils"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"
 	"sort"

+ 5 - 5
controller/eta_trial/user.go

@@ -1,11 +1,11 @@
 package eta_trial
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/crm"
-	etaTrialReq "eta/eta_bridge/models/request/eta_trial"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/crm"
+	etaTrialReq "eta_gn/eta_bridge/models/request/eta_trial"
+	"eta_gn/eta_bridge/utils"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"
 	"time"

+ 7 - 7
controller/index_data/jiayue_index.go

@@ -2,13 +2,13 @@ package index_data
 
 import (
 	"bytes"
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/jiayue"
-	indexDataReq "eta/eta_bridge/models/request/index_data"
-	"eta/eta_bridge/models/response"
-	indexDataService "eta/eta_bridge/services/index_data"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/jiayue"
+	indexDataReq "eta_gn/eta_bridge/models/request/index_data"
+	"eta_gn/eta_bridge/models/response"
+	indexDataService "eta_gn/eta_bridge/services/index_data"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"

+ 3 - 3
controller/index_data/pcsg_index.go

@@ -1,9 +1,9 @@
 package index_data
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	indexDataService "eta/eta_bridge/services/index_data"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	indexDataService "eta_gn/eta_bridge/services/index_data"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"

+ 11 - 11
controller/index_data/zhongji_index.go

@@ -2,11 +2,11 @@ package index_data
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	indexDataReq "eta/eta_bridge/models/request/index_data"
-	"eta/eta_bridge/models/response"
-	indexDataService "eta/eta_bridge/services/index_data"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	indexDataReq "eta_gn/eta_bridge/models/request/index_data"
+	"eta_gn/eta_bridge/models/response"
+	indexDataService "eta_gn/eta_bridge/services/index_data"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"
@@ -39,13 +39,13 @@ func (j *ZhongjiIndexController) GetIndexList(c *gin.Context) {
 	}
 
 	token, err := indexDataService.GetSmmAccessToken(false)
-	if err!= nil {
+	if err != nil {
 		resp.FailData("获取token失败", err.Error(), c)
 		return
 	}
 
 	body, err := indexDataService.GetEdbDataListFromSmmHttp(req.Page, req.PageSize, token)
-	if err!= nil {
+	if err != nil {
 		resp.FailData("获取token失败", err.Error(), c)
 		return
 	}
@@ -80,13 +80,13 @@ func (j *ZhongjiIndexController) GetIndexData(c *gin.Context) {
 	}
 
 	token, err := indexDataService.GetSmmAccessToken(false)
-	if err!= nil {
+	if err != nil {
 		resp.FailData("获取token失败", err.Error(), c)
 		return
 	}
 
 	body, err := indexDataService.GetEdbDataFromSmmHttp(req.EdbCode, token)
-	if err!= nil {
+	if err != nil {
 		resp.FailData("获取token失败", err.Error(), c)
 		return
 	}
@@ -124,13 +124,13 @@ func (j *ZhongjiIndexController) GetIndexDataLatest(c *gin.Context) {
 	}
 
 	token, err := indexDataService.GetSmmAccessToken(false)
-	if err!= nil {
+	if err != nil {
 		resp.FailData("获取token失败", err.Error(), c)
 		return
 	}
 
 	body, err := indexDataService.GetEdbLatestDataFromSmmHttp(req.EdbCode, token, req.LastTime)
-	if err!= nil {
+	if err != nil {
 		resp.FailData("获取token失败", err.Error(), c)
 		return
 	}

+ 2 - 2
controller/resp/base.go

@@ -2,8 +2,8 @@ package resp
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"strings"

+ 4 - 4
controller/xiangyu/auth.go

@@ -1,10 +1,10 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/logic/xiangyu"
-	xyReq "eta/eta_bridge/models/request/xiangyu"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/logic/xiangyu"
+	xyReq "eta_gn/eta_bridge/models/request/xiangyu"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"
 )

+ 5 - 5
controller/xiangyu/crm.go

@@ -1,11 +1,11 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/logic/xiangyu"
-	"eta/eta_bridge/models/index"
-	xiangyuSrc "eta/eta_bridge/services/xiangyu"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/logic/xiangyu"
+	"eta_gn/eta_bridge/models/index"
+	xiangyuSrc "eta_gn/eta_bridge/services/xiangyu"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"
 )

+ 4 - 4
controller/xiangyu/index.go

@@ -1,10 +1,10 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/logic/xiangyu"
-	xiangyuSrc "eta/eta_bridge/services/xiangyu"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/logic/xiangyu"
+	xiangyuSrc "eta_gn/eta_bridge/services/xiangyu"
 	"github.com/gin-gonic/gin"
 	"github.com/go-playground/validator/v10"
 )

+ 2 - 2
controller/xiangyu/user.go

@@ -1,8 +1,8 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/logic/xiangyu"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/logic/xiangyu"
 	"github.com/gin-gonic/gin"
 	"sync"
 )

+ 3 - 3
core/log.go

@@ -1,9 +1,9 @@
 package core
 
 import (
-	"eta/eta_bridge/config"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/config"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	rotatelogs "github.com/lestrrat-go/file-rotatelogs"

+ 2 - 2
core/run_server.go

@@ -1,8 +1,8 @@
 package core
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/init_serve"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/init_serve"
 	"fmt"
 )
 

+ 2 - 2
global/global.go

@@ -2,8 +2,8 @@ package global
 
 import (
 	"database/sql"
-	"eta/eta_bridge/config"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/config"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/fsnotify/fsnotify"
 	oplogging "github.com/op/go-logging"

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module eta/eta_bridge
+module eta_gn/eta_bridge
 
 go 1.21.7
 

+ 2 - 2
init_serve/mysql.go

@@ -1,8 +1,8 @@
 package init_serve
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/services/binlog"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/services/binlog"
 	"fmt"
 	"gorm.io/driver/mysql"
 	"gorm.io/gorm"

+ 1 - 1
init_serve/oracle_jy.go

@@ -2,7 +2,7 @@ package init_serve
 
 import (
 	"database/sql"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 	"github.com/godror/godror"
 	"time"

+ 2 - 2
init_serve/redis.go

@@ -1,8 +1,8 @@
 package init_serve
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 )
 

+ 4 - 4
init_serve/router.go

@@ -1,10 +1,10 @@
 package init_serve
 
 import (
-	_ "eta/eta_bridge/docs"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/middleware"
-	"eta/eta_bridge/routers"
+	_ "eta_gn/eta_bridge/docs"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/middleware"
+	"eta_gn/eta_bridge/routers"
 	"github.com/gin-gonic/gin"
 )
 

+ 3 - 3
init_serve/task.go

@@ -1,9 +1,9 @@
 package init_serve
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/services"
-	"eta/eta_bridge/services/index_data"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/services"
+	"eta_gn/eta_bridge/services/index_data"
 	"github.com/robfig/cron/v3"
 )
 

+ 4 - 4
logic/xiangyu/auth.go

@@ -1,10 +1,10 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/models/eta"
-	"eta/eta_bridge/models/response"
-	"eta/eta_bridge/services"
-	"eta/eta_bridge/services/xiangyu"
+	"eta_gn/eta_bridge/models/eta"
+	"eta_gn/eta_bridge/models/response"
+	"eta_gn/eta_bridge/services"
+	"eta_gn/eta_bridge/services/xiangyu"
 	"fmt"
 	"time"
 )

+ 4 - 4
logic/xiangyu/crm.go

@@ -1,10 +1,10 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/index"
-	"eta/eta_bridge/services/xiangyu"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/index"
+	"eta_gn/eta_bridge/services/xiangyu"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/rdlucklib/rdluck_tools/paging"
 	"strings"

+ 1 - 1
logic/xiangyu/index.go

@@ -1,7 +1,7 @@
 package xiangyu
 
 import (
-	"eta/eta_bridge/services/xiangyu"
+	"eta_gn/eta_bridge/services/xiangyu"
 )
 
 // PushIndexDataResp

+ 3 - 3
logic/xiangyu/user.go

@@ -2,9 +2,9 @@ package xiangyu
 
 import (
 	"errors"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/eta"
-	"eta/eta_bridge/services/xiangyu"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/eta"
+	"eta_gn/eta_bridge/services/xiangyu"
 	"fmt"
 	"strings"
 	"time"

+ 1 - 1
main.go

@@ -1,7 +1,7 @@
 package main
 
 import (
-	"eta/eta_bridge/core"
+	"eta_gn/eta_bridge/core"
 )
 
 // @BasePath /

+ 4 - 4
middleware/auth.go

@@ -3,10 +3,10 @@ package middleware
 import (
 	"crypto/md5"
 	"errors"
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/crm"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/crm"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"math"

+ 4 - 4
middleware/recover.go

@@ -1,10 +1,10 @@
 package middleware
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/services/alarm_msg"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/services/alarm_msg"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"net/http"

+ 3 - 3
middleware/token.go

@@ -1,9 +1,9 @@
 package middleware
 
 import (
-	"eta/eta_bridge/controller/resp"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/controller/resp"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"github.com/gin-gonic/gin"
 )
 

+ 1 - 1
models/crm/admin.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/eta_trial.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/eta_trial_active_record.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/eta_trial_login_duration_record.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/eta_trial_questionnaire.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/eta_trial_questionnaire_record.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/open_api_user.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/sys_department.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/sys_group.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/sys_role.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/crm/sys_role_admin.go

@@ -1,7 +1,7 @@
 package crm
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/admin.go

@@ -2,7 +2,7 @@ package eta
 
 import (
 	"errors"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/crm_config.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/sys_department.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/sys_group.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/sys_role.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/sys_session.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/sys_third_session.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/eta/sys_user_login_record.go

@@ -1,7 +1,7 @@
 package eta
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/index/base.go

@@ -1,6 +1,6 @@
 package index
 
-import "eta/eta_bridge/global"
+import "eta_gn/eta_bridge/global"
 
 // BinlogFormatStruct
 // @Description: 数据库的binlog格式

+ 1 - 1
models/index/business_sys_interaction_log.go

@@ -1,7 +1,7 @@
 package index
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 4 - 4
models/index/edb_update_log.go

@@ -1,7 +1,7 @@
 package index
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 	"time"
 )
@@ -10,9 +10,9 @@ type EdbUpdateLog struct {
 	Id          int64     `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
 	OpDbName    string    `gorm:"column:op_db_name;type:varchar(255);comment:库名;default:NULL;" json:"op_db_name"` // 库名
 	OpTableName string    `gorm:"column:op_table_name;type:varchar(255);comment:表名;" json:"op_table_name"`        // 表名
-	OpType      string    `gorm:"column:op_type;type:varchar(16);comment:变更类型;default:NULL;" json:"op_type"`      // 变更类型
-	OldData     string    `gorm:"column:old_data;type:text;comment:历史数据;" json:"old_data"`                        // 历史数据
-	NewData     string    `gorm:"column:new_data;type:text;comment:新数据;" json:"new_data"`                         // 新数据
+	OpType      string    `gorm:"column:op_type;type:varchar(16);comment:变更类型;default:NULL;" json:"op_type"`    // 变更类型
+	OldData     string    `gorm:"column:old_data;type:text;comment:历史数据;" json:"old_data"`                      // 历史数据
+	NewData     string    `gorm:"column:new_data;type:text;comment:新数据;" json:"new_data"`                        // 新数据
 	CreateTime  time.Time `gorm:"column:create_time;type:timestamp;default:CURRENT_TIMESTAMP;" json:"create_time"`
 }
 

+ 1 - 1
models/jiayue/category.go

@@ -2,7 +2,7 @@ package jiayue
 
 import (
 	"database/sql"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 )
 

+ 1 - 1
models/jiayue/dict.go

@@ -2,7 +2,7 @@ package jiayue
 
 import (
 	"database/sql"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 	"time"
 )

+ 2 - 2
models/pcsg/bloomberg.go

@@ -1,8 +1,8 @@
 package pcsg
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"strings"
 	"time"

+ 1 - 1
models/rddp/sys_session.go

@@ -1,7 +1,7 @@
 package rddp
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/rddp/sys_user_login_record.go

@@ -1,7 +1,7 @@
 package rddp
 
 import (
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"time"
 )
 

+ 1 - 1
models/request/eta_trial/questionnaire.go

@@ -1,6 +1,6 @@
 package eta_trial
 
-import "eta/eta_bridge/models/crm"
+import "eta_gn/eta_bridge/models/crm"
 
 type QuestionnaireCommitReq struct {
 	List []crm.EtaTrialQuestionnaireRecord

+ 1 - 1
models/response/index_data.go

@@ -1,7 +1,7 @@
 package response
 
 import (
-	"eta/eta_bridge/models/jiayue"
+	"eta_gn/eta_bridge/models/jiayue"
 	"time"
 )
 

+ 2 - 2
routers/auth.go

@@ -1,8 +1,8 @@
 package routers
 
 import (
-	"eta/eta_bridge/controller"
-	"eta/eta_bridge/middleware"
+	"eta_gn/eta_bridge/controller"
+	"eta_gn/eta_bridge/middleware"
 	"github.com/gin-gonic/gin"
 )
 

+ 1 - 1
routers/eta_trial.go

@@ -1,7 +1,7 @@
 package routers
 
 import (
-	"eta/eta_bridge/controller/eta_trial"
+	"eta_gn/eta_bridge/controller/eta_trial"
 	"github.com/gin-gonic/gin"
 )
 

+ 2 - 2
routers/index_data.go

@@ -1,8 +1,8 @@
 package routers
 
 import (
-	"eta/eta_bridge/controller/index_data"
-	"eta/eta_bridge/middleware"
+	"eta_gn/eta_bridge/controller/index_data"
+	"eta_gn/eta_bridge/middleware"
 	"github.com/gin-gonic/gin"
 )
 

+ 2 - 2
routers/pcsg.go

@@ -1,8 +1,8 @@
 package routers
 
 import (
-	"eta/eta_bridge/controller/index_data"
-	"eta/eta_bridge/middleware"
+	"eta_gn/eta_bridge/controller/index_data"
+	"eta_gn/eta_bridge/middleware"
 	"github.com/gin-gonic/gin"
 )
 

+ 2 - 2
routers/xiangyu.go

@@ -1,8 +1,8 @@
 package routers
 
 import (
-	"eta/eta_bridge/controller/xiangyu"
-	"eta/eta_bridge/middleware"
+	"eta_gn/eta_bridge/controller/xiangyu"
+	"eta_gn/eta_bridge/middleware"
 	"github.com/gin-gonic/gin"
 )
 

+ 2 - 2
services/alarm_msg/alarm_msg.go

@@ -2,8 +2,8 @@ package alarm_msg
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"github.com/rdlucklib/rdluck_tools/http"
 )
 

+ 3 - 3
services/binlog/binlog.go

@@ -2,9 +2,9 @@ package binlog
 
 import (
 	"errors"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/index"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/index"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/go-mysql-org/go-mysql/canal"
 	"github.com/go-mysql-org/go-mysql/mysql"

+ 3 - 3
services/binlog/handler.go

@@ -2,9 +2,9 @@ package binlog
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/index"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/index"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"github.com/go-mysql-org/go-mysql/canal"
 	"github.com/go-mysql-org/go-mysql/mysql"

+ 2 - 2
services/cache_queue.go

@@ -2,8 +2,8 @@ package services
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 )
 

+ 1 - 1
services/company.go

@@ -1,6 +1,6 @@
 package services
 
-import "eta/eta_bridge/utils"
+import "eta_gn/eta_bridge/utils"
 
 // GetProductId 根据角色类型获取对应的产品ID
 func GetProductId(roleTypeCode string) (productId int) {

+ 3 - 3
services/index_data/edb_update_log.go

@@ -1,9 +1,9 @@
 package index_data
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/index"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/index"
+	"eta_gn/eta_bridge/utils"
 	"time"
 )
 

+ 5 - 5
services/index_data/jiayue_platform.go

@@ -1,11 +1,11 @@
 package index_data
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/jiayue"
-	"eta/eta_bridge/models/response"
-	"eta/eta_bridge/services/alarm_msg"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/jiayue"
+	"eta_gn/eta_bridge/models/response"
+	"eta_gn/eta_bridge/services/alarm_msg"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"strconv"
 	"strings"

+ 2 - 2
services/index_data/pcsg_bloomberg.go

@@ -2,8 +2,8 @@ package index_data
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/models/pcsg"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/models/pcsg"
 	"fmt"
 	"io/ioutil"
 	"net/http"

+ 5 - 7
services/index_data/zhongji_smm.go

@@ -4,11 +4,11 @@ import (
 	"bytes"
 	"encoding/json"
 	"errors"
-	"eta/eta_bridge/global"
-	models "eta/eta_bridge/models/edb"
-	"eta/eta_bridge/models/response"
-	"eta/eta_bridge/services/alarm_msg"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	models "eta_gn/eta_bridge/models/edb"
+	"eta_gn/eta_bridge/models/response"
+	"eta_gn/eta_bridge/services/alarm_msg"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"io"
 	"io/ioutil"
@@ -308,7 +308,6 @@ func GetEdbDataListFromSmmHttp(page, pageSize int, token string) (body []byte, e
 	str := string(body)
 	fmt.Println("body:", str)
 
-
 	return
 }
 
@@ -349,7 +348,6 @@ func GetEdbDataFromSmmHttp(edbCodes, token string) (body []byte, err error) {
 	str := string(body)
 	fmt.Println("body:", str)
 
-
 	return
 }
 

+ 3 - 3
services/session.go

@@ -2,9 +2,9 @@ package services
 
 import (
 	"errors"
-	"eta/eta_bridge/models/eta"
-	"eta/eta_bridge/models/response"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/models/eta"
+	"eta_gn/eta_bridge/models/response"
+	"eta_gn/eta_bridge/utils"
 	"time"
 )
 

+ 4 - 4
services/sys_user_sync.go

@@ -2,10 +2,10 @@ package services
 
 import (
 	"encoding/json"
-	"eta/eta_bridge/models/crm"
-	"eta/eta_bridge/models/eta"
-	"eta/eta_bridge/services/alarm_msg"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/models/crm"
+	"eta_gn/eta_bridge/models/eta"
+	"eta_gn/eta_bridge/services/alarm_msg"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"time"
 )

+ 1 - 1
services/xiangyu/auth.go

@@ -3,7 +3,7 @@ package xiangyu
 import (
 	"encoding/json"
 	"errors"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 	"io"
 	"net/http"

+ 1 - 1
services/xiangyu/crm.go

@@ -3,7 +3,7 @@ package xiangyu
 import (
 	"encoding/json"
 	"errors"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 	"io"
 	"net/http"

+ 1 - 1
services/xiangyu/index.go

@@ -3,7 +3,7 @@ package xiangyu
 import (
 	"encoding/json"
 	"errors"
-	"eta/eta_bridge/global"
+	"eta_gn/eta_bridge/global"
 	"fmt"
 	"io"
 	"net/http"

+ 2 - 2
services/xiangyu/user.go

@@ -3,8 +3,8 @@ package xiangyu
 import (
 	"encoding/json"
 	"errors"
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"io"
 	"net/http"

+ 3 - 3
task/task.go

@@ -1,9 +1,9 @@
 package task
 
 import (
-	"eta/eta_bridge/global"
-	"eta/eta_bridge/services/alarm_msg"
-	"eta/eta_bridge/utils"
+	"eta_gn/eta_bridge/global"
+	"eta_gn/eta_bridge/services/alarm_msg"
+	"eta_gn/eta_bridge/utils"
 	"fmt"
 	"os"
 	"runtime"

+ 1 - 1
utils/redis.go

@@ -1,7 +1,7 @@
 package utils
 
 import (
-	"eta/eta_bridge/utils/redis"
+	"eta_gn/eta_bridge/utils/redis"
 	"time"
 )