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

View File

@@ -53,7 +53,7 @@ go env -w GOOS=linux
go env -w GOOS=windows 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" "strings"
"sync" "sync"
"ems.agt/captrace/config" "be.ems/captrace/config"
"ems.agt/lib/dborm" "be.ems/lib/dborm"
"ems.agt/lib/global" "be.ems/lib/global"
"ems.agt/lib/log" "be.ems/lib/log"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"golang.org/x/net/http/httpguts" "golang.org/x/net/http/httpguts"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -10,14 +10,14 @@ import (
"strconv" "strconv"
"time" "time"
"ems.agt/lib/dborm" "be.ems/lib/dborm"
"ems.agt/lib/global" "be.ems/lib/global"
"ems.agt/lib/log" "be.ems/lib/log"
"ems.agt/lib/services" "be.ems/lib/services"
"ems.agt/restagent/config" "be.ems/restagent/config"
"xorm.io/xorm" "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-resty/resty/v2"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/gorilla/mux" "github.com/gorilla/mux"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

2
go.mod
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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