chore: 打包程序包变更nms_cxy
@@ -1,4 +1,4 @@
|
|||||||
# nms_nbi
|
# nms_cxy
|
||||||
|
|
||||||
网络管理系统-北向接口
|
网络管理系统-北向接口
|
||||||
|
|
||||||
@@ -43,5 +43,5 @@ go env -w GOOS=linux
|
|||||||
|
|
||||||
go env -w GOOS=windows
|
go env -w GOOS=windows
|
||||||
|
|
||||||
go build -o restagent -v -ldflags "-X 'nms_nbi/lib/global.Version=2.2311.8' -X 'nms_nbi/lib/global.BuildTime=`date`' -X 'nms_nbi/lib/global.GoVer=`go version`'"
|
go build -o restagent -v -ldflags "-X 'nms_cxy/lib/global.Version=2.2311.8' -X 'nms_cxy/lib/global.BuildTime=`date`' -X 'nms_cxy/lib/global.GoVer=`go version`'"
|
||||||
```
|
```
|
||||||
|
|||||||
67
build.sh
@@ -10,29 +10,28 @@ Ky10Arch=ky10.aarch64
|
|||||||
RpmPkgName=${ProjectL}-${RelVer}.ky10.aarch64.rpm
|
RpmPkgName=${ProjectL}-${RelVer}.ky10.aarch64.rpm
|
||||||
RpmPkgRename=${ProjectL}-r${RelVer}-ky10.rpm
|
RpmPkgRename=${ProjectL}-r${RelVer}-ky10.rpm
|
||||||
DebPkgName=${ProjectL}-r${RelVer}-ub*.deb
|
DebPkgName=${ProjectL}-r${RelVer}-ub*.deb
|
||||||
GitLocalRoot=/home/agtuser/probject/nms_cxy
|
GitLocalRoot=${EmsBEDir}
|
||||||
EmsBEDir=/home/agtuser/probject/nms_cxy
|
EmsBEDir=${EmsBEDir}
|
||||||
EmsBuildRoot=/home/agtuser/probject/nms_cxy/build
|
EmsBuildRoot=${EmsBEDir}/build
|
||||||
RpmArch=`arch`
|
RpmArch=`arch`
|
||||||
RpmsDir=/home/agtuser/probject/nms_cxy/build/rpmbuild/RPMS/
|
RpmsDir=${EmsBEDir}/build/rpmbuild/RPMS/
|
||||||
ReleaseDir=/home/agtuser/probject/nms_cxy/build/release
|
ReleaseDir=${EmsBEDir}/build/release
|
||||||
|
|
||||||
PLATFORM=amd64
|
PLATFORM=amd64
|
||||||
ARMPLATFORM=aarch64
|
ARMPLATFORM=aarch64
|
||||||
BuildDir=/home/agtuser/probject/nms_cxy/build/build
|
BuildDir=${EmsBEDir}/build/build
|
||||||
BuildOMCDir=/home/agtuser/probject/nms_cxy/build/build/usr/local/omc
|
BuildOMCDir=${EmsBEDir}/build/build/usr/local/omc
|
||||||
BuildOMCBinDir=/home/agtuser/probject/nms_cxy/build/build/usr/local/omc/bin
|
BuildOMCBinDir=${EmsBEDir}/build/build/usr/local/omc/bin
|
||||||
BuildOMCEtcDir=/home/agtuser/probject/nms_cxy/build/build/usr/local/omc/etc
|
BuildOMCEtcDir=${EmsBEDir}/build/build/usr/local/omc/etc
|
||||||
BuildLibSystemDir=/home/agtuser/probject/nms_cxy/build/build/lib/systemd/system
|
BuildLibSystemDir=${EmsBEDir}/build/build/lib/systemd/system
|
||||||
DebBuildDir=/home/agtuser/probject/nms_cxy/build/debbuild
|
DebBuildDir=${EmsBEDir}/build/debbuild
|
||||||
DebFEBuildDir=/home/agtuser/probject/nms_cxy/build/debbuild/usr/local/omc/htdocs
|
DebFEBuildDir=${EmsBEDir}/build/debbuild/usr/local/omc/htdocs
|
||||||
DebBuild2204Dir=/home/agtuser/probject/nms_cxy/build/debbuild/22.04
|
DebBuild2204Dir=${EmsBEDir}/build/debbuild/22.04
|
||||||
DebFEBuild2204Dir=/home/agtuser/probject/nms_cxy/build/debbuild/22.04/usr/local/omc/htdocs
|
DebFEBuild2204Dir=${EmsBEDir}/build/debbuild/22.04/usr/local/omc/htdocs
|
||||||
RpmBuildDir=/home/agtuser/probject/nms_cxy/build/rpmbuild
|
RpmBuildDir=${EmsBEDir}/build/rpmbuild
|
||||||
RpmFEBuildDir=/home/agtuser/probject/nms_cxy/build/rpmbuild/BUILD/usr/local/omc/htdocs
|
RpmFEBuildDir=${EmsBEDir}/build/rpmbuild/BUILD/usr/local/omc/htdocs
|
||||||
OmcInstallDir=/usr/local/omc
|
OmcInstallDir=/usr/local/omc
|
||||||
ConfigEtcDir=/home/agtuser/probject/nms_cxy/build/config/etc
|
ConfigEtcDir=${EmsBEDir}/build/config/etc
|
||||||
ConfigSystemdDir=/home/agtuser/probject/nms_cxy/build/config/systemd
|
ConfigSystemdDir=${EmsBEDir}/build/config/systemd
|
||||||
EmsFEVue3Dir=/home/agtuser/Docker/nginx/html/dist
|
EmsFEVue3Dir=/home/agtuser/Docker/nginx/html/dist
|
||||||
RESTAGENT=restagent
|
RESTAGENT=restagent
|
||||||
CRONTASK=crontask
|
CRONTASK=crontask
|
||||||
@@ -42,15 +41,15 @@ Data2htmlBin=data2html
|
|||||||
NBI_ALARM=nbi_alarm
|
NBI_ALARM=nbi_alarm
|
||||||
NBI_AGENT=nbi_agent
|
NBI_AGENT=nbi_agent
|
||||||
AAAA_AGENT=4a_agent
|
AAAA_AGENT=4a_agent
|
||||||
RestagentDir=/home/agtuser/probject/nms_cxy/restagent
|
RestagentDir=${EmsBEDir}/restagent
|
||||||
CrontaskDir=/usr/local/omc/bin
|
CrontaskDir=/usr/local/omc/bin
|
||||||
SshSvcDir=/usr/local/omc/bin
|
SshSvcDir=/usr/local/omc/bin
|
||||||
CapTraceDir=/usr/local/omc/bin
|
CapTraceDir=/usr/local/omc/bin
|
||||||
Data2htmlDir=/usr/local/omc/bin
|
Data2htmlDir=/usr/local/omc/bin
|
||||||
DBSQLSrcDir=/home/agtuser/probject/nms_cxy/build/database
|
DBSQLSrcDir=${EmsBEDir}/build/database
|
||||||
MiscDir=/home/agtuser/probject/nms_cxy/build/misc
|
MiscDir=${EmsBEDir}/build/misc
|
||||||
FrontBuildDir=/home/agtuser/probject/nms_cxy/build/build/usr/local/omc/htdocs
|
FrontBuildDir=${EmsBEDir}/build/build/usr/local/omc/htdocs
|
||||||
ReleaseDebs=/home/agtuser/probject/nms_cxy/build/release/debs/amd64
|
ReleaseDebs=${EmsBEDir}/build/release/debs/amd64
|
||||||
CrontaskSize=27788951
|
CrontaskSize=27788951
|
||||||
RestagentSize=29525312
|
RestagentSize=29525312
|
||||||
|
|
||||||
@@ -74,7 +73,7 @@ case "$1" in
|
|||||||
# clear build cache
|
# clear build cache
|
||||||
rm -rf ${FrontBuildDir}/front/*
|
rm -rf ${FrontBuildDir}/front/*
|
||||||
rm -rf ${RpmFEBuildDir}/front/*
|
rm -rf ${RpmFEBuildDir}/front/*
|
||||||
rm -rf /home/agtuser/probject/nms_cxy/build/rpmbuild/BUILD/usr/local/omc/etc/db/*
|
rm -rf ${EmsBEDir}/build/rpmbuild/BUILD/usr/local/omc/etc/db/*
|
||||||
|
|
||||||
cp -rf ${RestagentDir}/restagent ${BuildOMCBinDir}
|
cp -rf ${RestagentDir}/restagent ${BuildOMCBinDir}
|
||||||
cp -rf ${CrontaskDir}/crontask ${BuildOMCBinDir}
|
cp -rf ${CrontaskDir}/crontask ${BuildOMCBinDir}
|
||||||
@@ -100,11 +99,11 @@ case "$1" in
|
|||||||
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
|
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
|
||||||
chmod 755 ${BuildOMCBinDir}/*
|
chmod 755 ${BuildOMCBinDir}/*
|
||||||
# chmod 755 ${BinDir2}/*
|
# chmod 755 ${BinDir2}/*
|
||||||
cp -rf /home/agtuser/probject/nms_cxy/build/build/* /home/agtuser/probject/nms_cxy/build/rpmbuild/BUILD/
|
cp -rf ${EmsBEDir}/build/build/* ${EmsBEDir}/build/rpmbuild/BUILD/
|
||||||
#cp -rf /home/agtuser/probject/nms_cxy/build/build/nginx /home/agtuser/probject/nms_cxy/build/rpmbuild/BUILD/etc/
|
#cp -rf ${EmsBEDir}/build/build/nginx ${EmsBEDir}/build/rpmbuild/BUILD/etc/
|
||||||
#cp -rf /home/agtuser/probject/nms_cxy/build/build/systemd /home/agtuser/probject/nms_cxy/build/rpmbuild/BUILD/lib/
|
#cp -rf ${EmsBEDir}/build/build/systemd ${EmsBEDir}/build/rpmbuild/BUILD/lib/
|
||||||
cd /home/agtuser/probject/nms_cxy/build/rpmbuild
|
cd ${EmsBEDir}/build/rpmbuild
|
||||||
rpmbuild -bb -D "_topdir /home/agtuser/probject/nms_cxy/build/rpmbuild" /home/agtuser/probject/nms_cxy/build/rpmbuild/SPECS/omc.spec
|
rpmbuild -bb -D "_topdir ${EmsBEDir}/build/rpmbuild" ${EmsBEDir}/build/rpmbuild/SPECS/omc.spec
|
||||||
|
|
||||||
mv -f $RpmsDir/$RpmArch/$RpmPkgName $ReleaseDir/"$1"s/$RelArch/$RpmPkgRename
|
mv -f $RpmsDir/$RpmArch/$RpmPkgName $ReleaseDir/"$1"s/$RelArch/$RpmPkgRename
|
||||||
cd $ReleaseDir/"$1"s/$RelArch
|
cd $ReleaseDir/"$1"s/$RelArch
|
||||||
@@ -125,7 +124,7 @@ case "$1" in
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /home/agtuser/probject/nms_cxy
|
cd ${EmsBEDir}
|
||||||
|
|
||||||
#make deb
|
#make deb
|
||||||
# clear build cache
|
# clear build cache
|
||||||
@@ -152,9 +151,9 @@ case "$1" in
|
|||||||
chmod 755 ${DebBuildDir}/DEBIAN/preinst
|
chmod 755 ${DebBuildDir}/DEBIAN/preinst
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/postinst
|
chmod 755 ${DebBuildDir}/DEBIAN/postinst
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
||||||
cp -rf /home/agtuser/probject/nms_cxy/build/build/* ${DebBuildDir}/
|
cp -rf ${EmsBEDir}/build/build/* ${DebBuildDir}/
|
||||||
# cp -rf /home/agtuser/probject/nms_cxy/build/build/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
# cp -rf ${EmsBEDir}/build/build/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
||||||
# cp -rf /home/agtuser/probject/nms_cxy/build/build/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
# cp -rf ${EmsBEDir}/build/build/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
||||||
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
||||||
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
||||||
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: agtuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
|
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: agtuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
|
||||||
|
|||||||
64
build/build/etc/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
|
# ssl_certificate /usr/share/nginx/cert/www.x.cn_chain.crt;
|
||||||
|
# ssl_certificate_key /usr/share/nginx/cert/www.x.cn.key;
|
||||||
|
|
||||||
|
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||||
|
ssl_session_timeout 5m;
|
||||||
|
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
|
||||||
|
ssl_prefer_server_ciphers on;
|
||||||
|
ssl_dhparam /usr/share/nginx/cert/dhparams.pem;
|
||||||
|
|
||||||
|
# OMC
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html/dist;
|
||||||
|
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /omc-api/ {
|
||||||
|
proxy_pass http://192.168.5.57:33030/;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api/rest/ {
|
||||||
|
proxy_pass http://192.168.5.57:33030/nms-cxy/api/rest/;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
}
|
||||||
|
|
||||||
|
#error_page 404 /404.html;
|
||||||
|
|
||||||
|
# redirect server error pages to the static page /50x.html
|
||||||
|
#
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,269 +0,0 @@
|
|||||||
SET FOREIGN_KEY_CHECKS = 0;
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_config` (
|
|
||||||
`config_id`,
|
|
||||||
`config_name`,
|
|
||||||
`config_key`,
|
|
||||||
`config_value`,
|
|
||||||
`config_type`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
106,
|
|
||||||
'config.sys.title',
|
|
||||||
'sys.title',
|
|
||||||
'config.sys.titleValue',
|
|
||||||
'Y',
|
|
||||||
'supervisor',
|
|
||||||
1698110000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
'config.sys.titleRemark'
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_config` (
|
|
||||||
`config_id`,
|
|
||||||
`config_name`,
|
|
||||||
`config_key`,
|
|
||||||
`config_value`,
|
|
||||||
`config_type`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
107,
|
|
||||||
'config.sys.copyright',
|
|
||||||
'sys.copyright',
|
|
||||||
'config.sys.copyrightValue',
|
|
||||||
'Y',
|
|
||||||
'supervisor',
|
|
||||||
1698110000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
'config.sys.copyrightRemark'
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_config` (
|
|
||||||
`config_id`,
|
|
||||||
`config_name`,
|
|
||||||
`config_key`,
|
|
||||||
`config_value`,
|
|
||||||
`config_type`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
108,
|
|
||||||
'config.sys.i18nOpen',
|
|
||||||
'sys.i18n.open',
|
|
||||||
'false',
|
|
||||||
'Y',
|
|
||||||
'supervisor',
|
|
||||||
1698110000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
'config.sys.i18nOpenRemark'
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_config` (
|
|
||||||
`config_id`,
|
|
||||||
`config_name`,
|
|
||||||
`config_key`,
|
|
||||||
`config_value`,
|
|
||||||
`config_type`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
109,
|
|
||||||
'Internationalization Default Language',
|
|
||||||
'sys.i18n.default',
|
|
||||||
'en_US',
|
|
||||||
'Y',
|
|
||||||
'supervisor',
|
|
||||||
1698110000000,
|
|
||||||
'supervisor',
|
|
||||||
1702632906566,
|
|
||||||
'config.sys.i18nDefaultRemark'
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_config` (
|
|
||||||
`config_id`,
|
|
||||||
`config_name`,
|
|
||||||
`config_key`,
|
|
||||||
`config_value`,
|
|
||||||
`config_type`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
6,
|
|
||||||
'config.sys.officialUrl',
|
|
||||||
'sys.officialUrl',
|
|
||||||
'https://www.bluearcus.com',
|
|
||||||
'Y',
|
|
||||||
'supervisor',
|
|
||||||
1698110000000,
|
|
||||||
'admin',
|
|
||||||
1700809804330,
|
|
||||||
'config.sys.officialUrlRemark'
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_dict_data` (
|
|
||||||
`dict_code`,
|
|
||||||
`dict_sort`,
|
|
||||||
`dict_label`,
|
|
||||||
`dict_value`,
|
|
||||||
`dict_type`,
|
|
||||||
`tag_class`,
|
|
||||||
`tag_type`,
|
|
||||||
`status`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
1660,
|
|
||||||
1660,
|
|
||||||
'config.sys.titleValue',
|
|
||||||
'BlueArcus EMS',
|
|
||||||
'i18n_zh',
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
'1',
|
|
||||||
'supervisor',
|
|
||||||
1699350000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_dict_data` (
|
|
||||||
`dict_code`,
|
|
||||||
`dict_sort`,
|
|
||||||
`dict_label`,
|
|
||||||
`dict_value`,
|
|
||||||
`dict_type`,
|
|
||||||
`tag_class`,
|
|
||||||
`tag_type`,
|
|
||||||
`status`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
3660,
|
|
||||||
3660,
|
|
||||||
'config.sys.titleValue',
|
|
||||||
'BlueArcus EMS',
|
|
||||||
'i18n_en',
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
'1',
|
|
||||||
'supervisor',
|
|
||||||
1699350000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_dict_data` (
|
|
||||||
`dict_code`,
|
|
||||||
`dict_sort`,
|
|
||||||
`dict_label`,
|
|
||||||
`dict_value`,
|
|
||||||
`dict_type`,
|
|
||||||
`tag_class`,
|
|
||||||
`tag_type`,
|
|
||||||
`status`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
1661,
|
|
||||||
1661,
|
|
||||||
'config.sys.copyrightValue',
|
|
||||||
'Copyright ©2023 BlueArcus',
|
|
||||||
'i18n_zh',
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
'1',
|
|
||||||
'supervisor',
|
|
||||||
1699350000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
REPLACE
|
|
||||||
INTO `omc_db`.`sys_dict_data` (
|
|
||||||
`dict_code`,
|
|
||||||
`dict_sort`,
|
|
||||||
`dict_label`,
|
|
||||||
`dict_value`,
|
|
||||||
`dict_type`,
|
|
||||||
`tag_class`,
|
|
||||||
`tag_type`,
|
|
||||||
`status`,
|
|
||||||
`create_by`,
|
|
||||||
`create_time`,
|
|
||||||
`update_by`,
|
|
||||||
`update_time`,
|
|
||||||
`remark`
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
3661,
|
|
||||||
3661,
|
|
||||||
'config.sys.copyrightValue',
|
|
||||||
'Copyright ©2023 BlueArcus',
|
|
||||||
'i18n_en',
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
'1',
|
|
||||||
'supervisor',
|
|
||||||
1699350000000,
|
|
||||||
NULL,
|
|
||||||
0,
|
|
||||||
NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
-- set internationalization switching to OFF
|
|
||||||
-- DELETE FROM `omc_db`.`sys_role_menu` WHERE `menu_id` = 2122;
|
|
||||||
UPDATE `omc_db`.`sys_menu`
|
|
||||||
SET
|
|
||||||
`status` = '0'
|
|
||||||
WHERE
|
|
||||||
`menu_id` = 2122;
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
@@ -506,4 +506,18 @@ VALUES (
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- 性能数据文件的上报
|
||||||
|
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.performance_upload_oss', 'SYSTEM', 'performance_upload_oss', '{\"interval\":15,\"neTypes\":[\"AMF\",\"UPF\"]}', '0 0/15 * * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710817306404, 'job.nms_cxy.performance_upload_oss_remark');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (210, 210, 'job.nms_cxy.performance_upload_oss', '性能数据文件的上报', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (211, 211, 'job.nms_cxy.performance_upload_oss_remark', 'interval周期为15分钟。neTypes为数组对应上报数据的网元类型。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (212, 212, 'job.nms_cxy.performance_upload_oss', 'Reporting of performance data files', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (213, 213, 'job.nms_cxy.performance_upload_oss_remark', 'The interval period is 15 minutes. neTypes is an array corresponding to the type of network element for which the data was reported.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
|
||||||
|
-- 资源数据上报接口
|
||||||
|
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.resource_upload_oss', 'SYSTEM', 'resource_upload_oss', '{\"interval\":15}', '0 0 0,12 * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710818082110, 'job.nms_cxy.resource_upload_oss_remark');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (215, 215, 'job.nms_cxy.resource_upload_oss', '资源数据上报接口', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (216, 216, 'job.nms_cxy.resource_upload_oss_remark', '每天的 0 时及 12 时上报网元的全量资源数据文件至 OSS。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (217, 217, 'job.nms_cxy.resource_upload_oss', 'Resource data reporting interface', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (218, 218, 'job.nms_cxy.resource_upload_oss_remark', 'Full resource data files for network elements are reported to the OSS at 0000 and 1200 hours each day.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
@@ -184,3 +184,18 @@ ADD INDEX IF NOT EXISTS `idx_severity_status` (
|
|||||||
|
|
||||||
ALTER TABLE `omc_db`.`mml_system`
|
ALTER TABLE `omc_db`.`mml_system`
|
||||||
ADD COLUMN IF NOT EXISTS `object_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'mml' AFTER `mml_display`;
|
ADD COLUMN IF NOT EXISTS `object_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'mml' AFTER `mml_display`;
|
||||||
|
|
||||||
|
-- 性能数据文件的上报
|
||||||
|
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.performance_upload_oss', 'SYSTEM', 'performance_upload_oss', '{\"interval\":15,\"neTypes\":[\"AMF\",\"UPF\"]}', '0 0/15 * * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710817306404, 'job.nms_cxy.performance_upload_oss_remark');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (210, 210, 'job.nms_cxy.performance_upload_oss', '性能数据文件的上报', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (211, 211, 'job.nms_cxy.performance_upload_oss_remark', 'interval周期为15分钟。neTypes为数组对应上报数据的网元类型。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (212, 212, 'job.nms_cxy.performance_upload_oss', 'Reporting of performance data files', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (213, 213, 'job.nms_cxy.performance_upload_oss_remark', 'The interval period is 15 minutes. neTypes is an array corresponding to the type of network element for which the data was reported.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
|
||||||
|
-- 资源数据上报接口
|
||||||
|
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.resource_upload_oss', 'SYSTEM', 'resource_upload_oss', '{\"interval\":15}', '0 0 0,12 * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710818082110, 'job.nms_cxy.resource_upload_oss_remark');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (215, 215, 'job.nms_cxy.resource_upload_oss', '资源数据上报接口', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (216, 216, 'job.nms_cxy.resource_upload_oss_remark', '每天的 0 时及 12 时上报网元的全量资源数据文件至 OSS。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (217, 217, 'job.nms_cxy.resource_upload_oss', 'Resource data reporting interface', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
INSERT IGNORE INTO `sys_dict_data` VALUES (218, 218, 'job.nms_cxy.resource_upload_oss_remark', 'Full resource data files for network elements are reported to the OSS at 0000 and 1200 hours each day.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import (
|
|||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/oauth"
|
"nms_cxy/lib/oauth"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
wsService "nms_nbi/src/modules/ws/service"
|
wsService "nms_cxy/src/modules/ws/service"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExecCmd(command string) error {
|
func ExecCmd(command string) error {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExecCmd(command string) error {
|
func ExecCmd(command string) error {
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
neService "nms_nbi/src/modules/network_element/service"
|
neService "nms_cxy/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"
|
||||||
|
|||||||
@@ -3,18 +3,18 @@ package cm
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/conf"
|
"nms_cxy/lib/core/conf"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
wsService "nms_nbi/src/modules/ws/service"
|
wsService "nms_cxy/src/modules/ws/service"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/file"
|
"nms_cxy/lib/file"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/shirou/gopsutil/disk"
|
"github.com/shirou/gopsutil/disk"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/file"
|
"nms_cxy/lib/file"
|
||||||
|
|
||||||
"github.com/spf13/afero"
|
"github.com/spf13/afero"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,14 +10,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
"nms_nbi/src/framework/utils/date"
|
"nms_cxy/src/framework/utils/date"
|
||||||
neDataModel "nms_nbi/src/modules/network_data/model"
|
neDataModel "nms_cxy/src/modules/network_data/model"
|
||||||
nmsCXYService "nms_nbi/src/modules/nms_cxy/service"
|
nmsCXYService "nms_cxy/src/modules/nms_cxy/service"
|
||||||
|
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"gopkg.in/gomail.v2"
|
"gopkg.in/gomail.v2"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/linxGnu/gosmpp"
|
"github.com/linxGnu/gosmpp"
|
||||||
"github.com/linxGnu/gosmpp/data"
|
"github.com/linxGnu/gosmpp/data"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/chzyer/readline"
|
"github.com/chzyer/readline"
|
||||||
"github.com/go-gsm/ucp"
|
"github.com/go-gsm/ucp"
|
||||||
|
|||||||
@@ -8,17 +8,17 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
g "github.com/gosnmp/gosnmp"
|
g "github.com/gosnmp/gosnmp"
|
||||||
|
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/oauth"
|
"nms_cxy/lib/oauth"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/lib/session"
|
"nms_cxy/lib/session"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var TodoList []stTodo
|
var TodoList []stTodo
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/cpu"
|
"github.com/shirou/gopsutil/cpu"
|
||||||
"github.com/shirou/gopsutil/disk"
|
"github.com/shirou/gopsutil/disk"
|
||||||
|
|||||||
@@ -10,14 +10,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/mmlp"
|
"nms_cxy/lib/mmlp"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/disk"
|
"github.com/shirou/gopsutil/disk"
|
||||||
"github.com/shirou/gopsutil/net"
|
"github.com/shirou/gopsutil/net"
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/robfig/cron/v3"
|
"github.com/robfig/cron/v3"
|
||||||
"github.com/shirou/gopsutil/v3/cpu"
|
"github.com/shirou/gopsutil/v3/cpu"
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/lib/wsinfo"
|
"nms_cxy/lib/wsinfo"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/shirou/gopsutil/process"
|
"github.com/shirou/gopsutil/process"
|
||||||
|
|||||||
@@ -6,18 +6,18 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/oauth"
|
"nms_cxy/lib/oauth"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/lib/session"
|
"nms_cxy/lib/session"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ErrorOAuthResponse struct {
|
type ErrorOAuthResponse struct {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
g "github.com/gosnmp/gosnmp"
|
g "github.com/gosnmp/gosnmp"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
@@ -10,15 +10,15 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|
||||||
wsService "nms_nbi/src/modules/ws/service"
|
wsService "nms_cxy/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"
|
||||||
|
|||||||
@@ -10,22 +10,22 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/security/service"
|
"nms_cxy/features/security/service"
|
||||||
sysConfigService "nms_nbi/features/sys_config/service"
|
sysConfigService "nms_cxy/features/sys_config/service"
|
||||||
"nms_nbi/lib/core/account"
|
"nms_cxy/lib/core/account"
|
||||||
"nms_nbi/lib/core/cache"
|
"nms_cxy/lib/core/cache"
|
||||||
"nms_nbi/lib/core/constants/cachekey"
|
"nms_cxy/lib/core/constants/cachekey"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/oauth"
|
"nms_cxy/lib/oauth"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
srcConfig "nms_nbi/src/framework/config"
|
srcConfig "nms_cxy/src/framework/config"
|
||||||
"nms_nbi/src/framework/i18n"
|
"nms_cxy/src/framework/i18n"
|
||||||
"nms_nbi/src/framework/redis"
|
"nms_cxy/src/framework/redis"
|
||||||
|
|
||||||
"github.com/mojocn/base64Captcha"
|
"github.com/mojocn/base64Captcha"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
menuService "nms_nbi/features/sys_menu/service"
|
menuService "nms_cxy/features/sys_menu/service"
|
||||||
roleService "nms_nbi/features/sys_role/service"
|
roleService "nms_cxy/features/sys_role/service"
|
||||||
userService "nms_nbi/features/sys_user/service"
|
userService "nms_cxy/features/sys_user/service"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/vo"
|
"nms_cxy/lib/core/vo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceAccount 结构体
|
// 实例化服务层 ServiceAccount 结构体
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CpuUsage struct {
|
type CpuUsage struct {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/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"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/cpu"
|
"github.com/shirou/gopsutil/cpu"
|
||||||
"github.com/shirou/gopsutil/disk"
|
"github.com/shirou/gopsutil/disk"
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/sys_config/model"
|
"nms_cxy/features/sys_config/model"
|
||||||
"nms_nbi/features/sys_config/service"
|
"nms_cxy/features/sys_config/service"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 参数配置信息接口添加到路由
|
// 参数配置信息接口添加到路由
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/sys_config/model"
|
"nms_cxy/features/sys_config/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/date"
|
"nms_cxy/lib/core/utils/date"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysConfig 结构体
|
// 实例化数据层 RepoSysConfig 结构体
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package service
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"nms_nbi/features/sys_config/model"
|
"nms_cxy/features/sys_config/model"
|
||||||
"nms_nbi/lib/core/cache"
|
"nms_cxy/lib/core/cache"
|
||||||
"nms_nbi/lib/core/constants/cachekey"
|
"nms_cxy/lib/core/constants/cachekey"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceSysConfig 结构体
|
// 实例化服务层 ServiceSysConfig 结构体
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/sys_dict_data/model"
|
"nms_cxy/features/sys_dict_data/model"
|
||||||
sysDictDataService "nms_nbi/features/sys_dict_data/service"
|
sysDictDataService "nms_cxy/features/sys_dict_data/service"
|
||||||
sysDictTypeService "nms_nbi/features/sys_dict_type/service"
|
sysDictTypeService "nms_cxy/features/sys_dict_type/service"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 字典类型对应的字典数据信息接口添加到路由
|
// 字典类型对应的字典数据信息接口添加到路由
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/sys_dict_data/model"
|
"nms_cxy/features/sys_dict_data/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysDictData 结构体
|
// 实例化数据层 RepoSysDictData 结构体
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package service
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"nms_nbi/features/sys_dict_data/model"
|
"nms_cxy/features/sys_dict_data/model"
|
||||||
"nms_nbi/features/sys_dict_data/repo"
|
"nms_cxy/features/sys_dict_data/repo"
|
||||||
sysDictTypeService "nms_nbi/features/sys_dict_type/service"
|
sysDictTypeService "nms_cxy/features/sys_dict_type/service"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceSysDictData 结构体
|
// 实例化服务层 ServiceSysDictData 结构体
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/sys_dict_type/model"
|
"nms_cxy/features/sys_dict_type/model"
|
||||||
sysDictTypeService "nms_nbi/features/sys_dict_type/service"
|
sysDictTypeService "nms_cxy/features/sys_dict_type/service"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 字典类型信息接口添加到路由
|
// 字典类型信息接口添加到路由
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/sys_dict_type/model"
|
"nms_cxy/features/sys_dict_type/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/date"
|
"nms_cxy/lib/core/utils/date"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysDictType 结构体
|
// 实例化数据层 RepoSysDictType 结构体
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
sysDictDataModel "nms_nbi/features/sys_dict_data/model"
|
sysDictDataModel "nms_cxy/features/sys_dict_data/model"
|
||||||
sysDictDataRepo "nms_nbi/features/sys_dict_data/repo"
|
sysDictDataRepo "nms_cxy/features/sys_dict_data/repo"
|
||||||
sysDictTypeModel "nms_nbi/features/sys_dict_type/model"
|
sysDictTypeModel "nms_cxy/features/sys_dict_type/model"
|
||||||
"nms_nbi/features/sys_dict_type/repo"
|
"nms_cxy/features/sys_dict_type/repo"
|
||||||
"nms_nbi/lib/core/cache"
|
"nms_cxy/lib/core/cache"
|
||||||
"nms_nbi/lib/core/constants/cachekey"
|
"nms_cxy/lib/core/constants/cachekey"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceSysDictType 结构体
|
// 实例化服务层 ServiceSysDictType 结构体
|
||||||
|
|||||||
@@ -4,16 +4,16 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"nms_nbi/features/sys_menu/consts"
|
"nms_cxy/features/sys_menu/consts"
|
||||||
"nms_nbi/features/sys_menu/model"
|
"nms_cxy/features/sys_menu/model"
|
||||||
"nms_nbi/features/sys_menu/service"
|
"nms_cxy/features/sys_menu/service"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/regular"
|
"nms_cxy/lib/core/utils/regular"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
srcConfig "nms_nbi/src/framework/config"
|
srcConfig "nms_cxy/src/framework/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 菜单接口添加到路由
|
// 菜单接口添加到路由
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/sys_menu/consts"
|
"nms_cxy/features/sys_menu/consts"
|
||||||
"nms_nbi/features/sys_menu/model"
|
"nms_cxy/features/sys_menu/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysMenu 结构体
|
// 实例化数据层 RepoSysMenu 结构体
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ import (
|
|||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/sys_menu/consts"
|
"nms_cxy/features/sys_menu/consts"
|
||||||
"nms_nbi/features/sys_menu/model"
|
"nms_cxy/features/sys_menu/model"
|
||||||
sysRoleService "nms_nbi/features/sys_role/service"
|
sysRoleService "nms_cxy/features/sys_role/service"
|
||||||
sysrolemenu "nms_nbi/features/sys_role_menu"
|
sysrolemenu "nms_cxy/features/sys_role_menu"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/utils/regular"
|
"nms_cxy/lib/core/utils/regular"
|
||||||
"nms_nbi/lib/core/vo"
|
"nms_cxy/lib/core/vo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceSysMenu 结构体
|
// 实例化服务层 ServiceSysMenu 结构体
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/sys_role/model"
|
"nms_cxy/features/sys_role/model"
|
||||||
"nms_nbi/features/sys_role/service"
|
"nms_cxy/features/sys_role/service"
|
||||||
userService "nms_nbi/features/sys_user/service"
|
userService "nms_cxy/features/sys_user/service"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 角色接口添加到路由
|
// 角色接口添加到路由
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/sys_role/model"
|
"nms_cxy/features/sys_role/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/date"
|
"nms_cxy/lib/core/utils/date"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysRole 结构体
|
// 实例化数据层 RepoSysRole 结构体
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"nms_nbi/features/sys_role/model"
|
"nms_cxy/features/sys_role/model"
|
||||||
sysrolemenu "nms_nbi/features/sys_role_menu"
|
sysrolemenu "nms_cxy/features/sys_role_menu"
|
||||||
sysuserrole "nms_nbi/features/sys_user_role"
|
sysuserrole "nms_cxy/features/sys_user_role"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceSysRole 结构体
|
// 实例化服务层 ServiceSysRole 结构体
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysRoleMenu 结构体
|
// 实例化数据层 RepoSysRoleMenu 结构体
|
||||||
|
|||||||
@@ -5,17 +5,17 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
sysRoleModel "nms_nbi/features/sys_role/model"
|
sysRoleModel "nms_cxy/features/sys_role/model"
|
||||||
sysRoleService "nms_nbi/features/sys_role/service"
|
sysRoleService "nms_cxy/features/sys_role/service"
|
||||||
sysUserModel "nms_nbi/features/sys_user/model"
|
sysUserModel "nms_cxy/features/sys_user/model"
|
||||||
"nms_nbi/features/sys_user/service"
|
"nms_cxy/features/sys_user/service"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
srcConfig "nms_nbi/src/framework/config"
|
srcConfig "nms_cxy/src/framework/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 用户接口添加到路由
|
// 用户接口添加到路由
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import "nms_nbi/features/sys_role/model"
|
import "nms_cxy/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"`
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
sysRoleModel "nms_nbi/features/sys_role/model"
|
sysRoleModel "nms_cxy/features/sys_role/model"
|
||||||
sysUserModel "nms_nbi/features/sys_user/model"
|
sysUserModel "nms_cxy/features/sys_user/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/date"
|
"nms_cxy/lib/core/utils/date"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/src/framework/utils/crypto"
|
"nms_cxy/src/framework/utils/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysUser 结构体
|
// 实例化数据层 RepoSysUser 结构体
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
sysUserModel "nms_nbi/features/sys_user/model"
|
sysUserModel "nms_cxy/features/sys_user/model"
|
||||||
sysuserrole "nms_nbi/features/sys_user_role"
|
sysuserrole "nms_cxy/features/sys_user_role"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceSysUser 结构体
|
// 实例化服务层 ServiceSysUser 结构体
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoSysUserRole 结构体
|
// 实例化数据层 RepoSysUserRole 结构体
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/conf"
|
"nms_cxy/lib/core/conf"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
"nms_nbi/src/framework/utils/cmd"
|
"nms_cxy/src/framework/utils/cmd"
|
||||||
"nms_nbi/src/framework/utils/ssh"
|
"nms_cxy/src/framework/utils/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/run"
|
"nms_cxy/lib/run"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -7,20 +7,20 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/features/udm_user/model"
|
"nms_cxy/features/udm_user/model"
|
||||||
"nms_nbi/features/udm_user/service"
|
"nms_cxy/features/udm_user/service"
|
||||||
"nms_nbi/lib/core/conf"
|
"nms_cxy/lib/core/conf"
|
||||||
mmlclient "nms_nbi/lib/core/mml_client"
|
mmlclient "nms_cxy/lib/core/mml_client"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
"nms_nbi/src/framework/middleware/collectlogs"
|
"nms_cxy/src/framework/middleware/collectlogs"
|
||||||
"nms_nbi/src/framework/utils/file"
|
"nms_cxy/src/framework/utils/file"
|
||||||
"nms_nbi/src/framework/utils/ssh"
|
"nms_cxy/src/framework/utils/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UDM 用户信息接口添加到路由
|
// UDM 用户信息接口添加到路由
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/udm_user/model"
|
"nms_cxy/features/udm_user/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoUdmAuthUser 结构体
|
// 实例化数据层 RepoUdmAuthUser 结构体
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/udm_user/model"
|
"nms_cxy/features/udm_user/model"
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化数据层 RepoUdmSubUser 结构体
|
// 实例化数据层 RepoUdmSubUser 结构体
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package service
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/udm_user/model"
|
"nms_cxy/features/udm_user/model"
|
||||||
"nms_nbi/src/framework/redis"
|
"nms_cxy/src/framework/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
// phoneImsiList 获取所有imsi
|
// phoneImsiList 获取所有imsi
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"nms_nbi/features/udm_user/model"
|
"nms_cxy/features/udm_user/model"
|
||||||
"nms_nbi/features/udm_user/repo"
|
"nms_cxy/features/udm_user/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceUdmAuthUser 结构体
|
// 实例化服务层 ServiceUdmAuthUser 结构体
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/udm_user/model"
|
"nms_cxy/features/udm_user/model"
|
||||||
"nms_nbi/features/udm_user/repo"
|
"nms_cxy/features/udm_user/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 实例化服务层 ServiceUdmSubUser 结构体
|
// 实例化服务层 ServiceUdmSubUser 结构体
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/restagent/config"
|
"nms_cxy/restagent/config"
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
sysMenuService "nms_nbi/features/sys_menu/service"
|
sysMenuService "nms_cxy/features/sys_menu/service"
|
||||||
sysRoleService "nms_nbi/features/sys_role/service"
|
sysRoleService "nms_cxy/features/sys_role/service"
|
||||||
"nms_nbi/lib/core/cache"
|
"nms_cxy/lib/core/cache"
|
||||||
"nms_nbi/lib/core/vo"
|
"nms_cxy/lib/core/vo"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
srcConfig "nms_nbi/src/framework/config"
|
srcConfig "nms_cxy/src/framework/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 登录缓存用户信息
|
// 登录缓存用户信息
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
|
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/conf"
|
"nms_cxy/lib/core/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 定义MMLClient结构体
|
// 定义MMLClient结构体
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/core/vo"
|
"nms_cxy/lib/core/vo"
|
||||||
commonConstants "nms_nbi/src/framework/constants/common"
|
commonConstants "nms_cxy/src/framework/constants/common"
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"golang.org/x/text/language"
|
"golang.org/x/text/language"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package vo
|
package vo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LoginUser 登录用户身份权限信息对象
|
// LoginUser 登录用户身份权限信息对象
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package vo
|
package vo
|
||||||
|
|
||||||
// import sysmenu "nms_nbi/features/sys_menu"
|
// import sysmenu "nms_cxy/features/sys_menu"
|
||||||
|
|
||||||
// TreeSelect 树结构实体类
|
// TreeSelect 树结构实体类
|
||||||
type TreeSelect struct {
|
type TreeSelect struct {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/features/sys_role/model"
|
"nms_cxy/features/sys_role/model"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/oauth"
|
"nms_cxy/lib/oauth"
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 登录策略限制登录时间和访问ip范围
|
// 登录策略限制登录时间和访问ip范围
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"nms_nbi/lib/core/cache"
|
"nms_cxy/lib/core/cache"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/vo"
|
"nms_cxy/lib/core/vo"
|
||||||
"nms_nbi/lib/core/vo/result"
|
"nms_cxy/lib/core/vo/result"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
commonConstants "nms_nbi/src/framework/constants/common"
|
commonConstants "nms_cxy/src/framework/constants/common"
|
||||||
tokenUtils "nms_nbi/src/framework/utils/token"
|
tokenUtils "nms_cxy/src/framework/utils/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Authorize 用户身份授权认证校验
|
// Authorize 用户身份授权认证校验
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/datasource"
|
"nms_cxy/lib/core/datasource"
|
||||||
"nms_nbi/lib/core/utils/ctx"
|
"nms_cxy/lib/core/utils/ctx"
|
||||||
"nms_nbi/lib/core/utils/date"
|
"nms_cxy/lib/core/utils/date"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LogMML mml操作日志搜集
|
// LogMML mml操作日志搜集
|
||||||
|
|||||||
@@ -11,13 +11,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/core/utils/parse"
|
"nms_cxy/lib/core/utils/parse"
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/src/framework/constants/common"
|
"nms_cxy/src/framework/constants/common"
|
||||||
"nms_nbi/src/framework/middleware/collectlogs"
|
"nms_cxy/src/framework/middleware/collectlogs"
|
||||||
"nms_nbi/src/framework/utils/ip2region"
|
"nms_cxy/src/framework/utils/ip2region"
|
||||||
"nms_nbi/src/modules/system/model"
|
"nms_cxy/src/modules/system/model"
|
||||||
"nms_nbi/src/modules/system/service"
|
"nms_cxy/src/modules/system/service"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 敏感属性字段进行掩码
|
// 敏感属性字段进行掩码
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"nms_nbi/lib/dborm"
|
"nms_cxy/lib/dborm"
|
||||||
"nms_nbi/lib/global"
|
"nms_cxy/lib/global"
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
"nms_nbi/lib/run"
|
"nms_cxy/lib/run"
|
||||||
tokenConst "nms_nbi/src/framework/constants/token"
|
tokenConst "nms_cxy/src/framework/constants/token"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|||||||
@@ -5,33 +5,33 @@ import (
|
|||||||
|
|
||||||
// "log"
|
// "log"
|
||||||
|
|
||||||
"nms_nbi/features/aaaa"
|
"nms_cxy/features/aaaa"
|
||||||
"nms_nbi/features/cdr"
|
"nms_cxy/features/cdr"
|
||||||
"nms_nbi/features/cm"
|
"nms_cxy/features/cm"
|
||||||
"nms_nbi/features/dbrest"
|
"nms_cxy/features/dbrest"
|
||||||
"nms_nbi/features/file"
|
"nms_cxy/features/file"
|
||||||
"nms_nbi/features/fm"
|
"nms_cxy/features/fm"
|
||||||
"nms_nbi/features/lm"
|
"nms_cxy/features/lm"
|
||||||
"nms_nbi/features/mml"
|
"nms_cxy/features/mml"
|
||||||
"nms_nbi/features/monitor/monitor"
|
"nms_cxy/features/monitor/monitor"
|
||||||
"nms_nbi/features/monitor/psnet"
|
"nms_cxy/features/monitor/psnet"
|
||||||
"nms_nbi/features/nbi"
|
"nms_cxy/features/nbi"
|
||||||
"nms_nbi/features/pm"
|
"nms_cxy/features/pm"
|
||||||
"nms_nbi/features/security"
|
"nms_cxy/features/security"
|
||||||
"nms_nbi/features/sm"
|
"nms_cxy/features/sm"
|
||||||
"nms_nbi/features/state"
|
"nms_cxy/features/state"
|
||||||
sysconfig "nms_nbi/features/sys_config"
|
sysconfig "nms_cxy/features/sys_config"
|
||||||
sysdictdata "nms_nbi/features/sys_dict_data"
|
sysdictdata "nms_cxy/features/sys_dict_data"
|
||||||
sysdicttype "nms_nbi/features/sys_dict_type"
|
sysdicttype "nms_cxy/features/sys_dict_type"
|
||||||
sysmenu "nms_nbi/features/sys_menu"
|
sysmenu "nms_cxy/features/sys_menu"
|
||||||
sysrole "nms_nbi/features/sys_role"
|
sysrole "nms_cxy/features/sys_role"
|
||||||
sysuser "nms_nbi/features/sys_user"
|
sysuser "nms_cxy/features/sys_user"
|
||||||
"nms_nbi/features/trace"
|
"nms_cxy/features/trace"
|
||||||
udmuser "nms_nbi/features/udm_user"
|
udmuser "nms_cxy/features/udm_user"
|
||||||
"nms_nbi/features/ue"
|
"nms_cxy/features/ue"
|
||||||
"nms_nbi/lib/midware"
|
"nms_cxy/lib/midware"
|
||||||
"nms_nbi/lib/services"
|
"nms_cxy/lib/services"
|
||||||
"nms_nbi/src/framework/middleware/collectlogs"
|
"nms_cxy/src/framework/middleware/collectlogs"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExecCmd(command, path string) ([]byte, error) {
|
func ExecCmd(command, path string) ([]byte, error) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package run
|
|||||||
import (
|
import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"nms_nbi/lib/log"
|
"nms_cxy/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExecCmd(command, path string) ([]byte, error) {
|
func ExecCmd(command, path string) ([]byte, error) {
|
||||||
|
|||||||