Fix: dir ems.agt change to be.ems

This commit is contained in:
2024-03-06 21:00:42 +08:00
parent bf3b97c788
commit 26e9f29241
331 changed files with 1266 additions and 1266 deletions

10
.vscode/launch.json vendored
View File

@@ -18,7 +18,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"program": "d:/local.git/ems.agt/restagent/",
"program": "d:/local.git/be.ems/restagent/",
"console": "integratedTerminal"
},
{
@@ -26,7 +26,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"program": "d:/local.git/ems.agt/sshsvc/sshsvc.go",
"program": "d:/local.git/be.ems/sshsvc/sshsvc.go",
"console": "integratedTerminal"
},
{
@@ -34,7 +34,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"program": "d:/local.git/ems.agt/tools/loadpconf",
"program": "d:/local.git/be.ems/tools/loadpconf",
"args": ["-p","../../config/param/smf_param_config.yaml"],
"console": "integratedTerminal"
},
@@ -43,7 +43,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"program": "d:/local.git/ems.agt/crontask",
"program": "d:/local.git/be.ems/crontask",
"console": "integratedTerminal"
},
{
@@ -51,7 +51,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"program": "d:/local.git/ems.agt/tools/encode",
"program": "d:/local.git/be.ems/tools/encode",
//"args": ["-p","../../config/param/smf_param_config.yaml"],
"console": "integratedTerminal"
}

View File

@@ -53,7 +53,7 @@ go env -w GOOS=linux
go env -w GOOS=windows
go build -o restagent -v -ldflags "-X 'ems.agt/lib/global.Version=2.2311.8' -X 'ems.agt/lib/global.BuildTime=`date`' -X 'ems.agt/lib/global.GoVer=`go version`'"
go build -o restagent -v -ldflags "-X 'be.ems/lib/global.Version=2.2311.8' -X 'be.ems/lib/global.BuildTime=`date`' -X 'be.ems/lib/global.GoVer=`go version`'"
```
## 安装

View File

@@ -10,10 +10,10 @@ import (
"strings"
"sync"
"ems.agt/captrace/config"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"be.ems/captrace/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
_ "github.com/go-sql-driver/mysql"
"golang.org/x/net/http/httpguts"

View File

@@ -6,8 +6,8 @@ import (
"os"
"strings"
"ems.agt/lib/global"
"ems.agt/lib/log"
"be.ems/lib/global"
"be.ems/lib/log"
"gopkg.in/yaml.v3"
)

View File

@@ -2,7 +2,7 @@
# level: /trace/debug/info/error/warn/error/fatal, default: debug
# duration: saved days, default is 30 days
logger:
file: d:/local.git/ems.agt/captrace/log/captrace.log
file: d:/local.git/be.ems/captrace/log/captrace.log
level: trace
duration: 24
count: 10

View File

@@ -9,7 +9,7 @@ DEBBUILDDIR = ../../debbuild
RPMBUILDDIR = $(HOME)/goprojects/rpmbuild
INSTALLDIR = /usr/local/omc
RELEASEDIR = ../../release
LIBDIR = ems.agt/lib
LIBDIR = be.ems/lib
BINNAME = captrace
.PHONY: build $(BINNAME)

View File

@@ -6,8 +6,8 @@ import (
"os"
"strings"
"ems.agt/lib/global"
"ems.agt/lib/log"
"be.ems/lib/global"
"be.ems/lib/log"
"gopkg.in/yaml.v3"
)

View File

@@ -8,7 +8,7 @@ import (
"os/signal"
"syscall"
"ems.agt/lib/log"
"be.ems/lib/log"
)
// 启动一个 goroutine 监听信号量

View File

@@ -8,7 +8,7 @@ import (
"os/signal"
"syscall"
"ems.agt/lib/log"
"be.ems/lib/log"
)
// 启动一个 goroutine 监听信号量

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"os"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
)
func main() {

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"ems.agt/lib/log"
"be.ems/lib/log"
_ "github.com/go-sql-driver/mysql"
"xorm.io/xorm"

View File

@@ -2,7 +2,7 @@
# level: /trace/debug/info/error/warn/error/fatal, default: debug
# duration: saved days, default is 30 days
logger:
file: d:/local.git/ems.agt/crontask/log/crontask.log
file: d:/local.git/be.ems/crontask/log/crontask.log
level: trace
duration: 24
count: 10
@@ -25,7 +25,7 @@ database:
host: 127.0.0.1
port: 33066
name: omc_db
backup: d:/local.git/ems.agt/restagent/database
backup: d:/local.git/be.ems/restagent/database
# northbound interface, cm/pm
# duration(day): saved days

View File

@@ -10,10 +10,10 @@ import (
"strings"
"time"
cmschema "ems.agt/crontask/cm/schema"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
cmschema "be.ems/crontask/cm/schema"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"gopkg.in/yaml.v3"
)

View File

@@ -9,9 +9,9 @@ import (
"strings"
"time"
pmschema "ems.agt/crontask/pm/schema"
"ems.agt/lib/global"
"ems.agt/lib/log"
pmschema "be.ems/crontask/pm/schema"
"be.ems/lib/global"
"be.ems/lib/log"
"gopkg.in/yaml.v3"
)

View File

@@ -2,7 +2,7 @@
PROJECT = OMC
VERSION = 2.2403.1
LIBDIR = ems.agt/lib
LIBDIR = be.ems/lib
BINNAME = crontask
.PHONY: build $(BINNAME)

View File

@@ -13,9 +13,9 @@ import (
"strings"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"github.com/go-resty/resty/v2"
"github.com/shirou/gopsutil/process"

View File

@@ -12,7 +12,7 @@ DEBBUILDDIR = ../../debbuild
RPMBUILDDIR = $(HOME)/goprojects/rpmbuild
INSTALLDIR = /usr/local/omc
RELEASEDIR = ../../release
LIBDIR = ems.agt/lib
LIBDIR = be.ems/lib
BINNAME = data2html
.PHONY: build $(BINNAME)

View File

@@ -9,11 +9,11 @@ import (
"github.com/go-resty/resty/v2"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/lib/oauth"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/lib/oauth"
"be.ems/lib/services"
"be.ems/restagent/config"
)
var (

View File

@@ -5,12 +5,12 @@ import (
"io"
"net/http"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
wsService "ems.agt/src/modules/ws/service"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
wsService "be.ems/src/modules/ws/service"
)
var (

View File

@@ -9,7 +9,7 @@ import (
"os/exec"
"time"
"ems.agt/lib/log"
"be.ems/lib/log"
)
func ExecCmd(command string) error {

View File

@@ -9,7 +9,7 @@ import (
"os/exec"
"time"
"ems.agt/lib/log"
"be.ems/lib/log"
)
func ExecCmd(command string) error {

View File

@@ -9,10 +9,10 @@ import (
"strings"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/gorilla/mux"
)

View File

@@ -10,13 +10,13 @@ import (
"strings"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
tokenConst "ems.agt/src/framework/constants/token"
neService "ems.agt/src/modules/network_element/service"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
tokenConst "be.ems/src/framework/constants/token"
neService "be.ems/src/modules/network_element/service"
"github.com/go-resty/resty/v2"
"github.com/gorilla/mux"

View File

@@ -3,18 +3,18 @@ package cm
import (
"strings"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"encoding/json"
"fmt"
"io"
"net/http"
tokenConst "ems.agt/src/framework/constants/token"
tokenConst "be.ems/src/framework/constants/token"
"github.com/go-resty/resty/v2"
"github.com/gorilla/mux"
)

View File

@@ -10,11 +10,11 @@ import (
"strconv"
"strings"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/gorilla/mux"
)

View File

@@ -10,11 +10,11 @@ import (
"path/filepath"
"time"
"ems.agt/lib/core/conf"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/core/conf"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
_ "github.com/go-sql-driver/mysql"
)

View File

@@ -9,12 +9,12 @@ import (
"strings"
"time"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/gorilla/mux"
"xorm.io/xorm"

View File

@@ -5,11 +5,11 @@ import (
"io"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
wsService "ems.agt/src/modules/ws/service"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
wsService "be.ems/src/modules/ws/service"
"github.com/gin-gonic/gin"
)

View File

@@ -5,12 +5,12 @@ import (
"net/http"
"path/filepath"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/dborm"
"ems.agt/lib/file"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/dborm"
"be.ems/lib/file"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/gorilla/mux"
"github.com/shirou/gopsutil/disk"
)

View File

@@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"
"ems.agt/lib/file"
"be.ems/lib/file"
"github.com/spf13/afero"
)

View File

@@ -10,11 +10,11 @@ import (
"strings"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"xorm.io/xorm"
"github.com/go-resty/resty/v2"

View File

@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/restagent/config"
"gopkg.in/gomail.v2"
)

View File

@@ -7,9 +7,9 @@ import (
"net/url"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/restagent/config"
"github.com/linxGnu/gosmpp"
"github.com/linxGnu/gosmpp/data"
"github.com/linxGnu/gosmpp/pdu"

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"ems.agt/lib/log"
"ems.agt/restagent/config"
"be.ems/lib/log"
"be.ems/restagent/config"
"github.com/chzyer/readline"
"github.com/go-gsm/ucp"
)

View File

@@ -8,17 +8,17 @@ import (
"strconv"
"strings"
"ems.agt/lib/dborm"
"be.ems/lib/dborm"
"github.com/gorilla/mux"
g "github.com/gosnmp/gosnmp"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/oauth"
"ems.agt/lib/services"
"ems.agt/lib/session"
"ems.agt/restagent/config"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/oauth"
"be.ems/lib/services"
"be.ems/lib/session"
"be.ems/restagent/config"
)
var TodoList []stTodo

View File

@@ -6,10 +6,10 @@ import (
"os/exec"
"time"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/gorilla/mux"
"xorm.io/xorm"

View File

@@ -10,11 +10,11 @@ import (
"runtime"
"time"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/mem"

View File

@@ -10,14 +10,14 @@ import (
"strings"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/mmlp"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/mmlp"
"be.ems/lib/services"
"be.ems/restagent/config"
tokenConst "ems.agt/src/framework/constants/token"
tokenConst "be.ems/src/framework/constants/token"
"github.com/gorilla/mux"
)

View File

@@ -6,10 +6,10 @@ import (
"strings"
"time"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/dborm"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/dborm"
"be.ems/lib/services"
"be.ems/restagent/config"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/net"
)

View File

@@ -6,9 +6,9 @@ import (
"strconv"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/restagent/config"
"github.com/robfig/cron/v3"
"github.com/shirou/gopsutil/v3/cpu"
"github.com/shirou/gopsutil/v3/disk"

View File

@@ -6,11 +6,11 @@ import (
"net/http"
"time"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/lib/wsinfo"
"ems.agt/restagent/config"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/lib/wsinfo"
"be.ems/restagent/config"
"github.com/gorilla/websocket"
"github.com/shirou/gopsutil/process"
)

View File

@@ -6,17 +6,17 @@ import (
"net/http"
"strings"
"ems.agt/lib/dborm"
"be.ems/lib/dborm"
"github.com/go-resty/resty/v2"
"github.com/gorilla/mux"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/oauth"
"ems.agt/lib/services"
"ems.agt/lib/session"
"ems.agt/restagent/config"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/oauth"
"be.ems/lib/services"
"be.ems/lib/session"
"be.ems/restagent/config"
)
type ErrorOAuthResponse struct {

View File

@@ -9,9 +9,9 @@ import (
"github.com/gorilla/mux"
g "github.com/gosnmp/gosnmp"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
)
func init() {

View File

@@ -10,14 +10,14 @@ import (
"strconv"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
"xorm.io/xorm"
wsService "ems.agt/src/modules/ws/service"
wsService "be.ems/src/modules/ws/service"
"github.com/go-resty/resty/v2"
_ "github.com/go-sql-driver/mysql"
"github.com/gorilla/mux"

View File

@@ -10,21 +10,21 @@ import (
"strings"
"time"
"ems.agt/features/security/service"
sysConfigService "ems.agt/features/sys_config/service"
"ems.agt/lib/core/account"
"ems.agt/lib/core/cache"
"ems.agt/lib/core/constants/cachekey"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/oauth"
"ems.agt/lib/services"
"ems.agt/restagent/config"
srcConfig "ems.agt/src/framework/config"
"ems.agt/src/framework/redis"
"be.ems/features/security/service"
sysConfigService "be.ems/features/sys_config/service"
"be.ems/lib/core/account"
"be.ems/lib/core/cache"
"be.ems/lib/core/constants/cachekey"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/vo/result"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/oauth"
"be.ems/lib/services"
"be.ems/restagent/config"
srcConfig "be.ems/src/framework/config"
"be.ems/src/framework/redis"
"github.com/mojocn/base64Captcha"
)

View File

@@ -1,11 +1,11 @@
package service
import (
menuService "ems.agt/features/sys_menu/service"
roleService "ems.agt/features/sys_role/service"
userService "ems.agt/features/sys_user/service"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/vo"
menuService "be.ems/features/sys_menu/service"
roleService "be.ems/features/sys_role/service"
userService "be.ems/features/sys_user/service"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/vo"
)
// 实例化服务层 ServiceAccount 结构体

View File

@@ -8,9 +8,9 @@ import (
"os/exec"
"time"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
_ "github.com/go-sql-driver/mysql"
)

View File

@@ -14,12 +14,12 @@ import (
"github.com/go-resty/resty/v2"
"github.com/gorilla/mux"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
tokenConst "ems.agt/src/framework/constants/token"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
tokenConst "be.ems/src/framework/constants/token"
)
type CpuUsage struct {

View File

@@ -11,7 +11,7 @@ import (
"syscall"
"time"
"ems.agt/lib/log"
"be.ems/lib/log"
"github.com/shirou/gopsutil/v3/cpu"
"github.com/shirou/gopsutil/v3/disk"
"github.com/shirou/gopsutil/v3/mem"

View File

@@ -1,7 +1,7 @@
package state
import (
"ems.agt/lib/log"
"be.ems/lib/log"
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/host"

View File

@@ -5,14 +5,14 @@ import (
"net/http"
"strings"
"ems.agt/features/sys_config/model"
"ems.agt/features/sys_config/service"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/features/sys_config/model"
"be.ems/features/sys_config/service"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/vo/result"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
)
// 参数配置信息接口添加到路由

View File

@@ -5,11 +5,11 @@ import (
"strings"
"time"
"ems.agt/features/sys_config/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/date"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/sys_config/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/date"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysConfig 结构体

View File

@@ -3,9 +3,9 @@ package service
import (
"errors"
"ems.agt/features/sys_config/model"
"ems.agt/lib/core/cache"
"ems.agt/lib/core/constants/cachekey"
"be.ems/features/sys_config/model"
"be.ems/lib/core/cache"
"be.ems/lib/core/constants/cachekey"
)
// 实例化服务层 ServiceSysConfig 结构体

View File

@@ -5,15 +5,15 @@ import (
"net/http"
"strings"
"ems.agt/features/sys_dict_data/model"
sysDictDataService "ems.agt/features/sys_dict_data/service"
sysDictTypeService "ems.agt/features/sys_dict_type/service"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/features/sys_dict_data/model"
sysDictDataService "be.ems/features/sys_dict_data/service"
sysDictTypeService "be.ems/features/sys_dict_type/service"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/vo/result"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
)
// 字典类型对应的字典数据信息接口添加到路由

View File

@@ -5,10 +5,10 @@ import (
"strings"
"time"
"ems.agt/features/sys_dict_data/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/sys_dict_data/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysDictData 结构体

View File

@@ -3,9 +3,9 @@ package service
import (
"errors"
"ems.agt/features/sys_dict_data/model"
"ems.agt/features/sys_dict_data/repo"
sysDictTypeService "ems.agt/features/sys_dict_type/service"
"be.ems/features/sys_dict_data/model"
"be.ems/features/sys_dict_data/repo"
sysDictTypeService "be.ems/features/sys_dict_type/service"
)
// 实例化服务层 ServiceSysDictData 结构体

View File

@@ -5,14 +5,14 @@ import (
"net/http"
"strings"
"ems.agt/features/sys_dict_type/model"
sysDictTypeService "ems.agt/features/sys_dict_type/service"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/features/sys_dict_type/model"
sysDictTypeService "be.ems/features/sys_dict_type/service"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/vo/result"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
)
// 字典类型信息接口添加到路由

View File

@@ -5,11 +5,11 @@ import (
"strings"
"time"
"ems.agt/features/sys_dict_type/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/date"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/sys_dict_type/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/date"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysDictType 结构体

View File

@@ -5,12 +5,12 @@ import (
"errors"
"fmt"
sysDictDataModel "ems.agt/features/sys_dict_data/model"
sysDictDataRepo "ems.agt/features/sys_dict_data/repo"
sysDictTypeModel "ems.agt/features/sys_dict_type/model"
"ems.agt/features/sys_dict_type/repo"
"ems.agt/lib/core/cache"
"ems.agt/lib/core/constants/cachekey"
sysDictDataModel "be.ems/features/sys_dict_data/model"
sysDictDataRepo "be.ems/features/sys_dict_data/repo"
sysDictTypeModel "be.ems/features/sys_dict_type/model"
"be.ems/features/sys_dict_type/repo"
"be.ems/lib/core/cache"
"be.ems/lib/core/constants/cachekey"
)
// 实例化服务层 ServiceSysDictType 结构体

View File

@@ -4,16 +4,16 @@ import (
"fmt"
"net/http"
"ems.agt/features/sys_menu/consts"
"ems.agt/features/sys_menu/model"
"ems.agt/features/sys_menu/service"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/utils/regular"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
srcConfig "ems.agt/src/framework/config"
"be.ems/features/sys_menu/consts"
"be.ems/features/sys_menu/model"
"be.ems/features/sys_menu/service"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/utils/regular"
"be.ems/lib/core/vo/result"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
srcConfig "be.ems/src/framework/config"
)
// 菜单接口添加到路由

View File

@@ -5,11 +5,11 @@ import (
"strings"
"time"
"ems.agt/features/sys_menu/consts"
"ems.agt/features/sys_menu/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/sys_menu/consts"
"be.ems/features/sys_menu/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysMenu 结构体

View File

@@ -4,13 +4,13 @@ import (
"encoding/base64"
"strings"
"ems.agt/features/sys_menu/consts"
"ems.agt/features/sys_menu/model"
sysRoleService "ems.agt/features/sys_role/service"
sysrolemenu "ems.agt/features/sys_role_menu"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/utils/regular"
"ems.agt/lib/core/vo"
"be.ems/features/sys_menu/consts"
"be.ems/features/sys_menu/model"
sysRoleService "be.ems/features/sys_role/service"
sysrolemenu "be.ems/features/sys_role_menu"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/utils/regular"
"be.ems/lib/core/vo"
)
// 实例化服务层 ServiceSysMenu 结构体

View File

@@ -5,15 +5,15 @@ import (
"net/http"
"strings"
"ems.agt/features/sys_role/model"
"ems.agt/features/sys_role/service"
userService "ems.agt/features/sys_user/service"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/features/sys_role/model"
"be.ems/features/sys_role/service"
userService "be.ems/features/sys_user/service"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/vo/result"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
)
// 角色接口添加到路由

View File

@@ -5,11 +5,11 @@ import (
"strings"
"time"
"ems.agt/features/sys_role/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/date"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/sys_role/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/date"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysRole 结构体

View File

@@ -4,9 +4,9 @@ import (
"errors"
"fmt"
"ems.agt/features/sys_role/model"
sysrolemenu "ems.agt/features/sys_role_menu"
sysuserrole "ems.agt/features/sys_user_role"
"be.ems/features/sys_role/model"
sysrolemenu "be.ems/features/sys_role_menu"
sysuserrole "be.ems/features/sys_user_role"
)
// 实例化服务层 ServiceSysRole 结构体

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysRoleMenu 结构体

View File

@@ -5,17 +5,17 @@ import (
"net/http"
"strings"
sysRoleModel "ems.agt/features/sys_role/model"
sysRoleService "ems.agt/features/sys_role/service"
sysUserModel "ems.agt/features/sys_user/model"
"ems.agt/features/sys_user/service"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
srcConfig "ems.agt/src/framework/config"
sysRoleModel "be.ems/features/sys_role/model"
sysRoleService "be.ems/features/sys_role/service"
sysUserModel "be.ems/features/sys_user/model"
"be.ems/features/sys_user/service"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/utils/parse"
"be.ems/lib/core/vo/result"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
srcConfig "be.ems/src/framework/config"
)
// 用户接口添加到路由

View File

@@ -1,6 +1,6 @@
package model
import "ems.agt/features/sys_role/model"
import "be.ems/features/sys_role/model"
type SysUser struct {
Id string `json:"id" xorm:"pk 'id' autoincr"`

View File

@@ -5,13 +5,13 @@ import (
"strings"
"time"
sysRoleModel "ems.agt/features/sys_role/model"
sysUserModel "ems.agt/features/sys_user/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/date"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"ems.agt/src/framework/utils/crypto"
sysRoleModel "be.ems/features/sys_role/model"
sysUserModel "be.ems/features/sys_user/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/date"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
"be.ems/src/framework/utils/crypto"
)
// 实例化数据层 RepoSysUser 结构体

View File

@@ -4,8 +4,8 @@ import (
"errors"
"fmt"
sysUserModel "ems.agt/features/sys_user/model"
sysuserrole "ems.agt/features/sys_user_role"
sysUserModel "be.ems/features/sys_user/model"
sysuserrole "be.ems/features/sys_user_role"
)
// 实例化服务层 ServiceSysUser 结构体

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoSysUserRole 结构体

View File

@@ -7,14 +7,14 @@ import (
"strings"
"time"
"ems.agt/lib/core/conf"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/restagent/config"
"ems.agt/src/framework/utils/cmd"
"ems.agt/src/framework/utils/ssh"
"be.ems/lib/core/conf"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/vo/result"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/restagent/config"
"be.ems/src/framework/utils/cmd"
"be.ems/src/framework/utils/ssh"
)
var (

View File

@@ -12,12 +12,12 @@ import (
"github.com/go-resty/resty/v2"
"github.com/gorilla/mux"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/run"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/run"
"be.ems/lib/services"
"be.ems/restagent/config"
)
var (

View File

@@ -7,20 +7,20 @@ import (
"strings"
"time"
"ems.agt/features/udm_user/model"
"ems.agt/features/udm_user/service"
"ems.agt/lib/core/conf"
mmlclient "ems.agt/lib/core/mml_client"
"ems.agt/lib/core/utils/ctx"
"ems.agt/lib/core/vo/result"
"ems.agt/lib/dborm"
"ems.agt/lib/log"
"ems.agt/lib/midware"
"ems.agt/lib/services"
"ems.agt/restagent/config"
"ems.agt/src/framework/middleware/collectlogs"
"ems.agt/src/framework/utils/file"
"ems.agt/src/framework/utils/ssh"
"be.ems/features/udm_user/model"
"be.ems/features/udm_user/service"
"be.ems/lib/core/conf"
mmlclient "be.ems/lib/core/mml_client"
"be.ems/lib/core/utils/ctx"
"be.ems/lib/core/vo/result"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/lib/midware"
"be.ems/lib/services"
"be.ems/restagent/config"
"be.ems/src/framework/middleware/collectlogs"
"be.ems/src/framework/utils/file"
"be.ems/src/framework/utils/ssh"
)
// UDM 用户信息接口添加到路由

View File

@@ -4,10 +4,10 @@ import (
"strconv"
"strings"
"ems.agt/features/udm_user/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/udm_user/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoUdmAuthUser 结构体

View File

@@ -5,10 +5,10 @@ import (
"strconv"
"strings"
"ems.agt/features/udm_user/model"
"ems.agt/lib/core/datasource"
"ems.agt/lib/core/utils/parse"
"ems.agt/lib/log"
"be.ems/features/udm_user/model"
"be.ems/lib/core/datasource"
"be.ems/lib/core/utils/parse"
"be.ems/lib/log"
)
// 实例化数据层 RepoUdmSubUser 结构体

View File

@@ -3,8 +3,8 @@ package service
import (
"strings"
"ems.agt/features/udm_user/model"
"ems.agt/src/framework/redis"
"be.ems/features/udm_user/model"
"be.ems/src/framework/redis"
)
// phoneImsiList 获取所有imsi

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"strconv"
"ems.agt/features/udm_user/model"
"ems.agt/features/udm_user/repo"
"be.ems/features/udm_user/model"
"be.ems/features/udm_user/repo"
)
// 实例化服务层 ServiceUdmAuthUser 结构体

View File

@@ -5,8 +5,8 @@ import (
"strconv"
"strings"
"ems.agt/features/udm_user/model"
"ems.agt/features/udm_user/repo"
"be.ems/features/udm_user/model"
"be.ems/features/udm_user/repo"
)
// 实例化服务层 ServiceUdmSubUser 结构体

View File

@@ -8,12 +8,12 @@ import (
"strings"
"time"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
"ems.agt/lib/services"
"ems.agt/restagent/config"
tokenConst "ems.agt/src/framework/constants/token"
"be.ems/lib/dborm"
"be.ems/lib/global"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/restagent/config"
tokenConst "be.ems/src/framework/constants/token"
"github.com/go-resty/resty/v2"
"github.com/gorilla/mux"
)

2
go.mod
View File

@@ -1,4 +1,4 @@
module ems.agt
module be.ems
go 1.21

View File

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

View File

@@ -4,7 +4,7 @@ import (
"database/sql"
"regexp"
"ems.agt/lib/dborm"
"be.ems/lib/dborm"
"xorm.io/xorm"
)

View File

@@ -7,7 +7,7 @@ import (
"net"
"time"
"ems.agt/lib/core/conf"
"be.ems/lib/core/conf"
)
// 定义MMLClient结构体

View File

@@ -10,9 +10,9 @@ import (
"path/filepath"
"strings"
"ems.agt/lib/core/vo"
commonConstants "ems.agt/src/framework/constants/common"
tokenConst "ems.agt/src/framework/constants/token"
"be.ems/lib/core/vo"
commonConstants "be.ems/src/framework/constants/common"
tokenConst "be.ems/src/framework/constants/token"
"github.com/gorilla/mux"
)

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"time"
"ems.agt/lib/log"
"be.ems/lib/log"
)
const (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More