chore: 打包程序restagent变更omc
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/oauth"
|
||||
libConfig "nms_cxy/restagent/config"
|
||||
libConfig "nms_cxy/omc/config"
|
||||
"nms_cxy/src/framework/logger"
|
||||
"nms_cxy/src/framework/redis"
|
||||
)
|
||||
|
||||
@@ -5,14 +5,14 @@ import (
|
||||
|
||||
libConf "nms_cxy/lib/core/conf"
|
||||
libGlobal "nms_cxy/lib/global"
|
||||
libConfig "nms_cxy/restagent/config"
|
||||
libConfig "nms_cxy/omc/config"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// BuildInfo 程序-V查看编译版本号信息
|
||||
func BuildInfo() string {
|
||||
return fmt.Sprintf("OMC restagent version: %s\n%s\n%s\n\n", libGlobal.Version, libGlobal.BuildTime, libGlobal.GoVer)
|
||||
return fmt.Sprintf("OMC version: %s\n%s\n%s\n\n", libGlobal.Version, libGlobal.BuildTime, libGlobal.GoVer)
|
||||
}
|
||||
|
||||
// ConfigRead 指定配置文件读取
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 外层 lib 和 features 粘合层
|
||||
|
||||
- config.go 配置合并: restagent.yaml 文件内容,主要是数据库配置
|
||||
- config.go 配置合并: omc.yaml 文件内容,主要是数据库配置
|
||||
- account.go 登录会话生成 token
|
||||
- session.go 中间件方式设置请求头 token 值
|
||||
|
||||
@@ -3,7 +3,7 @@ package session
|
||||
import (
|
||||
"time"
|
||||
|
||||
libConfig "nms_cxy/restagent/config"
|
||||
libConfig "nms_cxy/omc/config"
|
||||
"nms_cxy/src/framework/redis"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
Reference in New Issue
Block a user