From 25c573d55986e02cf5f70cc3868e2b94a4be98e2 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 25 八月 2023 19:35:57 +0800
Subject: [PATCH] change package name
---
initialize/gorm_pgsql.go | 6
model/system/sys_dictionary.go | 2
middleware/limit_ip.go | 4
model/system/response/sys_user.go | 2
model/system/sys_operation_record.go | 2
model/test/request/supplier_type.go | 4
router/system/sys_authority.go | 4
plugin/email/api/sys_email.go | 8
service/test/supplier.go | 8
go.mod | 2
service/system/sys_initdb_pgsql.go | 8
model/system/sys_menu_btn.go | 2
api/v1/system/enter.go | 2
router/system/sys_dictionary_detail.go | 4
model/system/request/sys_api.go | 4
utils/validator_test.go | 2
api/v1/test/industry.go | 12
core/viper.go | 6
initialize/internal/logger.go | 2
router/system/sys_initdb.go | 2
service/system/jwt_black_list.go | 6
utils/upload/obs.go | 2
router/system/sys_api.go | 4
source/system/authorities_menus.go | 4
api/v1/system/sys_initdb.go | 6
router/system/sys_auto_code_history.go | 2
initialize/other.go | 4
api/v1/system/sys_authority.go | 14
model/system/response/sys_authority.go | 2
router/system/sys_auto_code.go | 2
initialize/redis.go | 2
model/system/request/sys_dictionary.go | 4
service/system/sys_initdb.go | 4
plugin/plugin-tool/utils/check.go | 4
router/test/contract.go | 2
service/system/sys_operation_record.go | 8
api/v1/system/sys_user.go | 14
initialize/plugin.go | 8
api/v1/system/sys_auto_code.go | 8
service/system/sys_user.go | 8
source/example/file_upload_download.go | 4
api/v1/test/supplier_type.go | 12
model/system/response/sys_api.go | 2
service/system/sys_api.go | 6
router/system/sys_menu.go | 4
model/system/sys_dictionary_detail.go | 2
model/test/request/supplier.go | 4
source/system/menu.go | 4
utils/clamis.go | 4
model/system/request/sys_user.go | 2
utils/directory.go | 2
service/enter.go | 6
model/test/contract.go | 2
api/v1/system/sys_authority_btn.go | 6
utils/jwt.go | 4
plugin/email/service/sys_email.go | 2
utils/ast/ast_gorm.go | 2
api/v1/enter.go | 6
model/system/request/sys_chatgpt.go | 4
source/system/api.go | 4
api/v1/system/sys_chatgpt.go | 8
global/global.go | 4
initialize/gorm.go | 8
service/system/sys_auto_code_interface.go | 4
service/system/sys_auto_code_oracle.go | 4
model/system/response/sys_casbin.go | 2
utils/upload/upload.go | 2
service/test/contract.go | 8
api/v1/system/sys_dictionary_detail.go | 10
docs/swagger.json | 12
model/system/request/sys_auto_history.go | 2
service/system/sys_menu.go | 6
service/system/sys_system.go | 8
service/test/industry.go | 8
service/system/sys_auto_code_pgsql.go | 4
utils/injection_code.go | 4
model/test/request/industry.go | 4
router/system/sys_casbin.go | 4
router/test/supplier_type.go | 2
service/system/sys_dictionary_detail.go | 6
utils/upload/tencent_cos.go | 2
router/system/sys_chatgpt.go | 4
api/v1/system/sys_casbin.go | 10
service/system/sys_base_menu.go | 4
api/v1/system/sys_jwt_blacklist.go | 6
utils/upload/qiniu.go | 2
config.yaml | 6
initialize/gorm_sqlite.go | 6
model/test/request/contract.go | 4
core/internal/file_rotatelogs.go | 2
docs/swagger.yaml | 12
model/system/sys_base_menu.go | 2
service/system/sys_authority.go | 8
plugin/email/main.go | 4
router/system/sys_operation_record.go | 2
initialize/validator.go | 2
service/system/sys_initdb_mysql.go | 8
api/v1/test/supplier.go | 14
initialize/timer.go | 6
source/system/dictionary.go | 4
service/test/supplier_type.go | 8
source/system/user.go | 6
initialize/ensure_tables.go | 6
utils/ast/ast_gorm_test.go | 4
initialize/gorm_oracle.go | 6
initialize/register_init.go | 4
model/system/response/sys_menu.go | 2
model/system/sys_auto_code.go | 2
router/test/supplier.go | 2
service/system/sys_autocode_history.go | 14
plugin/email/utils/email.go | 2
source/system/casbin.go | 2
service/system/sys_dictionary.go | 6
service/system/sys_initdb_sqlite.go | 8
core/server.go | 6
plugin/email/global/gloabl.go | 2
core/internal/zap.go | 2
model/system/sys_api.go | 2
api/v1/system/sys_api.go | 14
core/zap.go | 6
middleware/operation.go | 8
utils/upload/local.go | 4
docs/docs.go | 12
api/v1/system/sys_system.go | 10
router/system/sys_authority_btn.go | 2
config.docker.yaml | 8
source/system/authority.go | 6
model/test/industry.go | 2
service/system/sys_casbin.go | 4
middleware/casbin_rbac.go | 8
utils/ast/ast_rollback.go | 4
api/v1/example/enter.go | 2
middleware/jwt.go | 10
plugin/email/router/sys_email.go | 4
service/system/sys_chatgpt.go | 6
utils/upload/aliyun_oss.go | 2
main.go | 6
model/system/request/sys_init.go | 2
source/system/dictionary_detail.go | 4
initialize/gorm_mysql.go | 6
middleware/cors.go | 4
model/system/response/sys_system.go | 2
api/v1/system/sys_captcha.go | 6
model/system/sys_user.go | 2
model/system/request/sys_menu.go | 4
initialize/gorm_mssql.go | 6
api/v1/system/sys_menu.go | 14
service/system/sys_authority_btn.go | 8
router/test/industry.go | 2
router/system/sys_user.go | 4
service/system/sys_auto_code_sqlite.go | 4
router/system/sys_dictionary.go | 4
model/system/request/sys_dictionary_detail.go | 4
service/system/sys_auto_code_mssql.go | 4
utils/captcha/redis.go | 2
initialize/db_list.go | 4
initialize/internal/gorm.go | 2
api/v1/system/sys_operation_record.go | 12
router/system/sys_system.go | 4
model/test/supplier_type.go | 2
model/system/sys_jwt_blacklist.go | 2
utils/upload/aws_s3.go | 2
router/system/sys_base.go | 2
middleware/need_init.go | 4
middleware/email.go | 10
model/system/sys_system.go | 2
model/system/request/sys_operation_record.go | 4
router/system/sys_jwt.go | 2
model/system/sys_autocode_history.go | 4
Dockerfile | 10
service/system/sys_auto_code.go | 16
api/v1/system/sys_dictionary.go | 10
initialize/router.go | 6
model/test/supplier.go | 4
service/system/sys_auto_code_mysql.go | 4
api/v1/test/contract.go | 12
middleware/error.go | 2
api/v1/system/sys_auto_code_history.go | 8
router/enter.go | 6
179 files changed, 456 insertions(+), 456 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 545f708..25a4881 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
FROM golang:alpine as builder
-WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
+WORKDIR /go/src/srm
COPY . .
RUN go env -w GO111MODULE=on \
@@ -14,11 +14,11 @@
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
-WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
+WORKDIR /go/src/srm
-COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/server ./
-COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/resource ./resource/
-COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.docker.yaml ./
+COPY --from=0 /go/src/srm/server ./
+COPY --from=0 /go/src/srm/resource ./resource/
+COPY --from=0 /go/src/srm/config.docker.yaml ./
EXPOSE 8888
ENTRYPOINT ./server -c config.docker.yaml
diff --git a/api/v1/enter.go b/api/v1/enter.go
index f62a2c4..abf2784 100644
--- a/api/v1/enter.go
+++ b/api/v1/enter.go
@@ -1,9 +1,9 @@
package v1
import (
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1/example"
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1/system"
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1/test"
+ "srm/api/v1/example"
+ "srm/api/v1/system"
+ "srm/api/v1/test"
)
type ApiGroup struct {
diff --git a/api/v1/example/enter.go b/api/v1/example/enter.go
index c182328..3441c4e 100644
--- a/api/v1/example/enter.go
+++ b/api/v1/example/enter.go
@@ -1,6 +1,6 @@
package example
-import "github.com/flipped-aurora/gin-vue-admin/server/service"
+import "srm/service"
type ApiGroup struct {
CustomerApi
diff --git a/api/v1/system/enter.go b/api/v1/system/enter.go
index 6227519..534cb5c 100644
--- a/api/v1/system/enter.go
+++ b/api/v1/system/enter.go
@@ -1,6 +1,6 @@
package system
-import "github.com/flipped-aurora/gin-vue-admin/server/service"
+import "srm/service"
type ApiGroup struct {
DBApi
diff --git a/api/v1/system/sys_api.go b/api/v1/system/sys_api.go
index 90e135d..134d092 100644
--- a/api/v1/system/sys_api.go
+++ b/api/v1/system/sys_api.go
@@ -1,13 +1,13 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/system"
+ systemReq "srm/model/system/request"
+ systemRes "srm/model/system/response"
+ "srm/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
diff --git a/api/v1/system/sys_authority.go b/api/v1/system/sys_authority.go
index 25eee08..baef24e 100644
--- a/api/v1/system/sys_authority.go
+++ b/api/v1/system/sys_authority.go
@@ -1,13 +1,13 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/system"
+ systemReq "srm/model/system/request"
+ systemRes "srm/model/system/response"
+ "srm/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
diff --git a/api/v1/system/sys_authority_btn.go b/api/v1/system/sys_authority_btn.go
index 94f02a0..3a5d1fe 100644
--- a/api/v1/system/sys_authority_btn.go
+++ b/api/v1/system/sys_authority_btn.go
@@ -1,11 +1,11 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system/request"
)
type AuthorityBtnApi struct{}
diff --git a/api/v1/system/sys_auto_code.go b/api/v1/system/sys_auto_code.go
index 34ab8c3..688040d 100644
--- a/api/v1/system/sys_auto_code.go
+++ b/api/v1/system/sys_auto_code.go
@@ -7,10 +7,10 @@
"os"
"strings"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system"
+ "srm/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
diff --git a/api/v1/system/sys_auto_code_history.go b/api/v1/system/sys_auto_code_history.go
index 4ad6b5e..855c761 100644
--- a/api/v1/system/sys_auto_code_history.go
+++ b/api/v1/system/sys_auto_code_history.go
@@ -1,12 +1,12 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ systemReq "srm/model/system/request"
)
type AutoCodeHistoryApi struct{}
diff --git a/api/v1/system/sys_captcha.go b/api/v1/system/sys_captcha.go
index c61714e..4f92d04 100644
--- a/api/v1/system/sys_captcha.go
+++ b/api/v1/system/sys_captcha.go
@@ -3,12 +3,12 @@
import (
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
"github.com/gin-gonic/gin"
"github.com/mojocn/base64Captcha"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ systemRes "srm/model/system/response"
)
// 褰撳紑鍚鏈嶅姟鍣ㄩ儴缃叉椂锛屾浛鎹笅闈㈢殑閰嶇疆锛屼娇鐢╮edis鍏变韩瀛樺偍楠岃瘉鐮�
diff --git a/api/v1/system/sys_casbin.go b/api/v1/system/sys_casbin.go
index 632718e..305385b 100644
--- a/api/v1/system/sys_casbin.go
+++ b/api/v1/system/sys_casbin.go
@@ -1,13 +1,13 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system/request"
+ systemRes "srm/model/system/response"
+ "srm/utils"
)
type CasbinApi struct{}
diff --git a/api/v1/system/sys_chatgpt.go b/api/v1/system/sys_chatgpt.go
index af1f0cd..7f632a0 100644
--- a/api/v1/system/sys_chatgpt.go
+++ b/api/v1/system/sys_chatgpt.go
@@ -1,12 +1,12 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ sysModel "srm/model/system"
+ "srm/model/system/request"
)
type ChatGptApi struct{}
diff --git a/api/v1/system/sys_dictionary.go b/api/v1/system/sys_dictionary.go
index c096966..7f703b1 100644
--- a/api/v1/system/sys_dictionary.go
+++ b/api/v1/system/sys_dictionary.go
@@ -1,13 +1,13 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system"
+ "srm/model/system/request"
+ "srm/utils"
)
type DictionaryApi struct{}
diff --git a/api/v1/system/sys_dictionary_detail.go b/api/v1/system/sys_dictionary_detail.go
index 754af1b..b875430 100644
--- a/api/v1/system/sys_dictionary_detail.go
+++ b/api/v1/system/sys_dictionary_detail.go
@@ -1,13 +1,13 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system"
+ "srm/model/system/request"
+ "srm/utils"
)
type DictionaryDetailApi struct{}
diff --git a/api/v1/system/sys_initdb.go b/api/v1/system/sys_initdb.go
index 5f740c6..0d3d03e 100644
--- a/api/v1/system/sys_initdb.go
+++ b/api/v1/system/sys_initdb.go
@@ -1,10 +1,10 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system/request"
"github.com/gin-gonic/gin"
)
diff --git a/api/v1/system/sys_jwt_blacklist.go b/api/v1/system/sys_jwt_blacklist.go
index cd67196..6c068d6 100644
--- a/api/v1/system/sys_jwt_blacklist.go
+++ b/api/v1/system/sys_jwt_blacklist.go
@@ -1,11 +1,11 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system"
)
type JwtApi struct{}
diff --git a/api/v1/system/sys_menu.go b/api/v1/system/sys_menu.go
index 8889ae7..20dc842 100644
--- a/api/v1/system/sys_menu.go
+++ b/api/v1/system/sys_menu.go
@@ -1,13 +1,13 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/system"
+ systemReq "srm/model/system/request"
+ systemRes "srm/model/system/response"
+ "srm/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
diff --git a/api/v1/system/sys_operation_record.go b/api/v1/system/sys_operation_record.go
index 40daeb9..cfaa569 100644
--- a/api/v1/system/sys_operation_record.go
+++ b/api/v1/system/sys_operation_record.go
@@ -1,14 +1,14 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/system"
+ systemReq "srm/model/system/request"
+ "srm/utils"
)
type OperationRecordApi struct{}
diff --git a/api/v1/system/sys_system.go b/api/v1/system/sys_system.go
index af6ab71..c20f5f7 100644
--- a/api/v1/system/sys_system.go
+++ b/api/v1/system/sys_system.go
@@ -1,11 +1,11 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system"
+ systemRes "srm/model/system/response"
+ "srm/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
diff --git a/api/v1/system/sys_user.go b/api/v1/system/sys_user.go
index 46554e6..f9a77cf 100644
--- a/api/v1/system/sys_user.go
+++ b/api/v1/system/sys_user.go
@@ -4,13 +4,13 @@
"strconv"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/system"
+ systemReq "srm/model/system/request"
+ systemRes "srm/model/system/response"
+ "srm/utils"
"github.com/gin-gonic/gin"
"github.com/redis/go-redis/v9"
diff --git a/api/v1/test/contract.go b/api/v1/test/contract.go
index b47a1eb..02b469c 100644
--- a/api/v1/test/contract.go
+++ b/api/v1/test/contract.go
@@ -1,14 +1,14 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/test"
+ testReq "srm/model/test/request"
+ "srm/service"
"strconv"
)
diff --git a/api/v1/test/industry.go b/api/v1/test/industry.go
index 646ba90..47caef3 100644
--- a/api/v1/test/industry.go
+++ b/api/v1/test/industry.go
@@ -1,14 +1,14 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/test"
+ testReq "srm/model/test/request"
+ "srm/service"
)
type IndustryApi struct {
diff --git a/api/v1/test/supplier.go b/api/v1/test/supplier.go
index 27943a5..86ec0b0 100644
--- a/api/v1/test/supplier.go
+++ b/api/v1/test/supplier.go
@@ -1,15 +1,15 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/test"
+ testReq "srm/model/test/request"
+ "srm/service"
+ "srm/utils"
)
type SupplierApi struct {
diff --git a/api/v1/test/supplier_type.go b/api/v1/test/supplier_type.go
index 4733d83..7b1a490 100644
--- a/api/v1/test/supplier_type.go
+++ b/api/v1/test/supplier_type.go
@@ -1,14 +1,14 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/test"
+ testReq "srm/model/test/request"
+ "srm/service"
)
type SupplierTypeApi struct {
diff --git a/config.docker.yaml b/config.docker.yaml
index 5d6e1eb..2ca244c 100644
--- a/config.docker.yaml
+++ b/config.docker.yaml
@@ -1,4 +1,4 @@
-# github.com/flipped-aurora/gin-vue-admin/server Global Configuration
+# srm Global Configuration
# jwt configuration
jwt:
@@ -10,7 +10,7 @@
zap:
level: info
format: console
- prefix: "[github.com/flipped-aurora/gin-vue-admin/server]"
+ prefix: "[srm]"
director: log
show-line: true
encode-level: LowercaseColorLevelEncoder
@@ -148,7 +148,7 @@
secret-id: your-secret-id
secret-key: your-secret-key
base-url: https://gin.vue.admin
- path-prefix: github.com/flipped-aurora/gin-vue-admin/server
+ path-prefix: srm
# aws s3 configuration (minio compatible)
aws-s3:
@@ -160,7 +160,7 @@
secret-id: your-secret-id
secret-key: your-secret-key
base-url: https://gin.vue.admin
- path-prefix: github.com/flipped-aurora/gin-vue-admin/server
+ path-prefix: srm
# huawei obs configuration
hua-wei-obs:
diff --git a/config.yaml b/config.yaml
index 7ce8f58..2a23c43 100644
--- a/config.yaml
+++ b/config.yaml
@@ -27,7 +27,7 @@
secret-id: your-secret-id
secret-key: your-secret-key
base-url: https://gin.vue.admin
- path-prefix: github.com/flipped-aurora/gin-vue-admin/server
+ path-prefix: srm
s3-force-path-style: false
disable-ssl: false
captcha:
@@ -188,7 +188,7 @@
secret-id: your-secret-id
secret-key: your-secret-key
base-url: https://gin.vue.admin
- path-prefix: github.com/flipped-aurora/gin-vue-admin/server
+ path-prefix: srm
timer:
spec: '@daily'
detail:
@@ -202,7 +202,7 @@
with_seconds: false
zap:
level: info
- prefix: '[github.com/flipped-aurora/gin-vue-admin/server]'
+ prefix: '[srm]'
format: console
director: log
encode-level: LowercaseColorLevelEncoder
diff --git a/core/internal/file_rotatelogs.go b/core/internal/file_rotatelogs.go
index cde97b9..39e2158 100644
--- a/core/internal/file_rotatelogs.go
+++ b/core/internal/file_rotatelogs.go
@@ -1,11 +1,11 @@
package internal
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"go.uber.org/zap/zapcore"
"os"
"path"
+ "srm/global"
"time"
)
diff --git a/core/internal/zap.go b/core/internal/zap.go
index 9cfa55f..c4860b2 100644
--- a/core/internal/zap.go
+++ b/core/internal/zap.go
@@ -2,9 +2,9 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
+ "srm/global"
"time"
)
diff --git a/core/server.go b/core/server.go
index 283c2f7..29b8b47 100644
--- a/core/server.go
+++ b/core/server.go
@@ -4,10 +4,10 @@
"fmt"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"go.uber.org/zap"
+ "srm/global"
+ "srm/initialize"
+ "srm/service/system"
)
type server interface {
diff --git a/core/viper.go b/core/viper.go
index 3f67f96..e3dd24c 100644
--- a/core/viper.go
+++ b/core/viper.go
@@ -3,16 +3,16 @@
import (
"flag"
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/core/internal"
"github.com/gin-gonic/gin"
"os"
"path/filepath"
+ "srm/core/internal"
"github.com/fsnotify/fsnotify"
"github.com/spf13/viper"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- _ "github.com/flipped-aurora/gin-vue-admin/server/packfile"
+ "srm/global"
+ _ "srm/packfile"
)
// Viper //
diff --git a/core/zap.go b/core/zap.go
index 7801194..d678443 100644
--- a/core/zap.go
+++ b/core/zap.go
@@ -2,12 +2,12 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/core/internal"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"os"
+ "srm/core/internal"
+ "srm/global"
+ "srm/utils"
)
// Zap 鑾峰彇 zap.Logger
diff --git a/docs/docs.go b/docs/docs.go
index a0deda1..f7ba6c5 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -3801,8 +3801,8 @@
"in": "query"
},
{
- "type": "string",
- "name": "file",
+ "type": "integer",
+ "name": "fileId",
"in": "query"
},
{
@@ -3916,8 +3916,8 @@
"in": "query"
},
{
- "type": "string",
- "name": "file",
+ "type": "integer",
+ "name": "fileId",
"in": "query"
},
{
@@ -8195,8 +8195,8 @@
"email": {
"type": "string"
},
- "file": {
- "type": "string"
+ "fileId": {
+ "type": "integer"
},
"id": {
"description": "涓婚敭ID",
diff --git a/docs/swagger.json b/docs/swagger.json
index a21e155..ae2bff8 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -3792,8 +3792,8 @@
"in": "query"
},
{
- "type": "string",
- "name": "file",
+ "type": "integer",
+ "name": "fileId",
"in": "query"
},
{
@@ -3907,8 +3907,8 @@
"in": "query"
},
{
- "type": "string",
- "name": "file",
+ "type": "integer",
+ "name": "fileId",
"in": "query"
},
{
@@ -8186,8 +8186,8 @@
"email": {
"type": "string"
},
- "file": {
- "type": "string"
+ "fileId": {
+ "type": "integer"
},
"id": {
"description": "涓婚敭ID",
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 12b41c7..09a96c0 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1523,8 +1523,8 @@
type: string
email:
type: string
- file:
- type: string
+ fileId:
+ type: integer
id:
description: 涓婚敭ID
type: integer
@@ -3730,8 +3730,8 @@
name: email
type: string
- in: query
- name: file
- type: string
+ name: fileId
+ type: integer
- description: 涓婚敭ID
in: query
name: id
@@ -3799,8 +3799,8 @@
name: endCreatedAt
type: string
- in: query
- name: file
- type: string
+ name: fileId
+ type: integer
- description: 涓婚敭ID
in: query
name: id
diff --git a/global/global.go b/global/global.go
index 130b7e5..0774085 100644
--- a/global/global.go
+++ b/global/global.go
@@ -3,14 +3,14 @@
import (
"sync"
- "github.com/flipped-aurora/gin-vue-admin/server/utils/timer"
"github.com/songzhibin97/gkit/cache/local_cache"
+ "srm/utils/timer"
"golang.org/x/sync/singleflight"
"go.uber.org/zap"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
+ "srm/config"
"github.com/redis/go-redis/v9"
"github.com/spf13/viper"
diff --git a/go.mod b/go.mod
index 5a7a67a..4013695 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/flipped-aurora/gin-vue-admin/server
+module srm
go 1.18
diff --git a/initialize/db_list.go b/initialize/db_list.go
index 90eef9e..cb24e16 100644
--- a/initialize/db_list.go
+++ b/initialize/db_list.go
@@ -1,9 +1,9 @@
package initialize
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"gorm.io/gorm"
+ "srm/config"
+ "srm/global"
)
const sys = "system"
diff --git a/initialize/ensure_tables.go b/initialize/ensure_tables.go
index 7205052..9f3d73c 100644
--- a/initialize/ensure_tables.go
+++ b/initialize/ensure_tables.go
@@ -3,10 +3,10 @@
import (
"context"
adapter "github.com/casbin/gorm-adapter/v3"
- "github.com/flipped-aurora/gin-vue-admin/server/model/example"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"gorm.io/gorm"
+ "srm/model/example"
+ sysModel "srm/model/system"
+ "srm/service/system"
)
const initOrderEnsureTables = system.InitOrderExternal - 1
diff --git a/initialize/gorm.go b/initialize/gorm.go
index e6cfc0a..e273877 100644
--- a/initialize/gorm.go
+++ b/initialize/gorm.go
@@ -3,13 +3,13 @@
import (
"os"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/example"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/global"
+ "srm/model/example"
+ "srm/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
"go.uber.org/zap"
"gorm.io/gorm"
+ "srm/model/test"
)
func Gorm() *gorm.DB {
diff --git a/initialize/gorm_mssql.go b/initialize/gorm_mssql.go
index a24984f..a6b7e86 100644
--- a/initialize/gorm_mssql.go
+++ b/initialize/gorm_mssql.go
@@ -9,11 +9,11 @@
package initialize
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize/internal"
"gorm.io/driver/sqlserver"
"gorm.io/gorm"
+ "srm/config"
+ "srm/global"
+ "srm/initialize/internal"
)
// GormMssql 鍒濆鍖朚ssql鏁版嵁搴�
diff --git a/initialize/gorm_mysql.go b/initialize/gorm_mysql.go
index 6e496a4..1cbaf98 100644
--- a/initialize/gorm_mysql.go
+++ b/initialize/gorm_mysql.go
@@ -1,12 +1,12 @@
package initialize
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize/internal"
_ "github.com/go-sql-driver/mysql"
"gorm.io/driver/mysql"
"gorm.io/gorm"
+ "srm/config"
+ "srm/global"
+ "srm/initialize/internal"
)
// GormMysql 鍒濆鍖朚ysql鏁版嵁搴�
diff --git a/initialize/gorm_oracle.go b/initialize/gorm_oracle.go
index 4d18c8a..37ebbdd 100644
--- a/initialize/gorm_oracle.go
+++ b/initialize/gorm_oracle.go
@@ -2,9 +2,9 @@
import (
//"github.com/dzwvip/oracle"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize/internal"
+ "srm/config"
+ "srm/global"
+ "srm/initialize/internal"
//_ "github.com/godror/godror"
"gorm.io/driver/mysql"
diff --git a/initialize/gorm_pgsql.go b/initialize/gorm_pgsql.go
index 625c873..56ac2b9 100644
--- a/initialize/gorm_pgsql.go
+++ b/initialize/gorm_pgsql.go
@@ -1,11 +1,11 @@
package initialize
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize/internal"
"gorm.io/driver/postgres"
"gorm.io/gorm"
+ "srm/config"
+ "srm/global"
+ "srm/initialize/internal"
)
// GormPgSql 鍒濆鍖� Postgresql 鏁版嵁搴�
diff --git a/initialize/gorm_sqlite.go b/initialize/gorm_sqlite.go
index 0412641..545fac4 100644
--- a/initialize/gorm_sqlite.go
+++ b/initialize/gorm_sqlite.go
@@ -1,11 +1,11 @@
package initialize
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize/internal"
"github.com/glebarez/sqlite"
"gorm.io/gorm"
+ "srm/config"
+ "srm/global"
+ "srm/initialize/internal"
)
// GormSqlite 鍒濆鍖朣qlite鏁版嵁搴�
diff --git a/initialize/internal/gorm.go b/initialize/internal/gorm.go
index 22a9ce3..095c11c 100644
--- a/initialize/internal/gorm.go
+++ b/initialize/internal/gorm.go
@@ -6,9 +6,9 @@
"os"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"gorm.io/gorm"
"gorm.io/gorm/logger"
+ "srm/global"
)
type DBBASE interface {
diff --git a/initialize/internal/logger.go b/initialize/internal/logger.go
index f8d2f34..1c71cd4 100644
--- a/initialize/internal/logger.go
+++ b/initialize/internal/logger.go
@@ -3,8 +3,8 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"gorm.io/gorm/logger"
+ "srm/global"
)
type writer struct {
diff --git a/initialize/other.go b/initialize/other.go
index 5d23aeb..6cdae43 100644
--- a/initialize/other.go
+++ b/initialize/other.go
@@ -3,8 +3,8 @@
import (
"github.com/songzhibin97/gkit/cache/local_cache"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/utils"
)
func OtherInit() {
diff --git a/initialize/plugin.go b/initialize/plugin.go
index 7155ffb..0a20930 100644
--- a/initialize/plugin.go
+++ b/initialize/plugin.go
@@ -3,11 +3,11 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email"
- "github.com/flipped-aurora/gin-vue-admin/server/utils/plugin"
"github.com/gin-gonic/gin"
+ "srm/global"
+ "srm/middleware"
+ "srm/plugin/email"
+ "srm/utils/plugin"
)
func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin) {
diff --git a/initialize/redis.go b/initialize/redis.go
index 4e631ab..17b3938 100644
--- a/initialize/redis.go
+++ b/initialize/redis.go
@@ -3,7 +3,7 @@
import (
"context"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
"github.com/redis/go-redis/v9"
"go.uber.org/zap"
diff --git a/initialize/register_init.go b/initialize/register_init.go
index a249661..76ea319 100644
--- a/initialize/register_init.go
+++ b/initialize/register_init.go
@@ -1,8 +1,8 @@
package initialize
import (
- _ "github.com/flipped-aurora/gin-vue-admin/server/source/example"
- _ "github.com/flipped-aurora/gin-vue-admin/server/source/system"
+ _ "srm/source/example"
+ _ "srm/source/system"
)
func init() {
diff --git a/initialize/router.go b/initialize/router.go
index 1890b45..7094d28 100644
--- a/initialize/router.go
+++ b/initialize/router.go
@@ -3,12 +3,12 @@
import (
"net/http"
- "github.com/flipped-aurora/gin-vue-admin/server/docs"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/router"
"github.com/gin-gonic/gin"
ginSwagger "github.com/swaggo/gin-swagger"
"github.com/swaggo/gin-swagger/swaggerFiles"
+ "srm/docs"
+ "srm/global"
+ "srm/router"
)
// 鍒濆鍖栨�昏矾鐢�
diff --git a/initialize/timer.go b/initialize/timer.go
index 024f3fe..29f2731 100644
--- a/initialize/timer.go
+++ b/initialize/timer.go
@@ -5,9 +5,9 @@
"github.com/robfig/cron/v3"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/config"
+ "srm/global"
+ "srm/utils"
)
func Timer() {
diff --git a/initialize/validator.go b/initialize/validator.go
index 79aea66..3de6608 100644
--- a/initialize/validator.go
+++ b/initialize/validator.go
@@ -1,6 +1,6 @@
package initialize
-import "github.com/flipped-aurora/gin-vue-admin/server/utils"
+import "srm/utils"
func init() {
_ = utils.RegisterRule("PageVerify",
diff --git a/main.go b/main.go
index fccba6e..d3816ec 100644
--- a/main.go
+++ b/main.go
@@ -3,9 +3,9 @@
import (
"go.uber.org/zap"
- "github.com/flipped-aurora/gin-vue-admin/server/core"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/initialize"
+ "srm/core"
+ "srm/global"
+ "srm/initialize"
)
//go:generate go env -w GO111MODULE=on
diff --git a/middleware/casbin_rbac.go b/middleware/casbin_rbac.go
index 7994db1..9e07b87 100644
--- a/middleware/casbin_rbac.go
+++ b/middleware/casbin_rbac.go
@@ -4,11 +4,11 @@
"strconv"
"strings"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gin-gonic/gin"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/service"
+ "srm/utils"
)
var casbinService = service.ServiceGroupApp.SystemServiceGroup.CasbinService
diff --git a/middleware/cors.go b/middleware/cors.go
index d7e3ccd..de18500 100644
--- a/middleware/cors.go
+++ b/middleware/cors.go
@@ -1,10 +1,10 @@
package middleware
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/gin-gonic/gin"
"net/http"
+ "srm/config"
+ "srm/global"
)
// Cors 鐩存帴鏀捐鎵�鏈夎法鍩熻姹傚苟鏀捐鎵�鏈� OPTIONS 鏂规硶
diff --git a/middleware/email.go b/middleware/email.go
index 4a07561..3593684 100644
--- a/middleware/email.go
+++ b/middleware/email.go
@@ -6,14 +6,14 @@
"strconv"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/utils"
- utils2 "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/plugin/email/utils"
+ utils2 "srm/utils"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/system"
+ "srm/service"
)
var userService = service.ServiceGroupApp.SystemServiceGroup.UserService
diff --git a/middleware/error.go b/middleware/error.go
index f68b7a5..77e1a8f 100644
--- a/middleware/error.go
+++ b/middleware/error.go
@@ -8,9 +8,9 @@
"runtime/debug"
"strings"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
)
// GinRecovery recover鎺夐」鐩彲鑳藉嚭鐜扮殑panic锛屽苟浣跨敤zap璁板綍鐩稿叧鏃ュ織
diff --git a/middleware/jwt.go b/middleware/jwt.go
index c67cc28..4db632f 100644
--- a/middleware/jwt.go
+++ b/middleware/jwt.go
@@ -6,12 +6,12 @@
"strconv"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/utils"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
+ "srm/global"
+ "srm/model/common/response"
+ "srm/model/system"
+ "srm/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
diff --git a/middleware/limit_ip.go b/middleware/limit_ip.go
index 315010b..b2feb3f 100644
--- a/middleware/limit_ip.go
+++ b/middleware/limit_ip.go
@@ -8,9 +8,9 @@
"go.uber.org/zap"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
"github.com/gin-gonic/gin"
+ "srm/global"
+ "srm/model/common/response"
)
type LimitConfig struct {
diff --git a/middleware/need_init.go b/middleware/need_init.go
index 2a68720..a674110 100644
--- a/middleware/need_init.go
+++ b/middleware/need_init.go
@@ -1,9 +1,9 @@
package middleware
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
"github.com/gin-gonic/gin"
+ "srm/global"
+ "srm/model/common/response"
)
// 澶勭悊璺ㄥ煙璇锋眰,鏀寔options璁块棶
diff --git a/middleware/operation.go b/middleware/operation.go
index 495d68e..fccb0fa 100644
--- a/middleware/operation.go
+++ b/middleware/operation.go
@@ -11,13 +11,13 @@
"sync"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/utils"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/system"
+ "srm/service"
)
var operationRecordService = service.ServiceGroupApp.SystemServiceGroup.OperationRecordService
diff --git a/model/system/request/sys_api.go b/model/system/request/sys_api.go
index 0be8ee7..15431ff 100644
--- a/model/system/request/sys_api.go
+++ b/model/system/request/sys_api.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/common/request"
+ "srm/model/system"
)
// api鍒嗛〉鏉′欢鏌ヨ鍙婃帓搴忕粨鏋勪綋
diff --git a/model/system/request/sys_auto_history.go b/model/system/request/sys_auto_history.go
index 48c95e6..807c0e7 100644
--- a/model/system/request/sys_auto_history.go
+++ b/model/system/request/sys_auto_history.go
@@ -1,6 +1,6 @@
package request
-import "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
+import "srm/model/common/request"
type SysAutoHistory struct {
request.PageInfo
diff --git a/model/system/request/sys_chatgpt.go b/model/system/request/sys_chatgpt.go
index af7f472..65527fe 100644
--- a/model/system/request/sys_chatgpt.go
+++ b/model/system/request/sys_chatgpt.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/common/request"
+ "srm/model/system"
)
type ChatGptRequest struct {
diff --git a/model/system/request/sys_dictionary.go b/model/system/request/sys_dictionary.go
index 170ed60..ea89140 100644
--- a/model/system/request/sys_dictionary.go
+++ b/model/system/request/sys_dictionary.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/common/request"
+ "srm/model/system"
)
type SysDictionarySearch struct {
diff --git a/model/system/request/sys_dictionary_detail.go b/model/system/request/sys_dictionary_detail.go
index 2f97da2..c82adea 100644
--- a/model/system/request/sys_dictionary_detail.go
+++ b/model/system/request/sys_dictionary_detail.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/common/request"
+ "srm/model/system"
)
type SysDictionaryDetailSearch struct {
diff --git a/model/system/request/sys_init.go b/model/system/request/sys_init.go
index d77a89a..2557824 100644
--- a/model/system/request/sys_init.go
+++ b/model/system/request/sys_init.go
@@ -2,8 +2,8 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
"os"
+ "srm/config"
)
type InitDB struct {
diff --git a/model/system/request/sys_menu.go b/model/system/request/sys_menu.go
index de39db8..4dd3416 100644
--- a/model/system/request/sys_menu.go
+++ b/model/system/request/sys_menu.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/global"
+ "srm/model/system"
)
// Add menu authority info structure
diff --git a/model/system/request/sys_operation_record.go b/model/system/request/sys_operation_record.go
index e58dd59..1c5efac 100644
--- a/model/system/request/sys_operation_record.go
+++ b/model/system/request/sys_operation_record.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/common/request"
+ "srm/model/system"
)
type SysOperationRecordSearch struct {
diff --git a/model/system/request/sys_user.go b/model/system/request/sys_user.go
index 08fb89b..e2c3c08 100644
--- a/model/system/request/sys_user.go
+++ b/model/system/request/sys_user.go
@@ -1,7 +1,7 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/system"
)
// Register User register structure
diff --git a/model/system/response/sys_api.go b/model/system/response/sys_api.go
index 09dc72f..9abf26f 100644
--- a/model/system/response/sys_api.go
+++ b/model/system/response/sys_api.go
@@ -1,6 +1,6 @@
package response
-import "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+import "srm/model/system"
type SysAPIResponse struct {
Api system.SysApi `json:"api"`
diff --git a/model/system/response/sys_authority.go b/model/system/response/sys_authority.go
index a055401..e7f1853 100644
--- a/model/system/response/sys_authority.go
+++ b/model/system/response/sys_authority.go
@@ -1,6 +1,6 @@
package response
-import "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+import "srm/model/system"
type SysAuthorityResponse struct {
Authority system.SysAuthority `json:"authority"`
diff --git a/model/system/response/sys_casbin.go b/model/system/response/sys_casbin.go
index 267bb42..bcd6a63 100644
--- a/model/system/response/sys_casbin.go
+++ b/model/system/response/sys_casbin.go
@@ -1,7 +1,7 @@
package response
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
+ "srm/model/system/request"
)
type PolicyPathResponse struct {
diff --git a/model/system/response/sys_menu.go b/model/system/response/sys_menu.go
index d8f80f3..9ea9106 100644
--- a/model/system/response/sys_menu.go
+++ b/model/system/response/sys_menu.go
@@ -1,6 +1,6 @@
package response
-import "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+import "srm/model/system"
type SysMenusResponse struct {
Menus []system.SysMenu `json:"menus"`
diff --git a/model/system/response/sys_system.go b/model/system/response/sys_system.go
index f19e965..1fbee1c 100644
--- a/model/system/response/sys_system.go
+++ b/model/system/response/sys_system.go
@@ -1,6 +1,6 @@
package response
-import "github.com/flipped-aurora/gin-vue-admin/server/config"
+import "srm/config"
type SysConfigResponse struct {
Config config.Server `json:"config"`
diff --git a/model/system/response/sys_user.go b/model/system/response/sys_user.go
index d6f1074..ea3eddd 100644
--- a/model/system/response/sys_user.go
+++ b/model/system/response/sys_user.go
@@ -1,7 +1,7 @@
package response
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/model/system"
)
type SysUserResponse struct {
diff --git a/model/system/sys_api.go b/model/system/sys_api.go
index 2b6ab36..6e5f82e 100644
--- a/model/system/sys_api.go
+++ b/model/system/sys_api.go
@@ -1,7 +1,7 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
type SysApi struct {
diff --git a/model/system/sys_auto_code.go b/model/system/sys_auto_code.go
index 1e94dd7..de8c608 100644
--- a/model/system/sys_auto_code.go
+++ b/model/system/sys_auto_code.go
@@ -5,7 +5,7 @@
"go/token"
"strings"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// AutoCodeStruct 鍒濆鐗堟湰鑷姩鍖栦唬鐮佸伐鍏�
diff --git a/model/system/sys_autocode_history.go b/model/system/sys_autocode_history.go
index 07cac3b..1ab33c0 100644
--- a/model/system/sys_autocode_history.go
+++ b/model/system/sys_autocode_history.go
@@ -4,8 +4,8 @@
"strconv"
"strings"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
+ "srm/global"
+ "srm/model/common/request"
)
// SysAutoCodeHistory 鑷姩杩佺Щ浠g爜璁板綍,鐢ㄤ簬鍥炴粴,閲嶆斁浣跨敤
diff --git a/model/system/sys_base_menu.go b/model/system/sys_base_menu.go
index a5060d4..543289d 100644
--- a/model/system/sys_base_menu.go
+++ b/model/system/sys_base_menu.go
@@ -1,7 +1,7 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
type SysBaseMenu struct {
diff --git a/model/system/sys_dictionary.go b/model/system/sys_dictionary.go
index c0b9bf7..1408d03 100644
--- a/model/system/sys_dictionary.go
+++ b/model/system/sys_dictionary.go
@@ -2,7 +2,7 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// 濡傛灉鍚湁time.Time 璇疯嚜琛宨mport time鍖�
diff --git a/model/system/sys_dictionary_detail.go b/model/system/sys_dictionary_detail.go
index 5e4f62b..4522701 100644
--- a/model/system/sys_dictionary_detail.go
+++ b/model/system/sys_dictionary_detail.go
@@ -2,7 +2,7 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// 濡傛灉鍚湁time.Time 璇疯嚜琛宨mport time鍖�
diff --git a/model/system/sys_jwt_blacklist.go b/model/system/sys_jwt_blacklist.go
index 4f9fa39..3c7a745 100644
--- a/model/system/sys_jwt_blacklist.go
+++ b/model/system/sys_jwt_blacklist.go
@@ -1,7 +1,7 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
type JwtBlacklist struct {
diff --git a/model/system/sys_menu_btn.go b/model/system/sys_menu_btn.go
index 9d32761..6218e1d 100644
--- a/model/system/sys_menu_btn.go
+++ b/model/system/sys_menu_btn.go
@@ -1,6 +1,6 @@
package system
-import "github.com/flipped-aurora/gin-vue-admin/server/global"
+import "srm/global"
type SysBaseMenuBtn struct {
global.GVA_MODEL
diff --git a/model/system/sys_operation_record.go b/model/system/sys_operation_record.go
index bd316bb..572ff8a 100644
--- a/model/system/sys_operation_record.go
+++ b/model/system/sys_operation_record.go
@@ -4,7 +4,7 @@
import (
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// 濡傛灉鍚湁time.Time 璇疯嚜琛宨mport time鍖�
diff --git a/model/system/sys_system.go b/model/system/sys_system.go
index ad98311..e65a4a1 100644
--- a/model/system/sys_system.go
+++ b/model/system/sys_system.go
@@ -1,7 +1,7 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
+ "srm/config"
)
// 閰嶇疆鏂囦欢缁撴瀯浣�
diff --git a/model/system/sys_user.go b/model/system/sys_user.go
index e985720..28181bd 100644
--- a/model/system/sys_user.go
+++ b/model/system/sys_user.go
@@ -1,8 +1,8 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/gofrs/uuid/v5"
+ "srm/global"
)
type SysUser struct {
diff --git a/model/test/contract.go b/model/test/contract.go
index 89c2f2b..5187a20 100644
--- a/model/test/contract.go
+++ b/model/test/contract.go
@@ -2,7 +2,7 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// Contract 缁撴瀯浣�
diff --git a/model/test/industry.go b/model/test/industry.go
index c61ff27..def6576 100644
--- a/model/test/industry.go
+++ b/model/test/industry.go
@@ -2,7 +2,7 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// Industry 缁撴瀯浣�
diff --git a/model/test/request/contract.go b/model/test/request/contract.go
index 9a1d948..b597cc5 100644
--- a/model/test/request/contract.go
+++ b/model/test/request/contract.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
+ "srm/model/common/request"
+ "srm/model/test"
"time"
)
diff --git a/model/test/request/industry.go b/model/test/request/industry.go
index 3837729..b80fcc2 100644
--- a/model/test/request/industry.go
+++ b/model/test/request/industry.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
+ "srm/model/common/request"
+ "srm/model/test"
"time"
)
diff --git a/model/test/request/supplier.go b/model/test/request/supplier.go
index c3d8d12..cfe319d 100644
--- a/model/test/request/supplier.go
+++ b/model/test/request/supplier.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
+ "srm/model/common/request"
+ "srm/model/test"
"time"
)
diff --git a/model/test/request/supplier_type.go b/model/test/request/supplier_type.go
index ace5c81..3e5f2ee 100644
--- a/model/test/request/supplier_type.go
+++ b/model/test/request/supplier_type.go
@@ -1,8 +1,8 @@
package request
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
+ "srm/model/common/request"
+ "srm/model/test"
"time"
)
diff --git a/model/test/supplier.go b/model/test/supplier.go
index 86d965b..4fef2df 100644
--- a/model/test/supplier.go
+++ b/model/test/supplier.go
@@ -2,7 +2,7 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// Supplier 缁撴瀯浣�
@@ -21,7 +21,7 @@
AccountName string `json:"accountName" form:"accountName" gorm:"column:account_name;comment:鎴峰悕;size:255;"`
Account string `json:"account" form:"account" gorm:"column:account;comment:璐﹀彿;size:255;"`
Bank string `json:"bank" form:"bank" gorm:"column:bank;comment:寮�鎴疯;size:255;"`
- File string `json:"file" form:"file" gorm:"column:file;comment:鏂囦欢;"`
+ FileId *int `json:"fileId" form:"fileId" gorm:"column:file_id;comment:闄勪欢id;size:11;"`
Status int `json:"status" form:"status" gorm:"column:status;comment:鐘舵��;size:11;"`
}
diff --git a/model/test/supplier_type.go b/model/test/supplier_type.go
index d2fa09d..ea85b26 100644
--- a/model/test/supplier_type.go
+++ b/model/test/supplier_type.go
@@ -2,7 +2,7 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// SupplierType 缁撴瀯浣�
diff --git a/plugin/email/api/sys_email.go b/plugin/email/api/sys_email.go
index fdc76ab..0e16619 100644
--- a/plugin/email/api/sys_email.go
+++ b/plugin/email/api/sys_email.go
@@ -1,12 +1,12 @@
package api
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
- email_response "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/model/response"
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/response"
+ email_response "srm/plugin/email/model/response"
+ "srm/plugin/email/service"
)
type EmailApi struct{}
diff --git a/plugin/email/global/gloabl.go b/plugin/email/global/gloabl.go
index 13082d0..1c8d7cd 100644
--- a/plugin/email/global/gloabl.go
+++ b/plugin/email/global/gloabl.go
@@ -1,5 +1,5 @@
package global
-import "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/config"
+import "srm/plugin/email/config"
var GlobalConfig = new(config.Email)
diff --git a/plugin/email/main.go b/plugin/email/main.go
index cfc8c46..9ac36e5 100644
--- a/plugin/email/main.go
+++ b/plugin/email/main.go
@@ -1,9 +1,9 @@
package email
import (
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/global"
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/router"
"github.com/gin-gonic/gin"
+ "srm/plugin/email/global"
+ "srm/plugin/email/router"
)
type emailPlugin struct{}
diff --git a/plugin/email/router/sys_email.go b/plugin/email/router/sys_email.go
index 1f9f07f..bcf9d8b 100644
--- a/plugin/email/router/sys_email.go
+++ b/plugin/email/router/sys_email.go
@@ -1,9 +1,9 @@
package router
import (
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/api"
"github.com/gin-gonic/gin"
+ "srm/middleware"
+ "srm/plugin/email/api"
)
type EmailRouter struct{}
diff --git a/plugin/email/service/sys_email.go b/plugin/email/service/sys_email.go
index 5704276..69ae77f 100644
--- a/plugin/email/service/sys_email.go
+++ b/plugin/email/service/sys_email.go
@@ -1,7 +1,7 @@
package service
import (
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/utils"
+ "srm/plugin/email/utils"
)
type EmailService struct{}
diff --git a/plugin/email/utils/email.go b/plugin/email/utils/email.go
index aa82e1c..36f6e14 100644
--- a/plugin/email/utils/email.go
+++ b/plugin/email/utils/email.go
@@ -6,7 +6,7 @@
"net/smtp"
"strings"
- "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/global"
+ "srm/plugin/email/global"
"github.com/jordan-wright/email"
)
diff --git a/plugin/plugin-tool/utils/check.go b/plugin/plugin-tool/utils/check.go
index 937aa8e..91e3b32 100644
--- a/plugin/plugin-tool/utils/check.go
+++ b/plugin/plugin-tool/utils/check.go
@@ -2,8 +2,8 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/global"
+ "srm/model/system"
"strconv"
)
diff --git a/router/enter.go b/router/enter.go
index 80f71e7..ca35a45 100644
--- a/router/enter.go
+++ b/router/enter.go
@@ -1,9 +1,9 @@
package router
import (
- "github.com/flipped-aurora/gin-vue-admin/server/router/example"
- "github.com/flipped-aurora/gin-vue-admin/server/router/system"
- "github.com/flipped-aurora/gin-vue-admin/server/router/test"
+ "srm/router/example"
+ "srm/router/system"
+ "srm/router/test"
)
type RouterGroup struct {
diff --git a/router/system/sys_api.go b/router/system/sys_api.go
index 53c20ac..9daee7b 100644
--- a/router/system/sys_api.go
+++ b/router/system/sys_api.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type ApiRouter struct{}
diff --git a/router/system/sys_authority.go b/router/system/sys_authority.go
index 6869b53..154d31f 100644
--- a/router/system/sys_authority.go
+++ b/router/system/sys_authority.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type AuthorityRouter struct{}
diff --git a/router/system/sys_authority_btn.go b/router/system/sys_authority_btn.go
index 3e83ce3..66676fb 100644
--- a/router/system/sys_authority_btn.go
+++ b/router/system/sys_authority_btn.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type AuthorityBtnRouter struct{}
diff --git a/router/system/sys_auto_code.go b/router/system/sys_auto_code.go
index 4f23a1d..fb00e4e 100644
--- a/router/system/sys_auto_code.go
+++ b/router/system/sys_auto_code.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type AutoCodeRouter struct{}
diff --git a/router/system/sys_auto_code_history.go b/router/system/sys_auto_code_history.go
index 3eaa827..c6ccc8f 100644
--- a/router/system/sys_auto_code_history.go
+++ b/router/system/sys_auto_code_history.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type AutoCodeHistoryRouter struct{}
diff --git a/router/system/sys_base.go b/router/system/sys_base.go
index e2ee203..e722ed1 100644
--- a/router/system/sys_base.go
+++ b/router/system/sys_base.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type BaseRouter struct{}
diff --git a/router/system/sys_casbin.go b/router/system/sys_casbin.go
index e4926f4..1b1aa48 100644
--- a/router/system/sys_casbin.go
+++ b/router/system/sys_casbin.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type CasbinRouter struct{}
diff --git a/router/system/sys_chatgpt.go b/router/system/sys_chatgpt.go
index f654e58..d6d8bfc 100644
--- a/router/system/sys_chatgpt.go
+++ b/router/system/sys_chatgpt.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type ChatGptRouter struct{}
diff --git a/router/system/sys_dictionary.go b/router/system/sys_dictionary.go
index 311fa7b..9d95783 100644
--- a/router/system/sys_dictionary.go
+++ b/router/system/sys_dictionary.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type DictionaryRouter struct{}
diff --git a/router/system/sys_dictionary_detail.go b/router/system/sys_dictionary_detail.go
index d94fbf2..5cff8c2 100644
--- a/router/system/sys_dictionary_detail.go
+++ b/router/system/sys_dictionary_detail.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type DictionaryDetailRouter struct{}
diff --git a/router/system/sys_initdb.go b/router/system/sys_initdb.go
index 7c6f7c3..943129d 100644
--- a/router/system/sys_initdb.go
+++ b/router/system/sys_initdb.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type InitRouter struct{}
diff --git a/router/system/sys_jwt.go b/router/system/sys_jwt.go
index f1f8899..d224663 100644
--- a/router/system/sys_jwt.go
+++ b/router/system/sys_jwt.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type JwtRouter struct{}
diff --git a/router/system/sys_menu.go b/router/system/sys_menu.go
index 6d19e71..b2e5ce6 100644
--- a/router/system/sys_menu.go
+++ b/router/system/sys_menu.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type MenuRouter struct{}
diff --git a/router/system/sys_operation_record.go b/router/system/sys_operation_record.go
index cd008c4..958e787 100644
--- a/router/system/sys_operation_record.go
+++ b/router/system/sys_operation_record.go
@@ -1,8 +1,8 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
)
type OperationRecordRouter struct{}
diff --git a/router/system/sys_system.go b/router/system/sys_system.go
index 92720c6..d44519e 100644
--- a/router/system/sys_system.go
+++ b/router/system/sys_system.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type SysRouter struct{}
diff --git a/router/system/sys_user.go b/router/system/sys_user.go
index 9a09176..17b36a4 100644
--- a/router/system/sys_user.go
+++ b/router/system/sys_user.go
@@ -1,9 +1,9 @@
package system
import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
+ v1 "srm/api/v1"
+ "srm/middleware"
)
type UserRouter struct{}
diff --git a/router/test/contract.go b/router/test/contract.go
index 99ddabe..3cca412 100644
--- a/router/test/contract.go
+++ b/router/test/contract.go
@@ -1,8 +1,8 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ "srm/api/v1"
)
type ContractRouter struct {
diff --git a/router/test/industry.go b/router/test/industry.go
index 11ed4e8..a1f7f3b 100644
--- a/router/test/industry.go
+++ b/router/test/industry.go
@@ -1,8 +1,8 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ "srm/api/v1"
)
type IndustryRouter struct {
diff --git a/router/test/supplier.go b/router/test/supplier.go
index 6bfc2cb..c76cf9c 100644
--- a/router/test/supplier.go
+++ b/router/test/supplier.go
@@ -1,8 +1,8 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ "srm/api/v1"
)
type SupplierRouter struct {
diff --git a/router/test/supplier_type.go b/router/test/supplier_type.go
index 7f0e4cd..0f6d80f 100644
--- a/router/test/supplier_type.go
+++ b/router/test/supplier_type.go
@@ -1,8 +1,8 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/gin-gonic/gin"
+ "srm/api/v1"
)
type SupplierTypeRouter struct {
diff --git a/service/enter.go b/service/enter.go
index 81f5ca8..be01e8a 100644
--- a/service/enter.go
+++ b/service/enter.go
@@ -1,9 +1,9 @@
package service
import (
- "github.com/flipped-aurora/gin-vue-admin/server/service/example"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/test"
+ "srm/service/example"
+ "srm/service/system"
+ "srm/service/test"
)
type ServiceGroup struct {
diff --git a/service/system/jwt_black_list.go b/service/system/jwt_black_list.go
index 836addc..9082f81 100644
--- a/service/system/jwt_black_list.go
+++ b/service/system/jwt_black_list.go
@@ -5,9 +5,9 @@
"go.uber.org/zap"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/system"
+ "srm/utils"
)
type JwtService struct{}
diff --git a/service/system/sys_api.go b/service/system/sys_api.go
index 13f9765..5e9a97d 100644
--- a/service/system/sys_api.go
+++ b/service/system/sys_api.go
@@ -3,9 +3,9 @@
import (
"errors"
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/system"
"gorm.io/gorm"
)
diff --git a/service/system/sys_authority.go b/service/system/sys_authority.go
index 5bff091..bc2261c 100644
--- a/service/system/sys_authority.go
+++ b/service/system/sys_authority.go
@@ -4,11 +4,11 @@
"errors"
"strconv"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/system"
+ "srm/model/system/response"
)
var ErrRoleExistence = errors.New("瀛樺湪鐩稿悓瑙掕壊id")
diff --git a/service/system/sys_authority_btn.go b/service/system/sys_authority_btn.go
index 25388bf..d19caef 100644
--- a/service/system/sys_authority_btn.go
+++ b/service/system/sys_authority_btn.go
@@ -2,11 +2,11 @@
import (
"errors"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/system"
+ "srm/model/system/request"
+ "srm/model/system/response"
)
type AuthorityBtnService struct{}
diff --git a/service/system/sys_auto_code.go b/service/system/sys_auto_code.go
index 0f90ba1..2b93944 100644
--- a/service/system/sys_auto_code.go
+++ b/service/system/sys_auto_code.go
@@ -13,15 +13,15 @@
"strings"
"text/template"
- ast2 "github.com/flipped-aurora/gin-vue-admin/server/utils/ast"
+ ast2 "srm/utils/ast"
- "github.com/flipped-aurora/gin-vue-admin/server/resource/autocode_template/subcontract"
cp "github.com/otiai10/copy"
"go.uber.org/zap"
+ "srm/resource/autocode_template/subcontract"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/system"
+ "srm/utils"
"gorm.io/gorm"
)
@@ -75,7 +75,7 @@
packageServiceName: {
path: filepath.Join(global.GVA_CONFIG.AutoCode.Root,
global.GVA_CONFIG.AutoCode.Server, "service", "enter.go"),
- importCodeF: "github.com/flipped-aurora/gin-vue-admin/server/%s/%s",
+ importCodeF: "srm/%s/%s",
packageNameF: "%s",
groupName: "ServiceGroup",
structNameF: "%sServiceGroup",
@@ -83,7 +83,7 @@
packageRouterName: {
path: filepath.Join(global.GVA_CONFIG.AutoCode.Root,
global.GVA_CONFIG.AutoCode.Server, "router", "enter.go"),
- importCodeF: "github.com/flipped-aurora/gin-vue-admin/server/%s/%s",
+ importCodeF: "srm/%s/%s",
packageNameF: "%s",
groupName: "RouterGroup",
structNameF: "%s",
@@ -91,7 +91,7 @@
packageAPIName: {
path: filepath.Join(global.GVA_CONFIG.AutoCode.Root,
global.GVA_CONFIG.AutoCode.Server, "api/v1", "enter.go"),
- importCodeF: "github.com/flipped-aurora/gin-vue-admin/server/%s/%s",
+ importCodeF: "srm/%s/%s",
packageNameF: "%s",
groupName: "ApiGroup",
structNameF: "%sApiGroup",
diff --git a/service/system/sys_auto_code_interface.go b/service/system/sys_auto_code_interface.go
index 6081831..e20e094 100644
--- a/service/system/sys_auto_code_interface.go
+++ b/service/system/sys_auto_code_interface.go
@@ -1,8 +1,8 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
+ "srm/global"
+ "srm/model/system/response"
)
type Database interface {
diff --git a/service/system/sys_auto_code_mssql.go b/service/system/sys_auto_code_mssql.go
index 834a499..f0bf229 100644
--- a/service/system/sys_auto_code_mssql.go
+++ b/service/system/sys_auto_code_mssql.go
@@ -2,8 +2,8 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
+ "srm/global"
+ "srm/model/system/response"
)
var AutoCodeMssql = new(autoCodeMssql)
diff --git a/service/system/sys_auto_code_mysql.go b/service/system/sys_auto_code_mysql.go
index fade82c..5d3b883 100644
--- a/service/system/sys_auto_code_mysql.go
+++ b/service/system/sys_auto_code_mysql.go
@@ -1,8 +1,8 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
+ "srm/global"
+ "srm/model/system/response"
)
var AutoCodeMysql = new(autoCodeMysql)
diff --git a/service/system/sys_auto_code_oracle.go b/service/system/sys_auto_code_oracle.go
index 60c4880..e76f3b1 100644
--- a/service/system/sys_auto_code_oracle.go
+++ b/service/system/sys_auto_code_oracle.go
@@ -1,8 +1,8 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
+ "srm/global"
+ "srm/model/system/response"
)
var AutoCodeOracle = new(autoCodeOracle)
diff --git a/service/system/sys_auto_code_pgsql.go b/service/system/sys_auto_code_pgsql.go
index ba1e30e..0d286e0 100644
--- a/service/system/sys_auto_code_pgsql.go
+++ b/service/system/sys_auto_code_pgsql.go
@@ -1,12 +1,12 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
"github.com/pkg/errors"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"gorm.io/gorm/logger"
+ "srm/global"
+ "srm/model/system/response"
)
var AutoCodePgsql = new(autoCodePgsql)
diff --git a/service/system/sys_auto_code_sqlite.go b/service/system/sys_auto_code_sqlite.go
index 9cf94ea..5c9d1ea 100644
--- a/service/system/sys_auto_code_sqlite.go
+++ b/service/system/sys_auto_code_sqlite.go
@@ -2,9 +2,9 @@
import (
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
"path/filepath"
+ "srm/global"
+ "srm/model/system/response"
"strings"
)
diff --git a/service/system/sys_autocode_history.go b/service/system/sys_autocode_history.go
index 3185a88..409d39a 100644
--- a/service/system/sys_autocode_history.go
+++ b/service/system/sys_autocode_history.go
@@ -3,19 +3,19 @@
import (
"errors"
"fmt"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- "github.com/flipped-aurora/gin-vue-admin/server/utils/ast"
"path/filepath"
+ systemReq "srm/model/system/request"
+ "srm/utils/ast"
"strconv"
"strings"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/response"
+ "srm/model/system/response"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/system"
+ "srm/utils"
"go.uber.org/zap"
)
diff --git a/service/system/sys_base_menu.go b/service/system/sys_base_menu.go
index d4de3f8..a0868c9 100644
--- a/service/system/sys_base_menu.go
+++ b/service/system/sys_base_menu.go
@@ -3,9 +3,9 @@
import (
"errors"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/system"
)
type BaseMenuService struct{}
diff --git a/service/system/sys_casbin.go b/service/system/sys_casbin.go
index d2911f8..918523a 100644
--- a/service/system/sys_casbin.go
+++ b/service/system/sys_casbin.go
@@ -8,10 +8,10 @@
"github.com/casbin/casbin/v2"
"github.com/casbin/casbin/v2/model"
gormadapter "github.com/casbin/gorm-adapter/v3"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
_ "github.com/go-sql-driver/mysql"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/system/request"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/service/system/sys_chatgpt.go b/service/system/sys_chatgpt.go
index 58fa550..38178b8 100644
--- a/service/system/sys_chatgpt.go
+++ b/service/system/sys_chatgpt.go
@@ -4,11 +4,11 @@
"context"
"errors"
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/sashabaranov/go-openai"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/system"
+ "srm/model/system/request"
"strings"
)
diff --git a/service/system/sys_dictionary.go b/service/system/sys_dictionary.go
index 70f02fd..8c3e615 100644
--- a/service/system/sys_dictionary.go
+++ b/service/system/sys_dictionary.go
@@ -3,10 +3,10 @@
import (
"errors"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/system"
+ "srm/model/system/request"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/service/system/sys_dictionary_detail.go b/service/system/sys_dictionary_detail.go
index e1cfcab..8b4fc02 100644
--- a/service/system/sys_dictionary_detail.go
+++ b/service/system/sys_dictionary_detail.go
@@ -1,9 +1,9 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
+ "srm/global"
+ "srm/model/system"
+ "srm/model/system/request"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/service/system/sys_initdb.go b/service/system/sys_initdb.go
index d511950..f917935 100644
--- a/service/system/sys_initdb.go
+++ b/service/system/sys_initdb.go
@@ -5,10 +5,10 @@
"database/sql"
"errors"
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"gorm.io/gorm"
"sort"
+ "srm/global"
+ "srm/model/system/request"
)
const (
diff --git a/service/system/sys_initdb_mysql.go b/service/system/sys_initdb_mysql.go
index 029dfcb..c4e6f61 100644
--- a/service/system/sys_initdb_mysql.go
+++ b/service/system/sys_initdb_mysql.go
@@ -6,16 +6,16 @@
"fmt"
"path/filepath"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
"github.com/gookit/color"
+ "srm/config"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/utils"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/gofrs/uuid/v5"
"gorm.io/driver/mysql"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/system/request"
)
type MysqlInitHandler struct{}
diff --git a/service/system/sys_initdb_pgsql.go b/service/system/sys_initdb_pgsql.go
index a70cbd2..b727dda 100644
--- a/service/system/sys_initdb_pgsql.go
+++ b/service/system/sys_initdb_pgsql.go
@@ -6,16 +6,16 @@
"fmt"
"path/filepath"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
"github.com/gookit/color"
+ "srm/config"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
+ "srm/utils"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/gofrs/uuid/v5"
"gorm.io/driver/postgres"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/system/request"
)
type PgsqlInitHandler struct{}
diff --git a/service/system/sys_initdb_sqlite.go b/service/system/sys_initdb_sqlite.go
index 786af15..0e615bd 100644
--- a/service/system/sys_initdb_sqlite.go
+++ b/service/system/sys_initdb_sqlite.go
@@ -3,15 +3,15 @@
import (
"context"
"errors"
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/glebarez/sqlite"
"github.com/gofrs/uuid/v5"
"github.com/gookit/color"
"gorm.io/gorm"
"path/filepath"
+ "srm/config"
+ "srm/global"
+ "srm/model/system/request"
+ "srm/utils"
)
type SqliteInitHandler struct{}
diff --git a/service/system/sys_menu.go b/service/system/sys_menu.go
index 10a78ad..743e3fb 100644
--- a/service/system/sys_menu.go
+++ b/service/system/sys_menu.go
@@ -4,10 +4,10 @@
"errors"
"strconv"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/system"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/service/system/sys_operation_record.go b/service/system/sys_operation_record.go
index 2d67ca9..06359ac 100644
--- a/service/system/sys_operation_record.go
+++ b/service/system/sys_operation_record.go
@@ -1,10 +1,10 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/system"
+ systemReq "srm/model/system/request"
)
//@author: [granty1](https://github.com/granty1)
diff --git a/service/system/sys_system.go b/service/system/sys_system.go
index 712a190..33ff174 100644
--- a/service/system/sys_system.go
+++ b/service/system/sys_system.go
@@ -1,11 +1,11 @@
package system
import (
- "github.com/flipped-aurora/gin-vue-admin/server/config"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"go.uber.org/zap"
+ "srm/config"
+ "srm/global"
+ "srm/model/system"
+ "srm/utils"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/service/system/sys_user.go b/service/system/sys_user.go
index 88bb5c0..c739b73 100644
--- a/service/system/sys_user.go
+++ b/service/system/sys_user.go
@@ -5,12 +5,12 @@
"fmt"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gofrs/uuid/v5"
"gorm.io/gorm"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/system"
+ "srm/utils"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/service/test/contract.go b/service/test/contract.go
index 939c7eb..5447544 100644
--- a/service/test/contract.go
+++ b/service/test/contract.go
@@ -1,10 +1,10 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/test"
+ testReq "srm/model/test/request"
)
type ContractService struct {
diff --git a/service/test/industry.go b/service/test/industry.go
index 57add6e..bf459bc 100644
--- a/service/test/industry.go
+++ b/service/test/industry.go
@@ -1,10 +1,10 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/test"
+ testReq "srm/model/test/request"
)
type IndustryService struct {
diff --git a/service/test/supplier.go b/service/test/supplier.go
index 07110a2..8a75662 100644
--- a/service/test/supplier.go
+++ b/service/test/supplier.go
@@ -1,10 +1,10 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/test"
+ testReq "srm/model/test/request"
)
type SupplierService struct {
diff --git a/service/test/supplier_type.go b/service/test/supplier_type.go
index 89c3e63..1d2ffa7 100644
--- a/service/test/supplier_type.go
+++ b/service/test/supplier_type.go
@@ -1,10 +1,10 @@
package test
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/test"
+ testReq "srm/model/test/request"
)
type SupplierTypeService struct {
diff --git a/source/example/file_upload_download.go b/source/example/file_upload_download.go
index f39dcf2..0fec50a 100644
--- a/source/example/file_upload_download.go
+++ b/source/example/file_upload_download.go
@@ -2,10 +2,10 @@
import (
"context"
- "github.com/flipped-aurora/gin-vue-admin/server/model/example"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ "srm/model/example"
+ "srm/service/system"
)
const initOrderExaFile = system.InitOrderInternal + 1
diff --git a/source/system/api.go b/source/system/api.go
index 5db056a..e3788b3 100644
--- a/source/system/api.go
+++ b/source/system/api.go
@@ -2,10 +2,10 @@
import (
"context"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ sysModel "srm/model/system"
+ "srm/service/system"
)
type initApi struct{}
diff --git a/source/system/authorities_menus.go b/source/system/authorities_menus.go
index 1c9058b..2bf120d 100644
--- a/source/system/authorities_menus.go
+++ b/source/system/authorities_menus.go
@@ -3,10 +3,10 @@
import (
"context"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ sysModel "srm/model/system"
+ "srm/service/system"
)
const initOrderMenuAuthority = initOrderMenu + initOrderAuthority
diff --git a/source/system/authority.go b/source/system/authority.go
index 0426f2a..d38ec87 100644
--- a/source/system/authority.go
+++ b/source/system/authority.go
@@ -2,11 +2,11 @@
import (
"context"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/pkg/errors"
"gorm.io/gorm"
+ sysModel "srm/model/system"
+ "srm/service/system"
+ "srm/utils"
)
const initOrderAuthority = initOrderCasbin + 1
diff --git a/source/system/casbin.go b/source/system/casbin.go
index 7626d6b..bd2e324 100644
--- a/source/system/casbin.go
+++ b/source/system/casbin.go
@@ -4,9 +4,9 @@
"context"
adapter "github.com/casbin/gorm-adapter/v3"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ "srm/service/system"
)
const initOrderCasbin = initOrderApi + 1
diff --git a/source/system/dictionary.go b/source/system/dictionary.go
index 0014963..e2e89ea 100644
--- a/source/system/dictionary.go
+++ b/source/system/dictionary.go
@@ -2,10 +2,10 @@
import (
"context"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ sysModel "srm/model/system"
+ "srm/service/system"
)
const initOrderDict = initOrderCasbin + 1
diff --git a/source/system/dictionary_detail.go b/source/system/dictionary_detail.go
index 8fabfbc..e21d272 100644
--- a/source/system/dictionary_detail.go
+++ b/source/system/dictionary_detail.go
@@ -3,10 +3,10 @@
import (
"context"
"fmt"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ sysModel "srm/model/system"
+ "srm/service/system"
)
const initOrderDictDetail = initOrderDict + 1
diff --git a/source/system/menu.go b/source/system/menu.go
index bd55178..6a24d87 100644
--- a/source/system/menu.go
+++ b/source/system/menu.go
@@ -2,10 +2,10 @@
import (
"context"
- . "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
+ . "srm/model/system"
+ "srm/service/system"
)
const initOrderMenu = initOrderAuthority + 1
diff --git a/source/system/user.go b/source/system/user.go
index ade0129..c38c21f 100644
--- a/source/system/user.go
+++ b/source/system/user.go
@@ -2,12 +2,12 @@
import (
"context"
- sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- "github.com/flipped-aurora/gin-vue-admin/server/service/system"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/gofrs/uuid/v5"
"github.com/pkg/errors"
"gorm.io/gorm"
+ sysModel "srm/model/system"
+ "srm/service/system"
+ "srm/utils"
)
const initOrderUser = initOrderAuthority + 1
diff --git a/utils/ast/ast_gorm.go b/utils/ast/ast_gorm.go
index feadc2f..86b57b1 100644
--- a/utils/ast/ast_gorm.go
+++ b/utils/ast/ast_gorm.go
@@ -12,7 +12,7 @@
// 鑷姩涓� gorm.go 娉ㄥ唽涓�涓嚜鍔ㄨ縼绉�
func AddRegisterTablesAst(path, funcName, pk, dbName, model string) {
- modelPk := fmt.Sprintf("github.com/flipped-aurora/gin-vue-admin/server/model/%s", pk)
+ modelPk := fmt.Sprintf("srm/model/%s", pk)
src, err := os.ReadFile(path)
if err != nil {
fmt.Println(err)
diff --git a/utils/ast/ast_gorm_test.go b/utils/ast/ast_gorm_test.go
index 0c83802..fbc7182 100644
--- a/utils/ast/ast_gorm_test.go
+++ b/utils/ast/ast_gorm_test.go
@@ -1,8 +1,8 @@
package ast
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/example"
+ "srm/global"
+ "srm/model/example"
"testing"
)
diff --git a/utils/ast/ast_rollback.go b/utils/ast/ast_rollback.go
index 3ff63ec..83c91e2 100644
--- a/utils/ast/ast_rollback.go
+++ b/utils/ast/ast_rollback.go
@@ -3,13 +3,13 @@
import (
"bytes"
"fmt"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"go/ast"
"go/parser"
"go/printer"
"go/token"
"os"
"path/filepath"
+ "srm/global"
)
func RollBackAst(pk, model string) {
@@ -70,7 +70,7 @@
if gen, ok := node.(*ast.GenDecl); ok {
for i := range gen.Specs {
if imspec, ok := gen.Specs[i].(*ast.ImportSpec); ok {
- if imspec.Path.Value == "\"github.com/flipped-aurora/gin-vue-admin/server/model/"+pk+"\"" {
+ if imspec.Path.Value == "\"srm/model/"+pk+"\"" {
gp = gen
imI = i
return false
diff --git a/utils/captcha/redis.go b/utils/captcha/redis.go
index ca34a4c..d6c18cb 100644
--- a/utils/captcha/redis.go
+++ b/utils/captcha/redis.go
@@ -4,9 +4,9 @@
"context"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/mojocn/base64Captcha"
"go.uber.org/zap"
+ "srm/global"
)
func NewDefaultRedisStore() *RedisStore {
diff --git a/utils/clamis.go b/utils/clamis.go
index 78059bb..f55f847 100644
--- a/utils/clamis.go
+++ b/utils/clamis.go
@@ -1,10 +1,10 @@
package utils
import (
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- systemReq "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
"github.com/gin-gonic/gin"
"github.com/gofrs/uuid/v5"
+ "srm/global"
+ systemReq "srm/model/system/request"
)
func GetClaims(c *gin.Context) (*systemReq.CustomClaims, error) {
diff --git a/utils/directory.go b/utils/directory.go
index 70af1d1..afffaf4 100644
--- a/utils/directory.go
+++ b/utils/directory.go
@@ -4,8 +4,8 @@
"errors"
"os"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"go.uber.org/zap"
+ "srm/global"
)
//@author: [piexlmax](https://github.com/piexlmax)
diff --git a/utils/injection_code.go b/utils/injection_code.go
index 8427256..f4eb04b 100644
--- a/utils/injection_code.go
+++ b/utils/injection_code.go
@@ -17,8 +17,8 @@
//@return: error
const (
- startComment = "Code generated by github.com/flipped-aurora/gin-vue-admin/server Begin; DO NOT EDIT."
- endComment = "Code generated by github.com/flipped-aurora/gin-vue-admin/server End; DO NOT EDIT."
+ startComment = "Code generated by srm Begin; DO NOT EDIT."
+ endComment = "Code generated by srm End; DO NOT EDIT."
)
//@author: [LeonardWang](https://github.com/WangLeonard)
diff --git a/utils/jwt.go b/utils/jwt.go
index c1298a8..377fe3e 100644
--- a/utils/jwt.go
+++ b/utils/jwt.go
@@ -6,8 +6,8 @@
jwt "github.com/golang-jwt/jwt/v4"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
+ "srm/global"
+ "srm/model/system/request"
)
type JWT struct {
diff --git a/utils/upload/aliyun_oss.go b/utils/upload/aliyun_oss.go
index cf74101..efbe4c9 100644
--- a/utils/upload/aliyun_oss.go
+++ b/utils/upload/aliyun_oss.go
@@ -6,8 +6,8 @@
"time"
"github.com/aliyun/aliyun-oss-go-sdk/oss"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"go.uber.org/zap"
+ "srm/global"
)
type AliyunOSS struct{}
diff --git a/utils/upload/aws_s3.go b/utils/upload/aws_s3.go
index 342f9b8..87adedc 100644
--- a/utils/upload/aws_s3.go
+++ b/utils/upload/aws_s3.go
@@ -6,7 +6,7 @@
"mime/multipart"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
diff --git a/utils/upload/local.go b/utils/upload/local.go
index ea84c66..aea86a1 100644
--- a/utils/upload/local.go
+++ b/utils/upload/local.go
@@ -9,9 +9,9 @@
"strings"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
- "github.com/flipped-aurora/gin-vue-admin/server/utils"
"go.uber.org/zap"
+ "srm/global"
+ "srm/utils"
)
type Local struct{}
diff --git a/utils/upload/obs.go b/utils/upload/obs.go
index 9c3c909..858f388 100644
--- a/utils/upload/obs.go
+++ b/utils/upload/obs.go
@@ -3,9 +3,9 @@
import (
"mime/multipart"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/huaweicloud/huaweicloud-sdk-go-obs/obs"
"github.com/pkg/errors"
+ "srm/global"
)
var HuaWeiObs = new(Obs)
diff --git a/utils/upload/qiniu.go b/utils/upload/qiniu.go
index 87e91b6..1786f86 100644
--- a/utils/upload/qiniu.go
+++ b/utils/upload/qiniu.go
@@ -7,10 +7,10 @@
"mime/multipart"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/qiniu/api.v7/v7/auth/qbox"
"github.com/qiniu/api.v7/v7/storage"
"go.uber.org/zap"
+ "srm/global"
)
type Qiniu struct{}
diff --git a/utils/upload/tencent_cos.go b/utils/upload/tencent_cos.go
index efb99d8..9eeee2e 100644
--- a/utils/upload/tencent_cos.go
+++ b/utils/upload/tencent_cos.go
@@ -9,7 +9,7 @@
"net/url"
"time"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
"github.com/tencentyun/cos-go-sdk-v5"
"go.uber.org/zap"
diff --git a/utils/upload/upload.go b/utils/upload/upload.go
index ea26ed7..fd181d1 100644
--- a/utils/upload/upload.go
+++ b/utils/upload/upload.go
@@ -3,7 +3,7 @@
import (
"mime/multipart"
- "github.com/flipped-aurora/gin-vue-admin/server/global"
+ "srm/global"
)
// OSS 瀵硅薄瀛樺偍鎺ュ彛
diff --git a/utils/validator_test.go b/utils/validator_test.go
index bdacb8b..f144855 100644
--- a/utils/validator_test.go
+++ b/utils/validator_test.go
@@ -1,7 +1,7 @@
package utils
import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
+ "srm/model/common/request"
"testing"
)
--
Gitblit v1.8.0