chore: 打包程序包变更nms_cxy
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
libConfig "nms_nbi/src/lib_features/config"
|
||||
libConfig "nms_cxy/src/lib_features/config"
|
||||
|
||||
"github.com/spf13/pflag"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// 参考文章:
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/constants/common"
|
||||
"nms_nbi/src/modules/monitor/model"
|
||||
"nms_nbi/src/modules/monitor/repository"
|
||||
"nms_cxy/src/framework/constants/common"
|
||||
"nms_cxy/src/modules/monitor/model"
|
||||
"nms_cxy/src/modules/monitor/repository"
|
||||
)
|
||||
|
||||
// 实例任务执行日志收集
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"regexp"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/logger"
|
||||
|
||||
"gorm.io/driver/mysql"
|
||||
"gorm.io/gorm"
|
||||
|
||||
@@ -3,9 +3,9 @@ package errorcatch
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_nbi/src/framework/vo/result"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/logger"
|
||||
"nms_cxy/src/framework/vo/result"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
|
||||
systemService "nms_nbi/src/modules/system/service"
|
||||
systemService "nms_cxy/src/modules/system/service"
|
||||
)
|
||||
|
||||
// localeItem 国际化数据项
|
||||
|
||||
@@ -7,13 +7,13 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/constants/common"
|
||||
"nms_nbi/src/framework/i18n"
|
||||
"nms_nbi/src/framework/utils/ctx"
|
||||
"nms_nbi/src/framework/utils/parse"
|
||||
"nms_nbi/src/framework/vo/result"
|
||||
"nms_nbi/src/modules/system/model"
|
||||
"nms_nbi/src/modules/system/service"
|
||||
"nms_cxy/src/framework/constants/common"
|
||||
"nms_cxy/src/framework/i18n"
|
||||
"nms_cxy/src/framework/utils/ctx"
|
||||
"nms_cxy/src/framework/utils/parse"
|
||||
"nms_cxy/src/framework/vo/result"
|
||||
"nms_cxy/src/modules/system/model"
|
||||
"nms_cxy/src/modules/system/service"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_cxy/src/framework/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -3,12 +3,12 @@ package middleware
|
||||
import (
|
||||
"strings"
|
||||
|
||||
AdminConstants "nms_nbi/src/framework/constants/admin"
|
||||
commonConstants "nms_nbi/src/framework/constants/common"
|
||||
"nms_nbi/src/framework/i18n"
|
||||
ctxUtils "nms_nbi/src/framework/utils/ctx"
|
||||
tokenUtils "nms_nbi/src/framework/utils/token"
|
||||
"nms_nbi/src/framework/vo/result"
|
||||
AdminConstants "nms_cxy/src/framework/constants/admin"
|
||||
commonConstants "nms_cxy/src/framework/constants/common"
|
||||
"nms_cxy/src/framework/i18n"
|
||||
ctxUtils "nms_cxy/src/framework/utils/ctx"
|
||||
tokenUtils "nms_cxy/src/framework/utils/token"
|
||||
"nms_cxy/src/framework/vo/result"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -5,12 +5,12 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/constants/cachekey"
|
||||
"nms_nbi/src/framework/i18n"
|
||||
"nms_nbi/src/framework/redis"
|
||||
"nms_nbi/src/framework/utils/ctx"
|
||||
"nms_nbi/src/framework/utils/ip2region"
|
||||
"nms_nbi/src/framework/vo/result"
|
||||
"nms_cxy/src/framework/constants/cachekey"
|
||||
"nms_cxy/src/framework/i18n"
|
||||
"nms_cxy/src/framework/redis"
|
||||
"nms_cxy/src/framework/utils/ctx"
|
||||
"nms_cxy/src/framework/utils/ip2region"
|
||||
"nms_cxy/src/framework/vo/result"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -5,12 +5,12 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/constants/cachekey"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_nbi/src/framework/redis"
|
||||
"nms_nbi/src/framework/utils/ctx"
|
||||
"nms_nbi/src/framework/utils/ip2region"
|
||||
"nms_nbi/src/framework/vo/result"
|
||||
"nms_cxy/src/framework/constants/cachekey"
|
||||
"nms_cxy/src/framework/logger"
|
||||
"nms_cxy/src/framework/redis"
|
||||
"nms_cxy/src/framework/utils/ctx"
|
||||
"nms_cxy/src/framework/utils/ip2region"
|
||||
"nms_cxy/src/framework/vo/result"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package middleware
|
||||
import (
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package security
|
||||
|
||||
import (
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/utils/generate"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/utils/generate"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package security
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_cxy/src/framework/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package security
|
||||
|
||||
import (
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_cxy/src/framework/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package security
|
||||
|
||||
import (
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_cxy/src/framework/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package security
|
||||
import (
|
||||
"net/url"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/vo/result"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/vo/result"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package security
|
||||
|
||||
import (
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_cxy/src/framework/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package security
|
||||
|
||||
import (
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_cxy/src/framework/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/logger"
|
||||
|
||||
"github.com/redis/go-redis/v9"
|
||||
)
|
||||
|
||||
@@ -4,13 +4,13 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/constants/common"
|
||||
"nms_nbi/src/framework/constants/roledatascope"
|
||||
"nms_nbi/src/framework/constants/token"
|
||||
"nms_nbi/src/framework/utils/ip2region"
|
||||
"nms_nbi/src/framework/utils/ua"
|
||||
"nms_nbi/src/framework/vo"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/constants/common"
|
||||
"nms_cxy/src/framework/constants/roledatascope"
|
||||
"nms_cxy/src/framework/constants/token"
|
||||
"nms_cxy/src/framework/utils/ip2region"
|
||||
"nms_cxy/src/framework/utils/ua"
|
||||
"nms_cxy/src/framework/vo"
|
||||
|
||||
"golang.org/x/text/language"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package date
|
||||
import (
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// 写入CSV文件,需要转换数据
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/constants/uploadsubpath"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_nbi/src/framework/utils/date"
|
||||
"nms_cxy/src/framework/constants/uploadsubpath"
|
||||
"nms_cxy/src/framework/logger"
|
||||
"nms_cxy/src/framework/utils/date"
|
||||
|
||||
"github.com/xuri/excelize/v2"
|
||||
)
|
||||
|
||||
@@ -11,13 +11,13 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/constants/uploadsubpath"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_nbi/src/framework/utils/date"
|
||||
"nms_nbi/src/framework/utils/generate"
|
||||
"nms_nbi/src/framework/utils/parse"
|
||||
"nms_nbi/src/framework/utils/regular"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/constants/uploadsubpath"
|
||||
"nms_cxy/src/framework/logger"
|
||||
"nms_cxy/src/framework/utils/date"
|
||||
"nms_cxy/src/framework/utils/generate"
|
||||
"nms_cxy/src/framework/utils/parse"
|
||||
"nms_cxy/src/framework/utils/regular"
|
||||
)
|
||||
|
||||
/**最大文件名长度 */
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// WriterFileJSON 写入JSON文件
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// WriterFileTXT 写入txt文件 sep 分割符号 需要转换数据
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// transferToNewFile 读取目标文件转移到新路径下
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
|
||||
gonanoid "github.com/matoous/go-nanoid/v2"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// 网络地址(内网)
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/utils/parse"
|
||||
"nms_cxy/src/framework/utils/parse"
|
||||
)
|
||||
|
||||
// PageNumSize 分页页码记录数
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_nbi/src/framework/utils/cmd"
|
||||
"nms_nbi/src/framework/utils/parse"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/logger"
|
||||
"nms_cxy/src/framework/utils/cmd"
|
||||
"nms_cxy/src/framework/utils/parse"
|
||||
)
|
||||
|
||||
// FileListRow 文件列表行数据
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/logger"
|
||||
)
|
||||
|
||||
// 网元NE 文件复制到远程文件
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/logger"
|
||||
"nms_cxy/src/framework/logger"
|
||||
|
||||
gossh "golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
@@ -5,13 +5,13 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"nms_nbi/src/framework/config"
|
||||
cachekeyConstants "nms_nbi/src/framework/constants/cachekey"
|
||||
tokenConstants "nms_nbi/src/framework/constants/token"
|
||||
"nms_nbi/src/framework/logger"
|
||||
redisCahe "nms_nbi/src/framework/redis"
|
||||
"nms_nbi/src/framework/utils/generate"
|
||||
"nms_nbi/src/framework/vo"
|
||||
"nms_cxy/src/framework/config"
|
||||
cachekeyConstants "nms_cxy/src/framework/constants/cachekey"
|
||||
tokenConstants "nms_cxy/src/framework/constants/token"
|
||||
"nms_cxy/src/framework/logger"
|
||||
redisCahe "nms_cxy/src/framework/redis"
|
||||
"nms_cxy/src/framework/utils/generate"
|
||||
"nms_cxy/src/framework/vo"
|
||||
|
||||
jwt "github.com/golang-jwt/jwt/v5"
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package vo
|
||||
|
||||
import systemModel "nms_nbi/src/modules/system/model"
|
||||
import systemModel "nms_cxy/src/modules/system/model"
|
||||
|
||||
// LoginUser 登录用户身份权限信息对象
|
||||
type LoginUser struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package result
|
||||
|
||||
import (
|
||||
"nms_nbi/src/framework/constants/result"
|
||||
"nms_cxy/src/framework/constants/result"
|
||||
)
|
||||
|
||||
// CodeMsg 响应结果
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package vo
|
||||
|
||||
import systemModel "nms_nbi/src/modules/system/model"
|
||||
import systemModel "nms_cxy/src/modules/system/model"
|
||||
|
||||
// TreeSelect 树结构实体类
|
||||
type TreeSelect struct {
|
||||
|
||||
Reference in New Issue
Block a user