chore: 打包程序包变更nms_cxy

This commit is contained in:
TsMask
2024-03-19 18:40:07 +08:00
parent 0f735bb666
commit a4c71a4d70
357 changed files with 1479 additions and 1885 deletions

View File

@@ -5,12 +5,12 @@ import (
"strconv"
"time"
sysMenuService "nms_nbi/features/sys_menu/service"
sysRoleService "nms_nbi/features/sys_role/service"
"nms_nbi/lib/core/cache"
"nms_nbi/lib/core/vo"
"nms_nbi/lib/dborm"
srcConfig "nms_nbi/src/framework/config"
sysMenuService "nms_cxy/features/sys_menu/service"
sysRoleService "nms_cxy/features/sys_role/service"
"nms_cxy/lib/core/cache"
"nms_cxy/lib/core/vo"
"nms_cxy/lib/dborm"
srcConfig "nms_cxy/src/framework/config"
)
// 登录缓存用户信息

View File

@@ -4,7 +4,7 @@ import (
"database/sql"
"regexp"
"nms_nbi/lib/dborm"
"nms_cxy/lib/dborm"
"xorm.io/xorm"
)

View File

@@ -7,7 +7,7 @@ import (
"net"
"time"
"nms_nbi/lib/core/conf"
"nms_cxy/lib/core/conf"
)
// 定义MMLClient结构体

View File

@@ -10,9 +10,9 @@ import (
"path/filepath"
"strings"
"nms_nbi/lib/core/vo"
commonConstants "nms_nbi/src/framework/constants/common"
tokenConst "nms_nbi/src/framework/constants/token"
"nms_cxy/lib/core/vo"
commonConstants "nms_cxy/src/framework/constants/common"
tokenConst "nms_cxy/src/framework/constants/token"
"github.com/gorilla/mux"
"golang.org/x/text/language"

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"time"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
)
const (

View File

@@ -1,7 +1,7 @@
package vo
import (
"nms_nbi/lib/dborm"
"nms_cxy/lib/dborm"
)
// LoginUser 登录用户身份权限信息对象

View File

@@ -1,6 +1,6 @@
package vo
// import sysmenu "nms_nbi/features/sys_menu"
// import sysmenu "nms_cxy/features/sys_menu"
// TreeSelect 树结构实体类
type TreeSelect struct {

View File

@@ -10,9 +10,9 @@ import (
"strings"
"nms_nbi/features/sys_role/model"
"nms_nbi/lib/log"
"nms_nbi/lib/oauth"
"nms_cxy/features/sys_role/model"
"nms_cxy/lib/log"
"nms_cxy/lib/oauth"
_ "github.com/go-sql-driver/mysql"
"xorm.io/xorm"

View File

@@ -6,8 +6,8 @@ import (
"strings"
"time"
"nms_nbi/lib/dborm"
"nms_nbi/lib/services"
"nms_cxy/lib/dborm"
"nms_cxy/lib/services"
)
// 登录策略限制登录时间和访问ip范围

View File

@@ -5,13 +5,13 @@ import (
"fmt"
"net/http"
"nms_nbi/lib/core/cache"
"nms_nbi/lib/core/utils/ctx"
"nms_nbi/lib/core/vo"
"nms_nbi/lib/core/vo/result"
"nms_nbi/lib/dborm"
commonConstants "nms_nbi/src/framework/constants/common"
tokenUtils "nms_nbi/src/framework/utils/token"
"nms_cxy/lib/core/cache"
"nms_cxy/lib/core/utils/ctx"
"nms_cxy/lib/core/vo"
"nms_cxy/lib/core/vo/result"
"nms_cxy/lib/dborm"
commonConstants "nms_cxy/src/framework/constants/common"
tokenUtils "nms_cxy/src/framework/utils/token"
)
// Authorize 用户身份授权认证校验

View File

@@ -4,9 +4,9 @@ import (
"net/http"
"strings"
"nms_nbi/lib/log"
"nms_nbi/lib/services"
tokenConst "nms_nbi/src/framework/constants/token"
"nms_cxy/lib/log"
"nms_cxy/lib/services"
tokenConst "nms_cxy/src/framework/constants/token"
"github.com/gorilla/mux"
)

View File

@@ -9,11 +9,11 @@ import (
"strings"
"time"
"nms_nbi/lib/core/datasource"
"nms_nbi/lib/core/utils/ctx"
"nms_nbi/lib/core/utils/date"
"nms_nbi/lib/dborm"
"nms_nbi/lib/log"
"nms_cxy/lib/core/datasource"
"nms_cxy/lib/core/utils/ctx"
"nms_cxy/lib/core/utils/date"
"nms_cxy/lib/dborm"
"nms_cxy/lib/log"
)
// LogMML mml操作日志搜集

View File

@@ -11,13 +11,13 @@ import (
"strings"
"time"
"nms_nbi/lib/core/utils/parse"
"nms_nbi/lib/dborm"
"nms_nbi/src/framework/constants/common"
"nms_nbi/src/framework/middleware/collectlogs"
"nms_nbi/src/framework/utils/ip2region"
"nms_nbi/src/modules/system/model"
"nms_nbi/src/modules/system/service"
"nms_cxy/lib/core/utils/parse"
"nms_cxy/lib/dborm"
"nms_cxy/src/framework/constants/common"
"nms_cxy/src/framework/middleware/collectlogs"
"nms_cxy/src/framework/utils/ip2region"
"nms_cxy/src/modules/system/model"
"nms_cxy/src/modules/system/service"
)
// 敏感属性字段进行掩码

View File

@@ -11,11 +11,11 @@ import (
"strconv"
"strings"
"nms_nbi/lib/dborm"
"nms_nbi/lib/global"
"nms_nbi/lib/log"
"nms_nbi/lib/run"
tokenConst "nms_nbi/src/framework/constants/token"
"nms_cxy/lib/dborm"
"nms_cxy/lib/global"
"nms_cxy/lib/log"
"nms_cxy/lib/run"
tokenConst "nms_cxy/src/framework/constants/token"
"github.com/go-resty/resty/v2"
)

View File

@@ -10,7 +10,7 @@ import (
"strings"
"time"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
"github.com/dgrijalva/jwt-go"
"golang.org/x/crypto/bcrypt"

View File

@@ -5,33 +5,33 @@ import (
// "log"
"nms_nbi/features/aaaa"
"nms_nbi/features/cdr"
"nms_nbi/features/cm"
"nms_nbi/features/dbrest"
"nms_nbi/features/file"
"nms_nbi/features/fm"
"nms_nbi/features/lm"
"nms_nbi/features/mml"
"nms_nbi/features/monitor/monitor"
"nms_nbi/features/monitor/psnet"
"nms_nbi/features/nbi"
"nms_nbi/features/pm"
"nms_nbi/features/security"
"nms_nbi/features/sm"
"nms_nbi/features/state"
sysconfig "nms_nbi/features/sys_config"
sysdictdata "nms_nbi/features/sys_dict_data"
sysdicttype "nms_nbi/features/sys_dict_type"
sysmenu "nms_nbi/features/sys_menu"
sysrole "nms_nbi/features/sys_role"
sysuser "nms_nbi/features/sys_user"
"nms_nbi/features/trace"
udmuser "nms_nbi/features/udm_user"
"nms_nbi/features/ue"
"nms_nbi/lib/midware"
"nms_nbi/lib/services"
"nms_nbi/src/framework/middleware/collectlogs"
"nms_cxy/features/aaaa"
"nms_cxy/features/cdr"
"nms_cxy/features/cm"
"nms_cxy/features/dbrest"
"nms_cxy/features/file"
"nms_cxy/features/fm"
"nms_cxy/features/lm"
"nms_cxy/features/mml"
"nms_cxy/features/monitor/monitor"
"nms_cxy/features/monitor/psnet"
"nms_cxy/features/nbi"
"nms_cxy/features/pm"
"nms_cxy/features/security"
"nms_cxy/features/sm"
"nms_cxy/features/state"
sysconfig "nms_cxy/features/sys_config"
sysdictdata "nms_cxy/features/sys_dict_data"
sysdicttype "nms_cxy/features/sys_dict_type"
sysmenu "nms_cxy/features/sys_menu"
sysrole "nms_cxy/features/sys_role"
sysuser "nms_cxy/features/sys_user"
"nms_cxy/features/trace"
udmuser "nms_cxy/features/udm_user"
"nms_cxy/features/ue"
"nms_cxy/lib/midware"
"nms_cxy/lib/services"
"nms_cxy/src/framework/middleware/collectlogs"
"github.com/gorilla/mux"
)

View File

@@ -7,7 +7,7 @@ import (
"bytes"
"os/exec"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
)
func ExecCmd(command, path string) ([]byte, error) {

View File

@@ -6,7 +6,7 @@ package run
import (
"os/exec"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
)
func ExecCmd(command, path string) ([]byte, error) {

View File

@@ -6,7 +6,7 @@ package run
import (
"os/exec"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
)
func ExecCmd(command, path string) ([]byte, error) {

View File

@@ -11,7 +11,7 @@ import (
"strconv"
"strings"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
)
const (

View File

@@ -16,11 +16,11 @@ import (
"strconv"
"strings"
"nms_nbi/lib/dborm"
"nms_nbi/lib/global"
"nms_nbi/lib/log"
"nms_nbi/lib/oauth"
"nms_nbi/restagent/config"
"nms_cxy/lib/dborm"
"nms_cxy/lib/global"
"nms_cxy/lib/log"
"nms_cxy/lib/oauth"
"nms_cxy/restagent/config"
"github.com/gorilla/mux"
)

View File

@@ -11,9 +11,9 @@ import (
"sync"
"time"
"nms_nbi/lib/log"
"nms_nbi/lib/oauth"
"nms_nbi/restagent/config"
"nms_cxy/lib/log"
"nms_cxy/lib/oauth"
"nms_cxy/restagent/config"
)
// SessionMgr session manager

View File

@@ -8,7 +8,7 @@ import (
"sync"
"time"
"nms_nbi/lib/log"
"nms_cxy/lib/log"
"github.com/shirou/gopsutil/v3/host"
"github.com/shirou/gopsutil/v3/net"