diff --git a/Dockerfile b/Dockerfile index cd85a36..2071ca4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:alpine as builder -WORKDIR /go/src/byg-backend +WORKDIR /go/src/bygdata COPY . . RUN go env -w GO111MODULE=on \ @@ -18,14 +18,14 @@ ENV TZ=Asia/Shanghai RUN apk update && apk add --no-cache tzdata openntpd \ && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -WORKDIR /go/src/byg-backend +WORKDIR /go/src/bygdata -COPY --from=0 /go/src/byg-backend/server ./ -COPY --from=0 /go/src/byg-backend/resource ./resource/ -COPY --from=0 /go/src/byg-backend/config.docker.yaml ./ +COPY --from=0 /go/src/bygdata/server ./ +COPY --from=0 /go/src/bygdata/resource ./resource/ +COPY --from=0 /go/src/bygdata/config.docker.yaml ./ -# 挂载目录:如果使用了sqlite数据库,容器命令示例:docker run -d -v /宿主机路径/gva.db:/go/src/byg-backend/gva.db -p 8888:8888 --name gva-server-v1 gva-server:1.0 -# VOLUME ["/go/src/byg-backend"] +# 挂载目录:如果使用了sqlite数据库,容器命令示例:docker run -d -v /宿主机路径/gva.db:/go/src/bygdata/gva.db -p 8888:8888 --name gva-server-v1 gva-server:1.0 +# VOLUME ["/go/src/bygdata"] EXPOSE 8888 ENTRYPOINT ./server -c config.docker.yaml diff --git a/api/v1/enter.go b/api/v1/enter.go index 4dfe5b3..01a5495 100644 --- a/api/v1/enter.go +++ b/api/v1/enter.go @@ -1,8 +1,8 @@ package v1 import ( - "byg-backend/api/v1/example" - "byg-backend/api/v1/system" + "bygdata/api/v1/example" + "bygdata/api/v1/system" ) var ApiGroupApp = new(ApiGroup) diff --git a/api/v1/example/enter.go b/api/v1/example/enter.go index de70891..49876b1 100644 --- a/api/v1/example/enter.go +++ b/api/v1/example/enter.go @@ -1,6 +1,6 @@ package example -import "byg-backend/service" +import "bygdata/service" type ApiGroup struct { CustomerApi diff --git a/api/v1/example/exa_attachment_category.go b/api/v1/example/exa_attachment_category.go index 9f0fac7..a189a07 100644 --- a/api/v1/example/exa_attachment_category.go +++ b/api/v1/example/exa_attachment_category.go @@ -1,10 +1,10 @@ package example import ( - "byg-backend/global" - common "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/example" + "bygdata/global" + common "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/example" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/example/exa_breakpoint_continue.go b/api/v1/example/exa_breakpoint_continue.go index b57e987..bb0fa9f 100644 --- a/api/v1/example/exa_breakpoint_continue.go +++ b/api/v1/example/exa_breakpoint_continue.go @@ -7,12 +7,12 @@ import ( "strconv" "strings" - "byg-backend/model/example" + "bygdata/model/example" - "byg-backend/global" - "byg-backend/model/common/response" - exampleRes "byg-backend/model/example/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + exampleRes "bygdata/model/example/response" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/example/exa_customer.go b/api/v1/example/exa_customer.go index 89a05d8..a4bd88a 100644 --- a/api/v1/example/exa_customer.go +++ b/api/v1/example/exa_customer.go @@ -1,12 +1,12 @@ package example import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/example" - exampleRes "byg-backend/model/example/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/example" + exampleRes "bygdata/model/example/response" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/example/exa_file_upload_download.go b/api/v1/example/exa_file_upload_download.go index 92192d4..28fd7dd 100644 --- a/api/v1/example/exa_file_upload_download.go +++ b/api/v1/example/exa_file_upload_download.go @@ -1,11 +1,11 @@ package example import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/example" - "byg-backend/model/example/request" - exampleRes "byg-backend/model/example/response" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/example" + "bygdata/model/example/request" + exampleRes "bygdata/model/example/response" "github.com/gin-gonic/gin" "go.uber.org/zap" "strconv" diff --git a/api/v1/sqs/aws-sqs.go b/api/v1/sqs/aws-sqs.go index 262f3b3..4b991bb 100644 --- a/api/v1/sqs/aws-sqs.go +++ b/api/v1/sqs/aws-sqs.go @@ -1,8 +1,8 @@ package sqs import ( - "byg-backend/global" - "byg-backend/model/awssqs" + "bygdata/global" + "bygdata/model/awssqs" "context" "encoding/json" "fmt" diff --git a/api/v1/system/auto_code_history.go b/api/v1/system/auto_code_history.go index 0450837..499b5d0 100644 --- a/api/v1/system/auto_code_history.go +++ b/api/v1/system/auto_code_history.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - common "byg-backend/model/common/request" - "byg-backend/model/common/response" - request "byg-backend/model/system/request" + "bygdata/global" + common "bygdata/model/common/request" + "bygdata/model/common/response" + request "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/auto_code_mcp.go b/api/v1/system/auto_code_mcp.go index aae7d87..dc7c7ba 100644 --- a/api/v1/system/auto_code_mcp.go +++ b/api/v1/system/auto_code_mcp.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/mcp/client" - "byg-backend/model/common/response" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/mcp/client" + "bygdata/model/common/response" + "bygdata/model/system/request" "fmt" "github.com/gin-gonic/gin" "github.com/mark3labs/mcp-go/mcp" diff --git a/api/v1/system/auto_code_package.go b/api/v1/system/auto_code_package.go index b80fabe..9b70f3d 100644 --- a/api/v1/system/auto_code_package.go +++ b/api/v1/system/auto_code_package.go @@ -1,11 +1,11 @@ package system import ( - "byg-backend/global" - common "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + common "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system/request" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" "strings" diff --git a/api/v1/system/auto_code_plugin.go b/api/v1/system/auto_code_plugin.go index 05b029c..f56f660 100644 --- a/api/v1/system/auto_code_plugin.go +++ b/api/v1/system/auto_code_plugin.go @@ -5,11 +5,11 @@ import ( "os" "path/filepath" - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system/request" - systemRes "byg-backend/model/system/response" - "byg-backend/plugin/plugin-tool/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system/request" + systemRes "bygdata/model/system/response" + "bygdata/plugin/plugin-tool/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/auto_code_template.go b/api/v1/system/auto_code_template.go index 0ffe5fe..511e0be 100644 --- a/api/v1/system/auto_code_template.go +++ b/api/v1/system/auto_code_template.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system/request" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/enter.go b/api/v1/system/enter.go index 5dd0d5a..8f06400 100644 --- a/api/v1/system/enter.go +++ b/api/v1/system/enter.go @@ -1,6 +1,6 @@ package system -import "byg-backend/service" +import "bygdata/service" type ApiGroup struct { DBApi diff --git a/api/v1/system/sys_api.go b/api/v1/system/sys_api.go index 5563e76..14571ec 100644 --- a/api/v1/system/sys_api.go +++ b/api/v1/system/sys_api.go @@ -1,13 +1,13 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + systemRes "bygdata/model/system/response" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" diff --git a/api/v1/system/sys_api_token.go b/api/v1/system/sys_api_token.go index 88efa22..2038474 100644 --- a/api/v1/system/sys_api_token.go +++ b/api/v1/system/sys_api_token.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - sysReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + sysReq "bygdata/model/system/request" "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 498af60..6d386ac 100644 --- a/api/v1/system/sys_authority.go +++ b/api/v1/system/sys_authority.go @@ -1,11 +1,11 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + systemRes "bygdata/model/system/response" + "bygdata/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 c9c3a9a..728afe7 100644 --- a/api/v1/system/sys_authority_btn.go +++ b/api/v1/system/sys_authority_btn.go @@ -1,9 +1,9 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_auto_code.go b/api/v1/system/sys_auto_code.go index ae7f242..fe265ca 100644 --- a/api/v1/system/sys_auto_code.go +++ b/api/v1/system/sys_auto_code.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/model/common" + "bygdata/model/common" - "byg-backend/global" - "byg-backend/model/common/response" + "bygdata/global" + "bygdata/model/common/response" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_captcha.go b/api/v1/system/sys_captcha.go index b89cb87..68a669a 100644 --- a/api/v1/system/sys_captcha.go +++ b/api/v1/system/sys_captcha.go @@ -3,9 +3,9 @@ package system import ( "time" - "byg-backend/global" - "byg-backend/model/common/response" - systemRes "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/common/response" + systemRes "bygdata/model/system/response" "github.com/gin-gonic/gin" "github.com/mojocn/base64Captcha" "go.uber.org/zap" diff --git a/api/v1/system/sys_casbin.go b/api/v1/system/sys_casbin.go index 09bccc5..55f598b 100644 --- a/api/v1/system/sys_casbin.go +++ b/api/v1/system/sys_casbin.go @@ -1,11 +1,11 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system/request" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system/request" + systemRes "bygdata/model/system/response" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_dictionary.go b/api/v1/system/sys_dictionary.go index 3f4db8a..c20f769 100644 --- a/api/v1/system/sys_dictionary.go +++ b/api/v1/system/sys_dictionary.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_dictionary_detail.go b/api/v1/system/sys_dictionary_detail.go index 7728072..33b4f68 100644 --- a/api/v1/system/sys_dictionary_detail.go +++ b/api/v1/system/sys_dictionary_detail.go @@ -3,11 +3,11 @@ package system import ( "strconv" - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + "bygdata/model/system/request" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_error.go b/api/v1/system/sys_error.go index a4e0be4..7ac003a 100644 --- a/api/v1/system/sys_error.go +++ b/api/v1/system/sys_error.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_export_template.go b/api/v1/system/sys_export_template.go index b5ae29f..b3fff86 100644 --- a/api/v1/system/sys_export_template.go +++ b/api/v1/system/sys_export_template.go @@ -7,13 +7,13 @@ import ( "sync" "time" - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - "byg-backend/service" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + "bygdata/service" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_initdb.go b/api/v1/system/sys_initdb.go index b189b4f..6fb6015 100644 --- a/api/v1/system/sys_initdb.go +++ b/api/v1/system/sys_initdb.go @@ -1,9 +1,9 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system/request" "go.uber.org/zap" "github.com/gin-gonic/gin" diff --git a/api/v1/system/sys_jwt_blacklist.go b/api/v1/system/sys_jwt_blacklist.go index 6876072..001ae62 100644 --- a/api/v1/system/sys_jwt_blacklist.go +++ b/api/v1/system/sys_jwt_blacklist.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_login_log.go b/api/v1/system/sys_login_log.go index 8a99d43..727cd43 100644 --- a/api/v1/system/sys_login_log.go +++ b/api/v1/system/sys_login_log.go @@ -1,11 +1,11 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_menu.go b/api/v1/system/sys_menu.go index 4e37f7d..01b9fb7 100644 --- a/api/v1/system/sys_menu.go +++ b/api/v1/system/sys_menu.go @@ -1,13 +1,13 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + systemRes "bygdata/model/system/response" + "bygdata/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 21c11aa..7338d39 100644 --- a/api/v1/system/sys_operation_record.go +++ b/api/v1/system/sys_operation_record.go @@ -1,12 +1,12 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_params.go b/api/v1/system/sys_params.go index 2ef8529..ab37ece 100644 --- a/api/v1/system/sys_params.go +++ b/api/v1/system/sys_params.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_skills.go b/api/v1/system/sys_skills.go index 93ac478..345c3cb 100644 --- a/api/v1/system/sys_skills.go +++ b/api/v1/system/sys_skills.go @@ -1,9 +1,9 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/api/v1/system/sys_system.go b/api/v1/system/sys_system.go index b6c32c4..e0f667e 100644 --- a/api/v1/system/sys_system.go +++ b/api/v1/system/sys_system.go @@ -1,11 +1,11 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + systemRes "bygdata/model/system/response" + "bygdata/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 28b5c7f..630ea0f 100644 --- a/api/v1/system/sys_user.go +++ b/api/v1/system/sys_user.go @@ -4,14 +4,14 @@ import ( "strconv" "time" - "byg-backend/global" - "byg-backend/model/common" - "byg-backend/model/common/request" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common" + "bygdata/model/common/request" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + systemRes "bygdata/model/system/response" + "bygdata/utils" "github.com/gin-gonic/gin" "github.com/redis/go-redis/v9" "go.uber.org/zap" diff --git a/api/v1/system/sys_version.go b/api/v1/system/sys_version.go index 5958d03..d9a32d5 100644 --- a/api/v1/system/sys_version.go +++ b/api/v1/system/sys_version.go @@ -8,12 +8,12 @@ import ( "strconv" "time" - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - systemRes "byg-backend/model/system/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + systemRes "bygdata/model/system/response" + "bygdata/utils" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/config-dev.yaml b/config-dev.yaml index 2a42055..8189f07 100644 --- a/config-dev.yaml +++ b/config-dev.yaml @@ -1,4 +1,4 @@ -# byg-backend Global Configuration +# bygdata Global Configuration # jwt configuration jwt: @@ -10,7 +10,7 @@ jwt: zap: level: info format: console - prefix: "[byg-backend]" + prefix: "[bygdata]" director: log show-line: true encode-level: LowercaseColorLevelEncoder @@ -183,7 +183,7 @@ autocode: web: web/src root: "" # root 自动适配项目根目录, 请不要手动配置,他会在项目加载的时候识别出根路径 server: server - module: 'byg-backend' + module: 'bygdata' ai-path: "" # AI服务路径 # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址) @@ -222,7 +222,7 @@ tencent-cos: secret-id: your-secret-id secret-key: your-secret-key base-url: https://gin.vue.admin - path-prefix: byg-backend + path-prefix: bygdata # aws s3 configuration (minio compatible) aws-s3: @@ -234,7 +234,7 @@ aws-s3: secret-id: your-secret-id secret-key: your-secret-key base-url: https://gin.vue.admin - path-prefix: byg-backend + path-prefix: bygdata # cloudflare r2 configuration cloudflare-r2: diff --git a/config.docker.yaml b/config.docker.yaml index 82cb633..94caa93 100644 --- a/config.docker.yaml +++ b/config.docker.yaml @@ -1,4 +1,4 @@ -# byg-backend Global Configuration +# bygdata Global Configuration # jwt configuration jwt: @@ -10,7 +10,7 @@ jwt: zap: level: info format: console - prefix: "[byg-backend]" + prefix: "[bygdata]" director: log show-line: true encode-level: LowercaseColorLevelEncoder @@ -181,7 +181,7 @@ autocode: web: web/src root: "" # root 自动适配项目根目录, 请不要手动配置,他会在项目加载的时候识别出根路径 server: server - module: 'byg-backend' + module: 'bygdata' ai-path: "" # AI服务路径 # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址) @@ -220,7 +220,7 @@ tencent-cos: secret-id: your-secret-id secret-key: your-secret-key base-url: https://gin.vue.admin - path-prefix: byg-backend + path-prefix: bygdata # aws s3 configuration (minio compatible) aws-s3: @@ -232,7 +232,7 @@ aws-s3: secret-id: your-secret-id secret-key: your-secret-key base-url: https://gin.vue.admin - path-prefix: byg-backend + path-prefix: bygdata # cloudflare r2 configuration cloudflare-r2: diff --git a/config.yaml b/config.yaml index 2a42055..6e74b20 100644 --- a/config.yaml +++ b/config.yaml @@ -1,293 +1,178 @@ -# byg-backend Global Configuration +# bygdata Global Configuration # jwt configuration jwt: - signing-key: qmPlus - expires-time: 7d - buffer-time: 1d - issuer: qmPlus + signing-key: fdshflkds-fdds-fdskwor-rn23bk-4324njd + expires-time: 7d + buffer-time: 1d + issuer: http://bygdata.bressx.la # zap logger configuration zap: - level: info - format: console - prefix: "[byg-backend]" - director: log - show-line: true - encode-level: LowercaseColorLevelEncoder - stacktrace-key: stacktrace - log-in-console: true - retention-day: -1 + level: debug + format: console + prefix: "[bygdata]" + director: log + show-line: true + encode-level: LowercaseColorLevelEncoder + stacktrace-key: stacktrace + log-in-console: true + retention-day: -1 # redis configuration redis: - #是否使用redis集群模式 - useCluster: false - #使用集群模式addr和db默认无效 - addr: 127.0.0.1:6379 - password: "" - db: 0 - clusterAddrs: - - "172.21.0.3:7000" - - "172.21.0.4:7001" - - "172.21.0.2:7002" + #是否使用redis集群模式 + useCluster: true + #使用集群模式addr和db默认无效 + addr: 127.0.0.1:6379 + password: "" + db: 0 + clusterAddrs: + - "goder-test-latest.kqsmcz.clustercfg.memorydb.ap-southeast-1.amazonaws.com:6379" + - "goder-test-latest-0001-001.kqsmcz.0001.memorydb.ap-southeast-1.amazonaws.com:6379" + - "goder-test-latest-0001-002.kqsmcz.0001.memorydb.ap-southeast-1.amazonaws.com:6379" # redis-list configuration redis-list: - - name: cache # 数据库的名称,注意: name 需要在 redis-list 中唯一 - useCluster: false # 是否使用redis集群模式 - addr: 127.0.0.1:6379 # 使用集群模式addr和db默认无效 - password: "" - db: 0 - clusterAddrs: - - "172.21.0.3:7000" - - "172.21.0.4:7001" - - "172.21.0.2:7002" - -# mongo configuration -mongo: - coll: '' - options: '' - database: '' - username: '' - password: '' - auth-source: '' - min-pool-size: 0 - max-pool-size: 100 - socket-timeout-ms: 0 - connect-timeout-ms: 0 - is-zap: false - hosts: - - host: '' - port: '' - -# email configuration -email: - to: xxx@qq.com - port: 465 - from: xxx@163.com - host: smtp.163.com - is-ssl: true - secret: xxx - nickname: test + - name: cache # 数据库的名称,注意: name 需要在 redis-list 中唯一 + useCluster: true # 是否使用redis集群模式 + addr: 127.0.0.1:6379 # 使用集群模式addr和db默认无效 + password: "" + db: 0 + clusterAddrs: + - "goder-test-latest.kqsmcz.clustercfg.memorydb.ap-southeast-1.amazonaws.com:6379" + - "goder-test-latest-0001-001.kqsmcz.0001.memorydb.ap-southeast-1.amazonaws.com:6379" + - "goder-test-latest-0001-002.kqsmcz.0001.memorydb.ap-southeast-1.amazonaws.com:6379" # system configuration system: - env: local # 修改为public可以关闭路由日志输出 - addr: 8888 - db-type: mysql - oss-type: local # 控制oss选择走本地还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置 - use-redis: false # 使用redis - use-mongo: false # 使用mongo - use-multipoint: false - # IP限制次数 一个小时15000次 - iplimit-count: 15000 - # IP限制一个小时 - iplimit-time: 3600 - # 路由全局前缀 - router-prefix: "" - # 严格角色模式 打开后权限将会存在上下级关系 - use-strict-auth: false - # 禁用自动迁移数据库表结构,生产环境建议设为true,手动迁移 - disable-auto-migrate: false + env: local # 修改为public可以关闭路由日志输出 + addr: 8888 + db-type: mysql + oss-type: local # 控制oss选择走本地还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置 + use-redis: false # 使用redis + use-mongo: false # 使用mongo + use-multipoint: false + # IP限制次数 一个小时15000次 + iplimit-count: 15000 + # IP限制一个小时 + iplimit-time: 3600 + # 路由全局前缀 + router-prefix: "" + # 严格角色模式 打开后权限将会存在上下级关系 + use-strict-auth: false + # 禁用自动迁移数据库表结构,生产环境建议设为true,手动迁移 + disable-auto-migrate: false # captcha configuration captcha: - key-long: 6 - img-width: 240 - img-height: 80 - open-captcha: 0 # 0代表一直开启,大于0代表限制次数 - open-captcha-timeout: 3600 # open-captcha大于0时才生效 + key-long: 6 + img-width: 240 + img-height: 80 + open-captcha: 0 # 0代表一直开启,大于0代表限制次数 + open-captcha-timeout: 3600 # open-captcha大于0时才生效 # mysql connect configuration # 未初始化之前请勿手动修改数据库信息!!!如果一定要手动初始化请看(https://gin-vue-admin.com/docs/first_master) mysql: - path: "" - port: "" - config: "" - db-name: "" - username: "" - password: "" - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false + path: "goder2.cpccmm68qb1d.ap-southeast-1.rds.amazonaws.com" + port: "3306" + config: "charset=utf8mb4&parseTime=True&loc=Local" + db-name: "byg_data" + username: "admin" + password: "vH2GkUxz2398GmDTy" + max-idle-conns: 10 + max-open-conns: 100 + log-mode: "" + log-zap: false # pgsql connect configuration # 未初始化之前请勿手动修改数据库信息!!!如果一定要手动初始化请看(https://gin-vue-admin.com/docs/first_master) pgsql: - path: "" - port: "" - config: "" - db-name: "" - username: "" - password: "" - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false -oracle: - path: "" - port: "" - config: "" - db-name: "" - username: "" - password: "" - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false -mssql: - path: "" - port: "" - config: "" - db-name: "" - username: "" - password: "" - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false -sqlite: - path: "" - port: "" - config: "" - db-name: "" - username: "" - password: "" - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false + path: "" + port: "" + config: "" + db-name: "" + username: "" + password: "" + max-idle-conns: 10 + max-open-conns: 100 + log-mode: "" + log-zap: false db-list: - - disable: true # 是否禁用 - type: "" # 数据库的类型,目前支持mysql、pgsql、mssql、oracle - alias-name: "" # 数据库的名称,注意: alias-name 需要在db-list中唯一 - path: "" - port: "" - config: "" - db-name: "" - username: "" - password: "" - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false + - disable: false # 是否禁用 + type: "mysql" # 数据库的类型,目前支持mysql、pgsql、mssql、oracle + alias-name: "byg_data" # 数据库的名称,注意: alias-name 需要在db-list中唯一 + path: "goder2.cpccmm68qb1d.ap-southeast-1.rds.amazonaws.com" + port: "3306" + config: "charset=utf8mb4&parseTime=True&loc=Local" + db-name: "byg_data" + username: "admin" + password: "vH2GkUxz2398GmDTy" + max-idle-conns: 10 + max-open-conns: 100 + log-mode: "debug" + log-zap: false # local configuration local: - path: uploads/file - store-path: uploads/file + path: uploads/file + store-path: uploads/file # autocode configuration autocode: - web: web/src - root: "" # root 自动适配项目根目录, 请不要手动配置,他会在项目加载的时候识别出根路径 - server: server - module: 'byg-backend' - ai-path: "" # AI服务路径 - -# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址) -qiniu: - zone: ZoneHuaDong - bucket: "" - img-path: "" - use-https: false - access-key: "" - secret-key: "" - use-cdn-domains: false - -# minio oss configuration -minio: - endpoint: yourEndpoint - access-key-id: yourAccessKeyId - access-key-secret: yourAccessKeySecret - bucket-name: yourBucketName - use-ssl: false - base-path: "" - bucket-url: "http://host:9000/yourBucketName" - -# aliyun oss configuration -aliyun-oss: - endpoint: yourEndpoint - access-key-id: yourAccessKeyId - access-key-secret: yourAccessKeySecret - bucket-name: yourBucketName - bucket-url: yourBucketUrl - base-path: yourBasePath - -# tencent cos configuration -tencent-cos: - bucket: xxxxx-10005608 - region: ap-shanghai - secret-id: your-secret-id - secret-key: your-secret-key - base-url: https://gin.vue.admin - path-prefix: byg-backend + web: web/src + root: "" # root 自动适配项目根目录, 请不要手动配置,他会在项目加载的时候识别出根路径 + server: server + module: 'bygdata' + ai-path: "" # AI服务路径 # aws s3 configuration (minio compatible) aws-s3: - bucket: xxxxx-10005608 - region: ap-shanghai - endpoint: "" - s3-force-path-style: false - disable-ssl: false - secret-id: your-secret-id - secret-key: your-secret-key - base-url: https://gin.vue.admin - path-prefix: byg-backend - -# cloudflare r2 configuration -cloudflare-r2: - bucket: xxxx0bucket - base-url: https://gin.vue.admin.com - path: uploads - account-id: xxx_account_id - access-key-id: xxx_key_id - secret-access-key: xxx_secret_key - -# huawei obs configuration -hua-wei-obs: - path: you-path - bucket: you-bucket - endpoint: you-endpoint - access-key: you-access-key - secret-key: you-secret-key + bucket: xxxxx-10005608 + region: ap-shanghai + endpoint: "" + s3-force-path-style: false + disable-ssl: false + secret-id: your-secret-id + secret-key: your-secret-key + base-url: https://gin.vue.admin + path-prefix: bygdata # excel configuration excel: - dir: ./resource/excel/ + dir: ./resource/excel/ # disk usage configuration disk-list: - - mount-point: "/" + - mount-point: "/" # 跨域配置 # 需要配合 server/initialize/router.go -> `Router.Use(middleware.CorsByRules())` 使用 cors: - mode: strict-whitelist # 放行模式: allow-all, 放行全部; whitelist, 白名单模式, 来自白名单内域名的请求添加 cors 头; strict-whitelist 严格白名单模式, 白名单外的请求一律拒绝 - whitelist: - - allow-origin: example1.com - allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id - allow-methods: POST, GET - expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type - allow-credentials: true # 布尔值 - - allow-origin: example2.com - allow-headers: content-type - allow-methods: GET, POST - expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type - allow-credentials: true # 布尔值 + mode: strict-whitelist # 放行模式: allow-all, 放行全部; whitelist, 白名单模式, 来自白名单内域名的请求添加 cors 头; strict-whitelist 严格白名单模式, 白名单外的请求一律拒绝 + whitelist: + - allow-origin: example1.com + allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id + allow-methods: POST, GET + expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type + allow-credentials: true # 布尔值 + - allow-origin: example2.com + allow-headers: content-type + allow-methods: GET, POST + expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type + allow-credentials: true # 布尔值 mcp: - name: GVA_MCP - version: v1.0.0 - sse_path: /sse - message_path: /message - url_prefix: '' - addr: 8889 - separate: false + name: GVA_MCP + version: v1.0.0 + sse_path: /sse + message_path: /message + url_prefix: '' + addr: 8889 + separate: false aws: - aws-sqs-url: https://sqs.ap-east-1.amazonaws.com/322814420330/boyingle.fifo - push-aws-sqs-url: https://sqs.ap-east-1.amazonaws.com/322814420330/boyingle.fifo - aws-sqs-access-key: AKIAUWKJ5EVVM2APLKGR - aws-sqs-secret-key: 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 - sqs-region: "" \ No newline at end of file + aws-sqs-url: https://sqs.ap-east-1.amazonaws.com/322814420330/boyingle.fifo + push-aws-sqs-url: https://sqs.ap-east-1.amazonaws.com/322814420330/boyingle.fifo + aws-sqs-access-key: AKIAUWKJ5EVVM2APLKGR + aws-sqs-secret-key: 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 + sqs-region: "" diff --git a/core/internal/zap_core.go b/core/internal/zap_core.go index 52c6037..212fe2e 100644 --- a/core/internal/zap_core.go +++ b/core/internal/zap_core.go @@ -1,11 +1,11 @@ package internal import ( - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/service" - astutil "byg-backend/utils/ast" - "byg-backend/utils/stacktrace" + "bygdata/global" + "bygdata/model/system" + "bygdata/service" + astutil "bygdata/utils/ast" + "bygdata/utils/stacktrace" "context" "fmt" "go.uber.org/zap" diff --git a/core/server.go b/core/server.go index c2b85f0..8221af5 100644 --- a/core/server.go +++ b/core/server.go @@ -1,9 +1,9 @@ package core import ( - "byg-backend/global" - "byg-backend/initialize" - "byg-backend/service/system" + "bygdata/global" + "bygdata/initialize" + "bygdata/service/system" "fmt" "go.uber.org/zap" "time" diff --git a/core/viper.go b/core/viper.go index 5569451..2d02694 100644 --- a/core/viper.go +++ b/core/viper.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "byg-backend/core/internal" - "byg-backend/global" + "bygdata/core/internal" + "bygdata/global" "github.com/fsnotify/fsnotify" "github.com/gin-gonic/gin" "github.com/spf13/viper" diff --git a/core/zap.go b/core/zap.go index 9965e65..2f62b83 100644 --- a/core/zap.go +++ b/core/zap.go @@ -1,9 +1,9 @@ package core import ( - "byg-backend/core/internal" - "byg-backend/global" - "byg-backend/utils" + "bygdata/core/internal" + "bygdata/global" + "bygdata/utils" "fmt" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/docs/docs.go b/docs/docs.go index e3f0f4a..a48d89d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -3,7 +3,7 @@ package docs import ( - "byg-backend/global" + "bygdata/global" "github.com/swaggo/swag" ) diff --git a/global/global.go b/global/global.go index 3644958..32f1254 100644 --- a/global/global.go +++ b/global/global.go @@ -8,14 +8,14 @@ import ( "github.com/gin-gonic/gin" "github.com/qiniu/qmgo" - "byg-backend/utils/timer" + "bygdata/utils/timer" "github.com/songzhibin97/gkit/cache/local_cache" "golang.org/x/sync/singleflight" "go.uber.org/zap" - "byg-backend/config" + "bygdata/config" "github.com/redis/go-redis/v9" "github.com/spf13/viper" diff --git a/go.mod b/go.mod index 9dfd970..19bfcd9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module byg-backend +module bygdata go 1.24.0 diff --git a/initialize/db_list.go b/initialize/db_list.go index 90f4dd6..dc2931b 100644 --- a/initialize/db_list.go +++ b/initialize/db_list.go @@ -1,8 +1,8 @@ package initialize import ( - "byg-backend/config" - "byg-backend/global" + "bygdata/config" + "bygdata/global" "gorm.io/gorm" ) diff --git a/initialize/ensure_tables.go b/initialize/ensure_tables.go index 990bc2a..e1def88 100644 --- a/initialize/ensure_tables.go +++ b/initialize/ensure_tables.go @@ -1,10 +1,10 @@ package initialize import ( - "byg-backend/model/example" - sysModel "byg-backend/model/system" - "byg-backend/plugin/announcement/model" - "byg-backend/service/system" + "bygdata/model/example" + sysModel "bygdata/model/system" + "bygdata/plugin/announcement/model" + "bygdata/service/system" "context" adapter "github.com/casbin/gorm-adapter/v3" "gorm.io/gorm" diff --git a/initialize/gorm.go b/initialize/gorm.go index a076619..749d5f7 100644 --- a/initialize/gorm.go +++ b/initialize/gorm.go @@ -3,9 +3,9 @@ package initialize import ( "os" - "byg-backend/global" - "byg-backend/model/example" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/example" + "bygdata/model/system" "go.uber.org/zap" "gorm.io/gorm" diff --git a/initialize/gorm_biz.go b/initialize/gorm_biz.go index f4203dd..6814111 100644 --- a/initialize/gorm_biz.go +++ b/initialize/gorm_biz.go @@ -1,7 +1,7 @@ package initialize import ( - "byg-backend/global" + "bygdata/global" ) func bizModel() error { diff --git a/initialize/gorm_mssql.go b/initialize/gorm_mssql.go index 529e876..fc17084 100644 --- a/initialize/gorm_mssql.go +++ b/initialize/gorm_mssql.go @@ -10,9 +10,9 @@ package initialize */ import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/initialize/internal" + "bygdata/config" + "bygdata/global" + "bygdata/initialize/internal" "gorm.io/driver/sqlserver" "gorm.io/gorm" ) diff --git a/initialize/gorm_mysql.go b/initialize/gorm_mysql.go index 401820d..c49a0cd 100644 --- a/initialize/gorm_mysql.go +++ b/initialize/gorm_mysql.go @@ -1,9 +1,9 @@ package initialize import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/initialize/internal" + "bygdata/config" + "bygdata/global" + "bygdata/initialize/internal" _ "github.com/go-sql-driver/mysql" "gorm.io/driver/mysql" "gorm.io/gorm" diff --git a/initialize/gorm_oracle.go b/initialize/gorm_oracle.go index c0b0542..76aa554 100644 --- a/initialize/gorm_oracle.go +++ b/initialize/gorm_oracle.go @@ -1,9 +1,9 @@ package initialize import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/initialize/internal" + "bygdata/config" + "bygdata/global" + "bygdata/initialize/internal" oracle "github.com/dzwvip/gorm-oracle" "gorm.io/gorm" ) diff --git a/initialize/gorm_pgsql.go b/initialize/gorm_pgsql.go index ce68023..798a034 100644 --- a/initialize/gorm_pgsql.go +++ b/initialize/gorm_pgsql.go @@ -1,9 +1,9 @@ package initialize import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/initialize/internal" + "bygdata/config" + "bygdata/global" + "bygdata/initialize/internal" "gorm.io/driver/postgres" "gorm.io/gorm" ) diff --git a/initialize/gorm_sqlite.go b/initialize/gorm_sqlite.go index e2846dd..ac266db 100644 --- a/initialize/gorm_sqlite.go +++ b/initialize/gorm_sqlite.go @@ -1,9 +1,9 @@ package initialize import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/initialize/internal" + "bygdata/config" + "bygdata/global" + "bygdata/initialize/internal" "github.com/glebarez/sqlite" "gorm.io/gorm" ) diff --git a/initialize/init.go b/initialize/init.go index 442a538..98d54fa 100644 --- a/initialize/init.go +++ b/initialize/init.go @@ -3,7 +3,7 @@ package initialize import ( - "byg-backend/utils" + "bygdata/utils" ) // 初始化全局函数 diff --git a/initialize/internal/gorm.go b/initialize/internal/gorm.go index 7e86af3..72b9b72 100644 --- a/initialize/internal/gorm.go +++ b/initialize/internal/gorm.go @@ -3,7 +3,7 @@ package internal import ( "time" - "byg-backend/config" + "bygdata/config" "gorm.io/gorm" "gorm.io/gorm/logger" "gorm.io/gorm/schema" diff --git a/initialize/internal/gorm_logger_writer.go b/initialize/internal/gorm_logger_writer.go index 36fb89c..b5211a4 100644 --- a/initialize/internal/gorm_logger_writer.go +++ b/initialize/internal/gorm_logger_writer.go @@ -1,8 +1,8 @@ package internal import ( - "byg-backend/config" - "byg-backend/global" + "bygdata/config" + "bygdata/global" "fmt" "gorm.io/gorm/logger" ) diff --git a/initialize/mcp.go b/initialize/mcp.go index 4dc9529..fdad231 100644 --- a/initialize/mcp.go +++ b/initialize/mcp.go @@ -1,8 +1,8 @@ package initialize import ( - "byg-backend/global" - mcpTool "byg-backend/mcp" + "bygdata/global" + mcpTool "bygdata/mcp" "github.com/mark3labs/mcp-go/server" ) diff --git a/initialize/mongo.go b/initialize/mongo.go index 7cbc7e4..9dc861c 100644 --- a/initialize/mongo.go +++ b/initialize/mongo.go @@ -1,9 +1,9 @@ package initialize import ( - "byg-backend/global" - "byg-backend/initialize/internal" - "byg-backend/utils" + "bygdata/global" + "bygdata/initialize/internal" + "bygdata/utils" "context" "fmt" "github.com/pkg/errors" diff --git a/initialize/other.go b/initialize/other.go index 9a04994..380af35 100644 --- a/initialize/other.go +++ b/initialize/other.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "byg-backend/global" - "byg-backend/utils" + "bygdata/global" + "bygdata/utils" ) func OtherInit() { diff --git a/initialize/plugin.go b/initialize/plugin.go index e440ec3..282bc5f 100644 --- a/initialize/plugin.go +++ b/initialize/plugin.go @@ -1,7 +1,7 @@ package initialize import ( - "byg-backend/global" + "bygdata/global" "github.com/gin-gonic/gin" ) diff --git a/initialize/plugin_biz_v1.go b/initialize/plugin_biz_v1.go index 688d15c..145aa8b 100644 --- a/initialize/plugin_biz_v1.go +++ b/initialize/plugin_biz_v1.go @@ -3,9 +3,9 @@ package initialize import ( "fmt" - "byg-backend/global" - "byg-backend/plugin/email" - "byg-backend/utils/plugin" + "bygdata/global" + "bygdata/plugin/email" + "bygdata/utils/plugin" "github.com/gin-gonic/gin" ) diff --git a/initialize/plugin_biz_v2.go b/initialize/plugin_biz_v2.go index 8c824b2..b489a95 100644 --- a/initialize/plugin_biz_v2.go +++ b/initialize/plugin_biz_v2.go @@ -1,8 +1,8 @@ package initialize import ( - _ "byg-backend/plugin" - "byg-backend/utils/plugin/v2" + _ "bygdata/plugin" + "bygdata/utils/plugin/v2" "github.com/gin-gonic/gin" ) diff --git a/initialize/redis.go b/initialize/redis.go index 2e5dd1d..4a884b7 100644 --- a/initialize/redis.go +++ b/initialize/redis.go @@ -3,8 +3,8 @@ package initialize import ( "context" - "byg-backend/config" - "byg-backend/global" + "bygdata/config" + "bygdata/global" "github.com/redis/go-redis/v9" "go.uber.org/zap" diff --git a/initialize/register_init.go b/initialize/register_init.go index b43973d..2a9e04d 100644 --- a/initialize/register_init.go +++ b/initialize/register_init.go @@ -1,8 +1,8 @@ package initialize import ( - _ "byg-backend/source/example" - _ "byg-backend/source/system" + _ "bygdata/source/example" + _ "bygdata/source/system" ) func init() { diff --git a/initialize/reload.go b/initialize/reload.go index f6da44e..02a336e 100644 --- a/initialize/reload.go +++ b/initialize/reload.go @@ -1,7 +1,7 @@ package initialize import ( - "byg-backend/global" + "bygdata/global" "go.uber.org/zap" ) diff --git a/initialize/router.go b/initialize/router.go index aa7829b..7890dab 100644 --- a/initialize/router.go +++ b/initialize/router.go @@ -4,10 +4,10 @@ import ( "net/http" "os" - "byg-backend/docs" - "byg-backend/global" - "byg-backend/middleware" - "byg-backend/router" + "bygdata/docs" + "bygdata/global" + "bygdata/middleware" + "bygdata/router" "github.com/gin-gonic/gin" swaggerFiles "github.com/swaggo/files" ginSwagger "github.com/swaggo/gin-swagger" diff --git a/initialize/router_biz.go b/initialize/router_biz.go index e583660..3783b2e 100644 --- a/initialize/router_biz.go +++ b/initialize/router_biz.go @@ -1,7 +1,7 @@ package initialize import ( - "byg-backend/router" + "bygdata/router" "github.com/gin-gonic/gin" ) diff --git a/initialize/timer.go b/initialize/timer.go index 7d90170..b842690 100644 --- a/initialize/timer.go +++ b/initialize/timer.go @@ -1,12 +1,12 @@ package initialize import ( - "byg-backend/task" + "bygdata/task" "fmt" "github.com/robfig/cron/v3" - "byg-backend/global" + "bygdata/global" ) func Timer() { diff --git a/initialize/validator.go b/initialize/validator.go index 7bd0d42..bac97e8 100644 --- a/initialize/validator.go +++ b/initialize/validator.go @@ -1,6 +1,6 @@ package initialize -import "byg-backend/utils" +import "bygdata/utils" func init() { _ = utils.RegisterRule("PageVerify", diff --git a/log/2026-02-02/info.log b/log/2026-02-02/info.log index b57ced1..a6ff7d6 100644 --- a/log/2026-02-02/info.log +++ b/log/2026-02-02/info.log @@ -1,15 +1,15 @@ -[byg-backend]2026-02-02 16:39:03.554 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/router.go:75 register swagger handler -[byg-backend]2026-02-02 16:39:03.584 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/plugin.go:10 项目暂未初始化,无法安装插件,初始化后重启项目即可完成插件安装 -[byg-backend]2026-02-02 16:39:03.585 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/router.go:129 router register success -[byg-backend]2026-02-02 16:40:18.841 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/core/server_run.go:48 关闭WEB服务... -[byg-backend]2026-02-02 16:40:18.843 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/core/server_run.go:59 WEB服务已关闭 -[byg-backend]2026-02-02 16:40:25.142 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/router.go:75 register swagger handler -[byg-backend]2026-02-02 16:40:25.171 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/plugin.go:10 项目暂未初始化,无法安装插件,初始化后重启项目即可完成插件安装 -[byg-backend]2026-02-02 16:40:25.171 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/router.go:129 router register success -[byg-backend]2026-02-02 16:40:44.437 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/core/server_run.go:48 关闭WEB服务... -[byg-backend]2026-02-02 16:40:44.438 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/core/server_run.go:59 WEB服务已关闭 -[byg-backend]2026-02-02 16:40:50.523 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/router.go:75 register swagger handler -[byg-backend]2026-02-02 16:40:50.557 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/plugin.go:10 项目暂未初始化,无法安装插件,初始化后重启项目即可完成插件安装 -[byg-backend]2026-02-02 16:40:50.559 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/initialize/router.go:129 router register success -[byg-backend]2026-02-02 16:41:00.505 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/core/server_run.go:48 关闭WEB服务... -[byg-backend]2026-02-02 16:41:00.506 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/byg-backend/core/server_run.go:59 WEB服务已关闭 +[bygdata]2026-02-02 16:39:03.554 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/router.go:75 register swagger handler +[bygdata]2026-02-02 16:39:03.584 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/plugin.go:10 项目暂未初始化,无法安装插件,初始化后重启项目即可完成插件安装 +[bygdata]2026-02-02 16:39:03.585 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/router.go:129 router register success +[bygdata]2026-02-02 16:40:18.841 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/core/server_run.go:48 关闭WEB服务... +[bygdata]2026-02-02 16:40:18.843 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/core/server_run.go:59 WEB服务已关闭 +[bygdata]2026-02-02 16:40:25.142 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/router.go:75 register swagger handler +[bygdata]2026-02-02 16:40:25.171 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/plugin.go:10 项目暂未初始化,无法安装插件,初始化后重启项目即可完成插件安装 +[bygdata]2026-02-02 16:40:25.171 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/router.go:129 router register success +[bygdata]2026-02-02 16:40:44.437 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/core/server_run.go:48 关闭WEB服务... +[bygdata]2026-02-02 16:40:44.438 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/core/server_run.go:59 WEB服务已关闭 +[bygdata]2026-02-02 16:40:50.523 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/router.go:75 register swagger handler +[bygdata]2026-02-02 16:40:50.557 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/plugin.go:10 项目暂未初始化,无法安装插件,初始化后重启项目即可完成插件安装 +[bygdata]2026-02-02 16:40:50.559 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/initialize/router.go:129 router register success +[bygdata]2026-02-02 16:41:00.505 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/core/server_run.go:48 关闭WEB服务... +[bygdata]2026-02-02 16:41:00.506 info /Users/liuzhiwang/go-project/src/gitlab.xunlei.cn/xacc/bygdata/core/server_run.go:59 WEB服务已关闭 diff --git a/log/2026-02-04/error.log b/log/2026-02-04/error.log new file mode 100644 index 0000000..3eb279d --- /dev/null +++ b/log/2026-02-04/error.log @@ -0,0 +1,21 @@ +[bygdata]2026-02-04 01:21:03.111 error /home/ubuntu/workspace/bygdata/api/v1/system/sys_user.go:68 登陆失败! 用户名不存在或者密码错误! {"error": "record not found"} +bygdata/api/v1/system.(*BaseApi).Login + /home/ubuntu/workspace/bygdata/api/v1/system/sys_user.go:68 +github.com/gin-gonic/gin.(*Context).Next + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +github.com/gin-gonic/gin.LoggerWithConfig.func1 + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +github.com/gin-gonic/gin.(*Context).Next + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +bygdata/initialize.Routers.GinRecovery.func4 + /home/ubuntu/workspace/bygdata/middleware/error.go:78 +github.com/gin-gonic/gin.(*Context).Next + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +github.com/gin-gonic/gin.(*Engine).handleHTTPRequest + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +github.com/gin-gonic/gin.(*Engine).ServeHTTP + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +net/http.serverHandler.ServeHTTP + /home/ubuntu/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:3301 +net/http.(*conn).serve + /home/ubuntu/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2102 diff --git a/log/2026-02-04/info.log b/log/2026-02-04/info.log new file mode 100644 index 0000000..55f3eb9 --- /dev/null +++ b/log/2026-02-04/info.log @@ -0,0 +1,11 @@ +[bygdata]2026-02-04 01:07:34.733 info /home/ubuntu/workspace/bygdata/initialize/gorm.go:84 register table success +[bygdata]2026-02-04 01:07:34.735 info /home/ubuntu/workspace/bygdata/initialize/router.go:75 register swagger handler +[bygdata]2026-02-04 01:07:34.831 info /home/ubuntu/workspace/bygdata/initialize/router.go:129 router register success +[bygdata]2026-02-04 01:20:14.169 info /home/ubuntu/workspace/bygdata/core/server_run.go:48 关闭WEB服务... +[bygdata]2026-02-04 01:20:14.172 info /home/ubuntu/workspace/bygdata/core/server_run.go:59 WEB服务已关闭 +[bygdata]2026-02-04 01:20:41.867 info /home/ubuntu/workspace/bygdata/initialize/gorm.go:84 register table success +[bygdata]2026-02-04 01:20:41.868 info /home/ubuntu/workspace/bygdata/initialize/router.go:75 register swagger handler +[bygdata]2026-02-04 01:20:41.897 info /home/ubuntu/workspace/bygdata/initialize/router.go:129 router register success +[bygdata]2026-02-04 01:21:05.419 info /home/ubuntu/workspace/bygdata/api/v1/system/sys_initdb.go:57 数据库无需初始化 +[bygdata]2026-02-04 01:23:12.576 info /home/ubuntu/workspace/bygdata/core/server_run.go:48 关闭WEB服务... +[bygdata]2026-02-04 01:23:12.577 info /home/ubuntu/workspace/bygdata/core/server_run.go:59 WEB服务已关闭 diff --git a/log/2026-02-05/error.log b/log/2026-02-05/error.log new file mode 100644 index 0000000..be9d6f9 --- /dev/null +++ b/log/2026-02-05/error.log @@ -0,0 +1,21 @@ +[bygdata]2026-02-05 05:11:15.206 error /home/ubuntu/workspace/bygdata/api/v1/system/sys_user.go:68 登陆失败! 用户名不存在或者密码错误! {"error": "record not found"} +bygdata/api/v1/system.(*BaseApi).Login + /home/ubuntu/workspace/bygdata/api/v1/system/sys_user.go:68 +github.com/gin-gonic/gin.(*Context).Next + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +github.com/gin-gonic/gin.LoggerWithConfig.func1 + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +github.com/gin-gonic/gin.(*Context).Next + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +bygdata/initialize.Routers.GinRecovery.func4 + /home/ubuntu/workspace/bygdata/middleware/error.go:78 +github.com/gin-gonic/gin.(*Context).Next + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +github.com/gin-gonic/gin.(*Engine).handleHTTPRequest + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +github.com/gin-gonic/gin.(*Engine).ServeHTTP + /home/ubuntu/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +net/http.serverHandler.ServeHTTP + /home/ubuntu/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:3301 +net/http.(*conn).serve + /home/ubuntu/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2102 diff --git a/log/2026-02-05/info.log b/log/2026-02-05/info.log new file mode 100644 index 0000000..dfbd694 --- /dev/null +++ b/log/2026-02-05/info.log @@ -0,0 +1,5 @@ +[bygdata]2026-02-05 05:10:14.085 info /home/ubuntu/workspace/bygdata/initialize/gorm.go:84 register table success +[bygdata]2026-02-05 05:10:14.086 info /home/ubuntu/workspace/bygdata/initialize/router.go:75 register swagger handler +[bygdata]2026-02-05 05:10:14.114 info /home/ubuntu/workspace/bygdata/initialize/router.go:129 router register success +[bygdata]2026-02-05 05:12:54.297 info /home/ubuntu/workspace/bygdata/core/server_run.go:48 关闭WEB服务... +[bygdata]2026-02-05 05:12:54.297 info /home/ubuntu/workspace/bygdata/core/server_run.go:59 WEB服务已关闭 diff --git a/main.go b/main.go index 22bcae7..637e8c0 100644 --- a/main.go +++ b/main.go @@ -1,10 +1,10 @@ package main import ( - "byg-backend/api/v1/sqs" - "byg-backend/core" - "byg-backend/global" - "byg-backend/initialize" + "bygdata/core" + "bygdata/global" + "bygdata/initialize" + _ "go.uber.org/automaxprocs" "go.uber.org/zap" ) @@ -47,7 +47,7 @@ func initializeSystem() { initialize.DBList() initialize.SetupHandlers() // 注册全局函数 - sqs.ProcessSqsMessage() // 消息队列 + //sqs.ProcessSqsMessage() // 消息队列 if global.GVA_DB != nil { initialize.RegisterTables() // 初始化表 diff --git a/mcp/api_creator.go b/mcp/api_creator.go index 77f7d65..d456f5f 100644 --- a/mcp/api_creator.go +++ b/mcp/api_creator.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/service" + "bygdata/global" + "bygdata/model/system" + "bygdata/service" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" ) diff --git a/mcp/api_lister.go b/mcp/api_lister.go index 557fa95..44b6ac9 100644 --- a/mcp/api_lister.go +++ b/mcp/api_lister.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" ) diff --git a/mcp/dictionary_generator.go b/mcp/dictionary_generator.go index 574d92a..99b7d8e 100644 --- a/mcp/dictionary_generator.go +++ b/mcp/dictionary_generator.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/service" + "bygdata/global" + "bygdata/model/system" + "bygdata/service" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" "gorm.io/gorm" diff --git a/mcp/dictionary_query.go b/mcp/dictionary_query.go index 5aba1bc..b6bd7db 100644 --- a/mcp/dictionary_query.go +++ b/mcp/dictionary_query.go @@ -5,9 +5,9 @@ import ( "encoding/json" "fmt" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/service" + "bygdata/global" + "bygdata/model/system" + "bygdata/service" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" "gorm.io/gorm" diff --git a/mcp/gva_analyze.go b/mcp/gva_analyze.go index 1dc489b..7bff0e4 100644 --- a/mcp/gva_analyze.go +++ b/mcp/gva_analyze.go @@ -1,7 +1,7 @@ package mcpTool import ( - model "byg-backend/model/system" + model "bygdata/model/system" "context" "encoding/json" "errors" @@ -10,7 +10,7 @@ import ( "path/filepath" "strings" - "byg-backend/global" + "bygdata/global" "github.com/mark3labs/mcp-go/mcp" ) diff --git a/mcp/gva_execute.go b/mcp/gva_execute.go index 625932c..e9b316b 100644 --- a/mcp/gva_execute.go +++ b/mcp/gva_execute.go @@ -1,18 +1,18 @@ package mcpTool import ( - model "byg-backend/model/system" - "byg-backend/utils" + model "bygdata/model/system" + "bygdata/utils" "context" "encoding/json" "errors" "fmt" "strings" - "byg-backend/global" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system/request" - "byg-backend/service" + "bygdata/service" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" ) diff --git a/mcp/menu_creator.go b/mcp/menu_creator.go index 1a73a7b..86e956c 100644 --- a/mcp/menu_creator.go +++ b/mcp/menu_creator.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/service" + "bygdata/global" + "bygdata/model/system" + "bygdata/service" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" ) diff --git a/mcp/menu_lister.go b/mcp/menu_lister.go index 77f288e..0265261 100644 --- a/mcp/menu_lister.go +++ b/mcp/menu_lister.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" "github.com/mark3labs/mcp-go/mcp" "go.uber.org/zap" ) diff --git a/middleware/casbin_rbac.go b/middleware/casbin_rbac.go index 6946b3e..1852525 100644 --- a/middleware/casbin_rbac.go +++ b/middleware/casbin_rbac.go @@ -1,9 +1,9 @@ package middleware import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/utils" "github.com/gin-gonic/gin" "strconv" "strings" diff --git a/middleware/cors.go b/middleware/cors.go index 24f1ee4..0955fef 100644 --- a/middleware/cors.go +++ b/middleware/cors.go @@ -1,8 +1,8 @@ package middleware import ( - "byg-backend/config" - "byg-backend/global" + "bygdata/config" + "bygdata/global" "github.com/gin-gonic/gin" "net/http" ) diff --git a/middleware/email.go b/middleware/email.go index 2ee50a2..27be74b 100644 --- a/middleware/email.go +++ b/middleware/email.go @@ -6,11 +6,11 @@ import ( "strconv" "time" - "byg-backend/plugin/email/utils" - utils2 "byg-backend/utils" + "bygdata/plugin/email/utils" + utils2 "bygdata/utils" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/middleware/error.go b/middleware/error.go index 4fb1548..9e803ef 100644 --- a/middleware/error.go +++ b/middleware/error.go @@ -10,9 +10,9 @@ import ( "runtime/debug" "strings" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/service" + "bygdata/global" + "bygdata/model/system" + "bygdata/service" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/middleware/jwt.go b/middleware/jwt.go index 2724192..dcf53af 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -5,11 +5,11 @@ import ( "strconv" "time" - "byg-backend/global" - "byg-backend/utils" + "bygdata/global" + "bygdata/utils" "github.com/golang-jwt/jwt/v5" - "byg-backend/model/common/response" + "bygdata/model/common/response" "github.com/gin-gonic/gin" ) diff --git a/middleware/limit_ip.go b/middleware/limit_ip.go index a49fb7c..52e8f86 100644 --- a/middleware/limit_ip.go +++ b/middleware/limit_ip.go @@ -8,8 +8,8 @@ import ( "go.uber.org/zap" - "byg-backend/global" - "byg-backend/model/common/response" + "bygdata/global" + "bygdata/model/common/response" "github.com/gin-gonic/gin" ) diff --git a/middleware/operation.go b/middleware/operation.go index 214602a..3d6f0df 100644 --- a/middleware/operation.go +++ b/middleware/operation.go @@ -11,10 +11,10 @@ import ( "sync" "time" - "byg-backend/utils" + "bygdata/utils" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/model/example/exa_attachment_category.go b/model/example/exa_attachment_category.go index 996f8eb..72346cd 100644 --- a/model/example/exa_attachment_category.go +++ b/model/example/exa_attachment_category.go @@ -1,7 +1,7 @@ package example import ( - "byg-backend/global" + "bygdata/global" ) type ExaAttachmentCategory struct { diff --git a/model/example/exa_breakpoint_continue.go b/model/example/exa_breakpoint_continue.go index 9471386..abc0bc3 100644 --- a/model/example/exa_breakpoint_continue.go +++ b/model/example/exa_breakpoint_continue.go @@ -1,7 +1,7 @@ package example import ( - "byg-backend/global" + "bygdata/global" ) // file struct, 文件结构体 diff --git a/model/example/exa_customer.go b/model/example/exa_customer.go index 3fca9eb..9be8eb6 100644 --- a/model/example/exa_customer.go +++ b/model/example/exa_customer.go @@ -1,8 +1,8 @@ package example import ( - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" ) type ExaCustomer struct { diff --git a/model/example/exa_file_upload_download.go b/model/example/exa_file_upload_download.go index 81c64ec..c611d58 100644 --- a/model/example/exa_file_upload_download.go +++ b/model/example/exa_file_upload_download.go @@ -1,7 +1,7 @@ package example import ( - "byg-backend/global" + "bygdata/global" ) type ExaFileUploadAndDownload struct { diff --git a/model/example/request/exa_file_upload_and_downloads.go b/model/example/request/exa_file_upload_and_downloads.go index a56cf58..27ceb8d 100644 --- a/model/example/request/exa_file_upload_and_downloads.go +++ b/model/example/request/exa_file_upload_and_downloads.go @@ -1,7 +1,7 @@ package request import ( - "byg-backend/model/common/request" + "bygdata/model/common/request" ) type ExaAttachmentCategorySearch struct { diff --git a/model/example/response/exa_breakpoint_continue.go b/model/example/response/exa_breakpoint_continue.go index 9bf1221..c0cd300 100644 --- a/model/example/response/exa_breakpoint_continue.go +++ b/model/example/response/exa_breakpoint_continue.go @@ -1,6 +1,6 @@ package response -import "byg-backend/model/example" +import "bygdata/model/example" type FilePathResponse struct { FilePath string `json:"filePath"` diff --git a/model/example/response/exa_customer.go b/model/example/response/exa_customer.go index f88f1a8..f14ace7 100644 --- a/model/example/response/exa_customer.go +++ b/model/example/response/exa_customer.go @@ -1,6 +1,6 @@ package response -import "byg-backend/model/example" +import "bygdata/model/example" type ExaCustomerResponse struct { Customer example.ExaCustomer `json:"customer"` diff --git a/model/example/response/exa_file_upload_download.go b/model/example/response/exa_file_upload_download.go index 0806f01..b2e282d 100644 --- a/model/example/response/exa_file_upload_download.go +++ b/model/example/response/exa_file_upload_download.go @@ -1,6 +1,6 @@ package response -import "byg-backend/model/example" +import "bygdata/model/example" type ExaFileResponse struct { File example.ExaFileUploadAndDownload `json:"file"` diff --git a/model/system/request/sys_api.go b/model/system/request/sys_api.go index b930c62..f628fac 100644 --- a/model/system/request/sys_api.go +++ b/model/system/request/sys_api.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" ) // api分页条件查询及排序结构体 diff --git a/model/system/request/sys_api_token.go b/model/system/request/sys_api_token.go index 394275d..5fb5b24 100644 --- a/model/system/request/sys_api_token.go +++ b/model/system/request/sys_api_token.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" ) type SysApiTokenSearch struct { diff --git a/model/system/request/sys_auto_code.go b/model/system/request/sys_auto_code.go index 4220297..1e5c50b 100644 --- a/model/system/request/sys_auto_code.go +++ b/model/system/request/sys_auto_code.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/global" - model "byg-backend/model/system" + "bygdata/global" + model "bygdata/model/system" "encoding/json" "fmt" "github.com/pkg/errors" diff --git a/model/system/request/sys_auto_code_package.go b/model/system/request/sys_auto_code_package.go index 589b131..bdbf24c 100644 --- a/model/system/request/sys_auto_code_package.go +++ b/model/system/request/sys_auto_code_package.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/global" - model "byg-backend/model/system" + "bygdata/global" + model "bygdata/model/system" ) type SysAutoCodePackageCreate struct { diff --git a/model/system/request/sys_auto_history.go b/model/system/request/sys_auto_history.go index 15bf05c..f0cc224 100644 --- a/model/system/request/sys_auto_history.go +++ b/model/system/request/sys_auto_history.go @@ -1,8 +1,8 @@ package request import ( - common "byg-backend/model/common/request" - model "byg-backend/model/system" + common "bygdata/model/common/request" + model "bygdata/model/system" ) type SysAutoHistoryCreate struct { diff --git a/model/system/request/sys_dictionary_detail.go b/model/system/request/sys_dictionary_detail.go index 51d4e0d..f095ad6 100644 --- a/model/system/request/sys_dictionary_detail.go +++ b/model/system/request/sys_dictionary_detail.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" ) type SysDictionaryDetailSearch struct { diff --git a/model/system/request/sys_error.go b/model/system/request/sys_error.go index 74990c5..d13db6d 100644 --- a/model/system/request/sys_error.go +++ b/model/system/request/sys_error.go @@ -1,7 +1,7 @@ package request import ( - "byg-backend/model/common/request" + "bygdata/model/common/request" "time" ) diff --git a/model/system/request/sys_export_template.go b/model/system/request/sys_export_template.go index dd0609b..d3c0913 100644 --- a/model/system/request/sys_export_template.go +++ b/model/system/request/sys_export_template.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" "time" ) diff --git a/model/system/request/sys_init.go b/model/system/request/sys_init.go index eddcf52..34b2c93 100644 --- a/model/system/request/sys_init.go +++ b/model/system/request/sys_init.go @@ -1,7 +1,7 @@ package request import ( - "byg-backend/config" + "bygdata/config" "fmt" "os" ) diff --git a/model/system/request/sys_login_log.go b/model/system/request/sys_login_log.go index d80e8c0..cc6c4b5 100644 --- a/model/system/request/sys_login_log.go +++ b/model/system/request/sys_login_log.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" ) type SysLoginLogSearch struct { diff --git a/model/system/request/sys_menu.go b/model/system/request/sys_menu.go index 3752877..dc5584c 100644 --- a/model/system/request/sys_menu.go +++ b/model/system/request/sys_menu.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" ) // AddMenuAuthorityInfo Add menu authority info structure diff --git a/model/system/request/sys_operation_record.go b/model/system/request/sys_operation_record.go index c7c548e..e42e3d3 100644 --- a/model/system/request/sys_operation_record.go +++ b/model/system/request/sys_operation_record.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" ) type SysOperationRecordSearch struct { diff --git a/model/system/request/sys_params.go b/model/system/request/sys_params.go index 1b9a0fd..a225361 100644 --- a/model/system/request/sys_params.go +++ b/model/system/request/sys_params.go @@ -1,7 +1,7 @@ package request import ( - "byg-backend/model/common/request" + "bygdata/model/common/request" "time" ) diff --git a/model/system/request/sys_skills.go b/model/system/request/sys_skills.go index d98cc58..f019a09 100644 --- a/model/system/request/sys_skills.go +++ b/model/system/request/sys_skills.go @@ -1,6 +1,6 @@ package request -import "byg-backend/model/system" +import "bygdata/model/system" type SkillToolRequest struct { Tool string `json:"tool"` diff --git a/model/system/request/sys_user.go b/model/system/request/sys_user.go index 3faadad..c8db1a6 100644 --- a/model/system/request/sys_user.go +++ b/model/system/request/sys_user.go @@ -1,8 +1,8 @@ package request import ( - common "byg-backend/model/common/request" - "byg-backend/model/system" + common "bygdata/model/common/request" + "bygdata/model/system" ) // Register User register structure diff --git a/model/system/request/sys_version.go b/model/system/request/sys_version.go index ea929f8..7afee73 100644 --- a/model/system/request/sys_version.go +++ b/model/system/request/sys_version.go @@ -1,8 +1,8 @@ package request import ( - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/model/common/request" + "bygdata/model/system" "time" ) diff --git a/model/system/response/sys_api.go b/model/system/response/sys_api.go index 2401ae4..0520a8c 100644 --- a/model/system/response/sys_api.go +++ b/model/system/response/sys_api.go @@ -1,7 +1,7 @@ package response import ( - "byg-backend/model/system" + "bygdata/model/system" ) type SysAPIResponse struct { diff --git a/model/system/response/sys_authority.go b/model/system/response/sys_authority.go index b5fcd77..ed380e7 100644 --- a/model/system/response/sys_authority.go +++ b/model/system/response/sys_authority.go @@ -1,6 +1,6 @@ package response -import "byg-backend/model/system" +import "bygdata/model/system" type SysAuthorityResponse struct { Authority system.SysAuthority `json:"authority"` diff --git a/model/system/response/sys_auto_code.go b/model/system/response/sys_auto_code.go index a6596b4..ca50c2b 100644 --- a/model/system/response/sys_auto_code.go +++ b/model/system/response/sys_auto_code.go @@ -1,6 +1,6 @@ package response -import "byg-backend/model/system" +import "bygdata/model/system" type Db struct { Database string `json:"database" gorm:"column:database"` diff --git a/model/system/response/sys_casbin.go b/model/system/response/sys_casbin.go index 09acf91..72fedf2 100644 --- a/model/system/response/sys_casbin.go +++ b/model/system/response/sys_casbin.go @@ -1,7 +1,7 @@ package response import ( - "byg-backend/model/system/request" + "bygdata/model/system/request" ) type PolicyPathResponse struct { diff --git a/model/system/response/sys_menu.go b/model/system/response/sys_menu.go index 1b1964c..ea2d2a8 100644 --- a/model/system/response/sys_menu.go +++ b/model/system/response/sys_menu.go @@ -1,6 +1,6 @@ package response -import "byg-backend/model/system" +import "bygdata/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 7c5d79a..4b1ea1d 100644 --- a/model/system/response/sys_system.go +++ b/model/system/response/sys_system.go @@ -1,6 +1,6 @@ package response -import "byg-backend/config" +import "bygdata/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 8d336bb..65771c5 100644 --- a/model/system/response/sys_user.go +++ b/model/system/response/sys_user.go @@ -1,7 +1,7 @@ package response import ( - "byg-backend/model/system" + "bygdata/model/system" ) type SysUserResponse struct { diff --git a/model/system/response/sys_version.go b/model/system/response/sys_version.go index 4858dd1..fc2f3c2 100644 --- a/model/system/response/sys_version.go +++ b/model/system/response/sys_version.go @@ -1,8 +1,8 @@ package response import ( - "byg-backend/model/system" - "byg-backend/model/system/request" + "bygdata/model/system" + "bygdata/model/system/request" ) // ExportVersionResponse 导出版本响应结构体 diff --git a/model/system/sys_api.go b/model/system/sys_api.go index 4f237f8..db9fc99 100644 --- a/model/system/sys_api.go +++ b/model/system/sys_api.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) type SysApi struct { diff --git a/model/system/sys_api_token.go b/model/system/sys_api_token.go index 5b7ea2f..afeddd2 100644 --- a/model/system/sys_api_token.go +++ b/model/system/sys_api_token.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" "time" ) diff --git a/model/system/sys_auto_code_history.go b/model/system/sys_auto_code_history.go index 2e2a01f..70d1f28 100644 --- a/model/system/sys_auto_code_history.go +++ b/model/system/sys_auto_code_history.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" "gorm.io/gorm" "os" "path" diff --git a/model/system/sys_auto_code_package.go b/model/system/sys_auto_code_package.go index 239ba0c..af34ad5 100644 --- a/model/system/sys_auto_code_package.go +++ b/model/system/sys_auto_code_package.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) type SysAutoCodePackage struct { diff --git a/model/system/sys_base_menu.go b/model/system/sys_base_menu.go index 10fc021..7776232 100644 --- a/model/system/sys_base_menu.go +++ b/model/system/sys_base_menu.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) type SysBaseMenu struct { diff --git a/model/system/sys_dictionary.go b/model/system/sys_dictionary.go index 60c8eaf..4168081 100644 --- a/model/system/sys_dictionary.go +++ b/model/system/sys_dictionary.go @@ -2,7 +2,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) // 如果含有time.Time 请自行import time包 diff --git a/model/system/sys_dictionary_detail.go b/model/system/sys_dictionary_detail.go index 7f58106..eb1f5e9 100644 --- a/model/system/sys_dictionary_detail.go +++ b/model/system/sys_dictionary_detail.go @@ -2,7 +2,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) // 如果含有time.Time 请自行import time包 diff --git a/model/system/sys_error.go b/model/system/sys_error.go index f415279..2c8a9a7 100644 --- a/model/system/sys_error.go +++ b/model/system/sys_error.go @@ -2,7 +2,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) // 错误日志 结构体 SysError diff --git a/model/system/sys_export_template.go b/model/system/sys_export_template.go index ac19a0b..e8eb7f4 100644 --- a/model/system/sys_export_template.go +++ b/model/system/sys_export_template.go @@ -2,7 +2,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) // 导出模板 结构体 SysExportTemplate diff --git a/model/system/sys_jwt_blacklist.go b/model/system/sys_jwt_blacklist.go index 7d05621..028497e 100644 --- a/model/system/sys_jwt_blacklist.go +++ b/model/system/sys_jwt_blacklist.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) type JwtBlacklist struct { diff --git a/model/system/sys_login_log.go b/model/system/sys_login_log.go index 0787d4c..89b3110 100644 --- a/model/system/sys_login_log.go +++ b/model/system/sys_login_log.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) type SysLoginLog struct { diff --git a/model/system/sys_menu_btn.go b/model/system/sys_menu_btn.go index 116fc65..e138eb4 100644 --- a/model/system/sys_menu_btn.go +++ b/model/system/sys_menu_btn.go @@ -1,6 +1,6 @@ package system -import "byg-backend/global" +import "bygdata/global" type SysBaseMenuBtn struct { global.GVA_MODEL diff --git a/model/system/sys_operation_record.go b/model/system/sys_operation_record.go index 5186d05..37d5c70 100644 --- a/model/system/sys_operation_record.go +++ b/model/system/sys_operation_record.go @@ -4,7 +4,7 @@ package system import ( "time" - "byg-backend/global" + "bygdata/global" ) // 如果含有time.Time 请自行import time包 diff --git a/model/system/sys_params.go b/model/system/sys_params.go index 1347f40..50a291a 100644 --- a/model/system/sys_params.go +++ b/model/system/sys_params.go @@ -2,7 +2,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) // 参数 结构体 SysParams diff --git a/model/system/sys_system.go b/model/system/sys_system.go index 240fd52..bca6ead 100644 --- a/model/system/sys_system.go +++ b/model/system/sys_system.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/config" + "bygdata/config" ) // 配置文件结构体 diff --git a/model/system/sys_user.go b/model/system/sys_user.go index 1cb3d79..3b3c6ba 100644 --- a/model/system/sys_user.go +++ b/model/system/sys_user.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common" + "bygdata/global" + "bygdata/model/common" "github.com/google/uuid" ) diff --git a/model/system/sys_version.go b/model/system/sys_version.go index 4b52a55..1231667 100644 --- a/model/system/sys_version.go +++ b/model/system/sys_version.go @@ -2,7 +2,7 @@ package system import ( - "byg-backend/global" + "bygdata/global" ) // 版本管理 结构体 SysVersion diff --git a/plugin/announcement/api/enter.go b/plugin/announcement/api/enter.go index 2b90984..01deb8b 100644 --- a/plugin/announcement/api/enter.go +++ b/plugin/announcement/api/enter.go @@ -1,6 +1,6 @@ package api -import "byg-backend/plugin/announcement/service" +import "bygdata/plugin/announcement/service" var ( Api = new(api) diff --git a/plugin/announcement/api/info.go b/plugin/announcement/api/info.go index 02a2fc2..8035fa9 100644 --- a/plugin/announcement/api/info.go +++ b/plugin/announcement/api/info.go @@ -1,10 +1,10 @@ package api import ( - "byg-backend/global" - "byg-backend/model/common/response" - "byg-backend/plugin/announcement/model" - "byg-backend/plugin/announcement/model/request" + "bygdata/global" + "bygdata/model/common/response" + "bygdata/plugin/announcement/model" + "bygdata/plugin/announcement/model/request" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/plugin/announcement/gen/gen.go b/plugin/announcement/gen/gen.go index 8f10dc3..1d85d2a 100644 --- a/plugin/announcement/gen/gen.go +++ b/plugin/announcement/gen/gen.go @@ -5,7 +5,7 @@ import ( "path/filepath" //go:generate go mod tidy //go:generate go mod download //go:generate go run gen.go - "byg-backend/plugin/announcement/model" + "bygdata/plugin/announcement/model" ) func main() { diff --git a/plugin/announcement/initialize/api.go b/plugin/announcement/initialize/api.go index 220b7c8..3bd9072 100644 --- a/plugin/announcement/initialize/api.go +++ b/plugin/announcement/initialize/api.go @@ -1,8 +1,8 @@ package initialize import ( - model "byg-backend/model/system" - "byg-backend/plugin/plugin-tool/utils" + model "bygdata/model/system" + "bygdata/plugin/plugin-tool/utils" "context" ) diff --git a/plugin/announcement/initialize/dictionary.go b/plugin/announcement/initialize/dictionary.go index ea5043a..08b1fc6 100644 --- a/plugin/announcement/initialize/dictionary.go +++ b/plugin/announcement/initialize/dictionary.go @@ -1,8 +1,8 @@ package initialize import ( - model "byg-backend/model/system" - "byg-backend/plugin/plugin-tool/utils" + model "bygdata/model/system" + "bygdata/plugin/plugin-tool/utils" "context" ) diff --git a/plugin/announcement/initialize/gorm.go b/plugin/announcement/initialize/gorm.go index e28a92a..437949a 100644 --- a/plugin/announcement/initialize/gorm.go +++ b/plugin/announcement/initialize/gorm.go @@ -1,8 +1,8 @@ package initialize import ( - "byg-backend/global" - "byg-backend/plugin/announcement/model" + "bygdata/global" + "bygdata/plugin/announcement/model" "context" "fmt" "github.com/pkg/errors" diff --git a/plugin/announcement/initialize/menu.go b/plugin/announcement/initialize/menu.go index bf886c5..c11a382 100644 --- a/plugin/announcement/initialize/menu.go +++ b/plugin/announcement/initialize/menu.go @@ -1,8 +1,8 @@ package initialize import ( - model "byg-backend/model/system" - "byg-backend/plugin/plugin-tool/utils" + model "bygdata/model/system" + "bygdata/plugin/plugin-tool/utils" "context" ) diff --git a/plugin/announcement/initialize/router.go b/plugin/announcement/initialize/router.go index 0fba633..707d646 100644 --- a/plugin/announcement/initialize/router.go +++ b/plugin/announcement/initialize/router.go @@ -1,9 +1,9 @@ package initialize import ( - "byg-backend/global" - "byg-backend/middleware" - "byg-backend/plugin/announcement/router" + "bygdata/global" + "bygdata/middleware" + "bygdata/plugin/announcement/router" "github.com/gin-gonic/gin" ) diff --git a/plugin/announcement/initialize/viper.go b/plugin/announcement/initialize/viper.go index f703a45..eff0f42 100644 --- a/plugin/announcement/initialize/viper.go +++ b/plugin/announcement/initialize/viper.go @@ -1,8 +1,8 @@ package initialize import ( - "byg-backend/global" - "byg-backend/plugin/announcement/plugin" + "bygdata/global" + "bygdata/plugin/announcement/plugin" "fmt" "github.com/pkg/errors" "go.uber.org/zap" diff --git a/plugin/announcement/model/info.go b/plugin/announcement/model/info.go index f90525a..6e58672 100644 --- a/plugin/announcement/model/info.go +++ b/plugin/announcement/model/info.go @@ -1,7 +1,7 @@ package model import ( - "byg-backend/global" + "bygdata/global" "gorm.io/datatypes" ) diff --git a/plugin/announcement/model/request/info.go b/plugin/announcement/model/request/info.go index e86584f..519c22c 100644 --- a/plugin/announcement/model/request/info.go +++ b/plugin/announcement/model/request/info.go @@ -1,7 +1,7 @@ package request import ( - "byg-backend/model/common/request" + "bygdata/model/common/request" "time" ) diff --git a/plugin/announcement/plugin.go b/plugin/announcement/plugin.go index 5618aeb..d483648 100644 --- a/plugin/announcement/plugin.go +++ b/plugin/announcement/plugin.go @@ -1,8 +1,8 @@ package announcement import ( - "byg-backend/plugin/announcement/initialize" - interfaces "byg-backend/utils/plugin/v2" + "bygdata/plugin/announcement/initialize" + interfaces "bygdata/utils/plugin/v2" "context" "github.com/gin-gonic/gin" ) diff --git a/plugin/announcement/plugin/plugin.go b/plugin/announcement/plugin/plugin.go index 346ee5b..2fb7623 100644 --- a/plugin/announcement/plugin/plugin.go +++ b/plugin/announcement/plugin/plugin.go @@ -1,5 +1,5 @@ package plugin -import "byg-backend/plugin/announcement/config" +import "bygdata/plugin/announcement/config" var Config config.Config diff --git a/plugin/announcement/router/enter.go b/plugin/announcement/router/enter.go index 882d41b..4d11c8c 100644 --- a/plugin/announcement/router/enter.go +++ b/plugin/announcement/router/enter.go @@ -1,6 +1,6 @@ package router -import "byg-backend/plugin/announcement/api" +import "bygdata/plugin/announcement/api" var ( Router = new(router) diff --git a/plugin/announcement/router/info.go b/plugin/announcement/router/info.go index e680c8c..7be0276 100644 --- a/plugin/announcement/router/info.go +++ b/plugin/announcement/router/info.go @@ -1,7 +1,7 @@ package router import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/plugin/announcement/service/info.go b/plugin/announcement/service/info.go index 724abda..a76ea54 100644 --- a/plugin/announcement/service/info.go +++ b/plugin/announcement/service/info.go @@ -1,9 +1,9 @@ package service import ( - "byg-backend/global" - "byg-backend/plugin/announcement/model" - "byg-backend/plugin/announcement/model/request" + "bygdata/global" + "bygdata/plugin/announcement/model" + "bygdata/plugin/announcement/model/request" ) var Info = new(info) diff --git a/plugin/email/api/sys_email.go b/plugin/email/api/sys_email.go index 0306089..a3d5de2 100644 --- a/plugin/email/api/sys_email.go +++ b/plugin/email/api/sys_email.go @@ -1,10 +1,10 @@ package api import ( - "byg-backend/global" - "byg-backend/model/common/response" - email_response "byg-backend/plugin/email/model/response" - "byg-backend/plugin/email/service" + "bygdata/global" + "bygdata/model/common/response" + email_response "bygdata/plugin/email/model/response" + "bygdata/plugin/email/service" "github.com/gin-gonic/gin" "go.uber.org/zap" ) diff --git a/plugin/email/global/gloabl.go b/plugin/email/global/gloabl.go index 9d05ce0..979f0b4 100644 --- a/plugin/email/global/gloabl.go +++ b/plugin/email/global/gloabl.go @@ -1,5 +1,5 @@ package global -import "byg-backend/plugin/email/config" +import "bygdata/plugin/email/config" var GlobalConfig = new(config.Email) diff --git a/plugin/email/main.go b/plugin/email/main.go index d734455..b87f921 100644 --- a/plugin/email/main.go +++ b/plugin/email/main.go @@ -1,8 +1,8 @@ package email import ( - "byg-backend/plugin/email/global" - "byg-backend/plugin/email/router" + "bygdata/plugin/email/global" + "bygdata/plugin/email/router" "github.com/gin-gonic/gin" ) diff --git a/plugin/email/router/sys_email.go b/plugin/email/router/sys_email.go index 68ed3f1..764c90b 100644 --- a/plugin/email/router/sys_email.go +++ b/plugin/email/router/sys_email.go @@ -1,8 +1,8 @@ package router import ( - "byg-backend/middleware" - "byg-backend/plugin/email/api" + "bygdata/middleware" + "bygdata/plugin/email/api" "github.com/gin-gonic/gin" ) diff --git a/plugin/email/service/sys_email.go b/plugin/email/service/sys_email.go index fba9f99..7fd2548 100644 --- a/plugin/email/service/sys_email.go +++ b/plugin/email/service/sys_email.go @@ -1,7 +1,7 @@ package service import ( - "byg-backend/plugin/email/utils" + "bygdata/plugin/email/utils" ) type EmailService struct{} diff --git a/plugin/email/utils/email.go b/plugin/email/utils/email.go index ea4dda5..78e06c1 100644 --- a/plugin/email/utils/email.go +++ b/plugin/email/utils/email.go @@ -6,7 +6,7 @@ import ( "net/smtp" "strings" - "byg-backend/plugin/email/global" + "bygdata/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 6bfd76b..e071097 100644 --- a/plugin/plugin-tool/utils/check.go +++ b/plugin/plugin-tool/utils/check.go @@ -9,8 +9,8 @@ import ( "strings" "sync" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" ) var ( diff --git a/plugin/register.go b/plugin/register.go index 89abd31..6e35400 100644 --- a/plugin/register.go +++ b/plugin/register.go @@ -1,5 +1,5 @@ package plugin import ( - _ "byg-backend/plugin/announcement" + _ "bygdata/plugin/announcement" ) diff --git a/resource/package/readme.txt.tpl b/resource/package/readme.txt.tpl index b7ef35c..489a08b 100644 --- a/resource/package/readme.txt.tpl +++ b/resource/package/readme.txt.tpl @@ -2,6 +2,6 @@ 后端代码解压后同理,放到自己想要的 mvc对应路径 并且到 initRouter中注册自动生成的路由 到registerTable中注册自动生成的model -项目github:"https://github.com/piexlmax/byg-backend" +项目github:"https://github.com/piexlmax/bygdata" 希望大家给个star多多鼓励 diff --git a/router/enter.go b/router/enter.go index bc892bb..f43c906 100644 --- a/router/enter.go +++ b/router/enter.go @@ -1,8 +1,8 @@ package router import ( - "byg-backend/router/example" - "byg-backend/router/system" + "bygdata/router/example" + "bygdata/router/system" ) var RouterGroupApp = new(RouterGroup) diff --git a/router/example/enter.go b/router/example/enter.go index b4ffc31..316550f 100644 --- a/router/example/enter.go +++ b/router/example/enter.go @@ -1,7 +1,7 @@ package example import ( - api "byg-backend/api/v1" + api "bygdata/api/v1" ) type RouterGroup struct { diff --git a/router/example/exa_customer.go b/router/example/exa_customer.go index c679903..bd11db3 100644 --- a/router/example/exa_customer.go +++ b/router/example/exa_customer.go @@ -1,7 +1,7 @@ package example import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/enter.go b/router/system/enter.go index 2dbeb4a..f149112 100644 --- a/router/system/enter.go +++ b/router/system/enter.go @@ -1,6 +1,6 @@ package system -import api "byg-backend/api/v1" +import api "bygdata/api/v1" type RouterGroup struct { ApiRouter diff --git a/router/system/sys_api.go b/router/system/sys_api.go index 68a67e9..df16ea7 100644 --- a/router/system/sys_api.go +++ b/router/system/sys_api.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_api_token.go b/router/system/sys_api_token.go index 294df2f..924494f 100644 --- a/router/system/sys_api_token.go +++ b/router/system/sys_api_token.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/api/v1" - "byg-backend/middleware" + "bygdata/api/v1" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_authority.go b/router/system/sys_authority.go index e9aed48..d3863f2 100644 --- a/router/system/sys_authority.go +++ b/router/system/sys_authority.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_casbin.go b/router/system/sys_casbin.go index 3a05e83..97a5d18 100644 --- a/router/system/sys_casbin.go +++ b/router/system/sys_casbin.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_dictionary.go b/router/system/sys_dictionary.go index 5ccb0f3..1e92a87 100644 --- a/router/system/sys_dictionary.go +++ b/router/system/sys_dictionary.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_dictionary_detail.go b/router/system/sys_dictionary_detail.go index 382379c..d954290 100644 --- a/router/system/sys_dictionary_detail.go +++ b/router/system/sys_dictionary_detail.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_error.go b/router/system/sys_error.go index 7f10cb2..ca4eb86 100644 --- a/router/system/sys_error.go +++ b/router/system/sys_error.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_export_template.go b/router/system/sys_export_template.go index 80213d3..ecee68e 100644 --- a/router/system/sys_export_template.go +++ b/router/system/sys_export_template.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_login_log.go b/router/system/sys_login_log.go index 96ed664..00f339e 100644 --- a/router/system/sys_login_log.go +++ b/router/system/sys_login_log.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/api/v1" - "byg-backend/middleware" + "bygdata/api/v1" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_menu.go b/router/system/sys_menu.go index 6515b7f..9d64311 100644 --- a/router/system/sys_menu.go +++ b/router/system/sys_menu.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_params.go b/router/system/sys_params.go index 1389944..bd34bd0 100644 --- a/router/system/sys_params.go +++ b/router/system/sys_params.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_system.go b/router/system/sys_system.go index ce4996c..4bb4795 100644 --- a/router/system/sys_system.go +++ b/router/system/sys_system.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_user.go b/router/system/sys_user.go index d79c413..88632b8 100644 --- a/router/system/sys_user.go +++ b/router/system/sys_user.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/router/system/sys_version.go b/router/system/sys_version.go index bc21256..1e2943a 100644 --- a/router/system/sys_version.go +++ b/router/system/sys_version.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/middleware" + "bygdata/middleware" "github.com/gin-gonic/gin" ) diff --git a/service/enter.go b/service/enter.go index 783e42c..c9ecdc1 100644 --- a/service/enter.go +++ b/service/enter.go @@ -1,8 +1,8 @@ package service import ( - "byg-backend/service/example" - "byg-backend/service/system" + "bygdata/service/example" + "bygdata/service/system" ) var ServiceGroupApp = new(ServiceGroup) diff --git a/service/example/exa_attachment_category.go b/service/example/exa_attachment_category.go index 24c054c..6e96bd7 100644 --- a/service/example/exa_attachment_category.go +++ b/service/example/exa_attachment_category.go @@ -1,8 +1,8 @@ package example import ( - "byg-backend/global" - "byg-backend/model/example" + "bygdata/global" + "bygdata/model/example" "errors" "gorm.io/gorm" ) diff --git a/service/example/exa_breakpoint_continue.go b/service/example/exa_breakpoint_continue.go index 7cf7135..444a0e5 100644 --- a/service/example/exa_breakpoint_continue.go +++ b/service/example/exa_breakpoint_continue.go @@ -3,8 +3,8 @@ package example import ( "errors" - "byg-backend/global" - "byg-backend/model/example" + "bygdata/global" + "bygdata/model/example" "gorm.io/gorm" ) diff --git a/service/example/exa_customer.go b/service/example/exa_customer.go index 8bbcf18..13d3c77 100644 --- a/service/example/exa_customer.go +++ b/service/example/exa_customer.go @@ -1,11 +1,11 @@ package example import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/example" - "byg-backend/model/system" - systemService "byg-backend/service/system" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/example" + "bygdata/model/system" + systemService "bygdata/service/system" ) type CustomerService struct{} diff --git a/service/example/exa_file_upload_download.go b/service/example/exa_file_upload_download.go index 76c81ae..5cec2d4 100644 --- a/service/example/exa_file_upload_download.go +++ b/service/example/exa_file_upload_download.go @@ -5,10 +5,10 @@ import ( "mime/multipart" "strings" - "byg-backend/global" - "byg-backend/model/example" - "byg-backend/model/example/request" - "byg-backend/utils/upload" + "bygdata/global" + "bygdata/model/example" + "bygdata/model/example/request" + "bygdata/utils/upload" "gorm.io/gorm" ) diff --git a/service/system/auto_code_history.go b/service/system/auto_code_history.go index fba072c..aa064c3 100644 --- a/service/system/auto_code_history.go +++ b/service/system/auto_code_history.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/utils/ast" + "bygdata/utils/ast" "context" "encoding/json" "fmt" @@ -12,11 +12,11 @@ import ( "strings" "time" - "byg-backend/global" - common "byg-backend/model/common/request" - model "byg-backend/model/system" - request "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + common "bygdata/model/common/request" + model "bygdata/model/system" + request "bygdata/model/system/request" + "bygdata/utils" "go.uber.org/zap" ) diff --git a/service/system/auto_code_llm.go b/service/system/auto_code_llm.go index 49dbc80..e34b106 100644 --- a/service/system/auto_code_llm.go +++ b/service/system/auto_code_llm.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common" - commonResp "byg-backend/model/common/response" - "byg-backend/utils/request" + "bygdata/global" + "bygdata/model/common" + commonResp "bygdata/model/common/response" + "bygdata/utils/request" "context" "errors" "fmt" diff --git a/service/system/auto_code_mcp.go b/service/system/auto_code_mcp.go index d80d693..dbd011b 100644 --- a/service/system/auto_code_mcp.go +++ b/service/system/auto_code_mcp.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/request" - "byg-backend/utils" - "byg-backend/utils/autocode" + "bygdata/global" + "bygdata/model/system/request" + "bygdata/utils" + "bygdata/utils/autocode" "context" "os" "path/filepath" diff --git a/service/system/auto_code_package.go b/service/system/auto_code_package.go index c25ac33..74410a7 100644 --- a/service/system/auto_code_package.go +++ b/service/system/auto_code_package.go @@ -9,13 +9,13 @@ import ( "strings" "text/template" - "byg-backend/global" - common "byg-backend/model/common/request" - model "byg-backend/model/system" - "byg-backend/model/system/request" - "byg-backend/utils" - "byg-backend/utils/ast" - "byg-backend/utils/autocode" + "bygdata/global" + common "bygdata/model/common/request" + model "bygdata/model/system" + "bygdata/model/system/request" + "bygdata/utils" + "bygdata/utils/ast" + "bygdata/utils/autocode" "github.com/pkg/errors" "gorm.io/gorm" ) diff --git a/service/system/auto_code_package_test.go b/service/system/auto_code_package_test.go index ef762e1..a11dd1b 100644 --- a/service/system/auto_code_package_test.go +++ b/service/system/auto_code_package_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - model "byg-backend/model/system" - "byg-backend/model/system/request" + model "bygdata/model/system" + "bygdata/model/system/request" ) func Test_autoCodePackage_Create(t *testing.T) { diff --git a/service/system/auto_code_plugin.go b/service/system/auto_code_plugin.go index 0a294a0..e9875d9 100644 --- a/service/system/auto_code_plugin.go +++ b/service/system/auto_code_plugin.go @@ -14,12 +14,12 @@ import ( "path/filepath" "strings" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/model/system/request" - pluginUtils "byg-backend/plugin/plugin-tool/utils" - "byg-backend/utils" - ast "byg-backend/utils/ast" + "bygdata/global" + "bygdata/model/system" + "bygdata/model/system/request" + pluginUtils "bygdata/plugin/plugin-tool/utils" + "bygdata/utils" + ast "bygdata/utils/ast" "github.com/mholt/archives" cp "github.com/otiai10/copy" "github.com/pkg/errors" diff --git a/service/system/auto_code_template.go b/service/system/auto_code_template.go index 2493729..c255087 100644 --- a/service/system/auto_code_template.go +++ b/service/system/auto_code_template.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/utils/autocode" + "bygdata/utils/autocode" "context" "encoding/json" "fmt" @@ -14,10 +14,10 @@ import ( "strings" "text/template" - "byg-backend/global" - model "byg-backend/model/system" - "byg-backend/model/system/request" - utilsAst "byg-backend/utils/ast" + "bygdata/global" + model "bygdata/model/system" + "bygdata/model/system/request" + utilsAst "bygdata/utils/ast" "github.com/pkg/errors" "gorm.io/gorm" ) diff --git a/service/system/auto_code_template_test.go b/service/system/auto_code_template_test.go index 3ba5883..7bbfdd3 100644 --- a/service/system/auto_code_template_test.go +++ b/service/system/auto_code_template_test.go @@ -1,7 +1,7 @@ package system import ( - "byg-backend/model/system/request" + "bygdata/model/system/request" "context" "encoding/json" "reflect" diff --git a/service/system/jwt_black_list.go b/service/system/jwt_black_list.go index f79fda5..1bab6f1 100644 --- a/service/system/jwt_black_list.go +++ b/service/system/jwt_black_list.go @@ -5,8 +5,8 @@ import ( "go.uber.org/zap" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" ) type JwtService struct{} diff --git a/service/system/sys_api.go b/service/system/sys_api.go index c44ff5f..17e6130 100644 --- a/service/system/sys_api.go +++ b/service/system/sys_api.go @@ -5,10 +5,10 @@ import ( "fmt" "strings" - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/system" - systemRes "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/system" + systemRes "bygdata/model/system/response" "gorm.io/gorm" ) diff --git a/service/system/sys_api_token.go b/service/system/sys_api_token.go index f0cc7c5..1c18adc 100644 --- a/service/system/sys_api_token.go +++ b/service/system/sys_api_token.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system" - sysReq "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/system" + sysReq "bygdata/model/system/request" + "bygdata/utils" "errors" "github.com/golang-jwt/jwt/v5" "time" diff --git a/service/system/sys_authority.go b/service/system/sys_authority.go index 6923a78..2f64941 100644 --- a/service/system/sys_authority.go +++ b/service/system/sys_authority.go @@ -4,12 +4,12 @@ import ( "errors" "strconv" - systemReq "byg-backend/model/system/request" + systemReq "bygdata/model/system/request" - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/system" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/system" + "bygdata/model/system/response" "gorm.io/gorm" ) diff --git a/service/system/sys_authority_btn.go b/service/system/sys_authority_btn.go index c8a4576..43b394d 100644 --- a/service/system/sys_authority_btn.go +++ b/service/system/sys_authority_btn.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/model/system/request" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/system" + "bygdata/model/system/request" + "bygdata/model/system/response" "errors" "gorm.io/gorm" ) diff --git a/service/system/sys_auto_code_interface.go b/service/system/sys_auto_code_interface.go index d91ff3a..1d4e2e5 100644 --- a/service/system/sys_auto_code_interface.go +++ b/service/system/sys_auto_code_interface.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/system/response" ) type AutoCodeService struct{} diff --git a/service/system/sys_auto_code_mssql.go b/service/system/sys_auto_code_mssql.go index 4a804d9..8785fbf 100644 --- a/service/system/sys_auto_code_mssql.go +++ b/service/system/sys_auto_code_mssql.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/system/response" "fmt" ) diff --git a/service/system/sys_auto_code_mysql.go b/service/system/sys_auto_code_mysql.go index a68e494..6fbd2b2 100644 --- a/service/system/sys_auto_code_mysql.go +++ b/service/system/sys_auto_code_mysql.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/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 704a02a..d0950fd 100644 --- a/service/system/sys_auto_code_oracle.go +++ b/service/system/sys_auto_code_oracle.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/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 88ce462..d01fe86 100644 --- a/service/system/sys_auto_code_pgsql.go +++ b/service/system/sys_auto_code_pgsql.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/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 0e18bed..c22b347 100644 --- a/service/system/sys_auto_code_sqlite.go +++ b/service/system/sys_auto_code_sqlite.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/response" + "bygdata/global" + "bygdata/model/system/response" "fmt" "path/filepath" "strings" diff --git a/service/system/sys_base_menu.go b/service/system/sys_base_menu.go index 2a118b5..13c632a 100644 --- a/service/system/sys_base_menu.go +++ b/service/system/sys_base_menu.go @@ -3,8 +3,8 @@ package system import ( "errors" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" "gorm.io/gorm" ) diff --git a/service/system/sys_casbin.go b/service/system/sys_casbin.go index db525b9..2372481 100644 --- a/service/system/sys_casbin.go +++ b/service/system/sys_casbin.go @@ -6,9 +6,9 @@ import ( "gorm.io/gorm" - "byg-backend/global" - "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/system/request" + "bygdata/utils" gormadapter "github.com/casbin/gorm-adapter/v3" _ "github.com/go-sql-driver/mysql" ) diff --git a/service/system/sys_dictionary.go b/service/system/sys_dictionary.go index 2f4ab24..c2d1133 100644 --- a/service/system/sys_dictionary.go +++ b/service/system/sys_dictionary.go @@ -4,11 +4,11 @@ import ( "encoding/json" "errors" - "byg-backend/model/system/request" + "bygdata/model/system/request" "github.com/gin-gonic/gin" - "byg-backend/global" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/system" "gorm.io/gorm" ) diff --git a/service/system/sys_dictionary_detail.go b/service/system/sys_dictionary_detail.go index 319ca56..1850ba4 100644 --- a/service/system/sys_dictionary_detail.go +++ b/service/system/sys_dictionary_detail.go @@ -4,9 +4,9 @@ import ( "fmt" "strconv" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system" + "bygdata/model/system/request" ) //@author: [piexlmax](https://github.com/piexlmax) diff --git a/service/system/sys_error.go b/service/system/sys_error.go index 9b78f08..afd3108 100644 --- a/service/system/sys_error.go +++ b/service/system/sys_error.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common" + "bygdata/model/system" + systemReq "bygdata/model/system/request" "context" "fmt" ) diff --git a/service/system/sys_export_template.go b/service/system/sys_export_template.go index f38cc8b..89e18e6 100644 --- a/service/system/sys_export_template.go +++ b/service/system/sys_export_template.go @@ -11,11 +11,11 @@ import ( "strings" "time" - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/system" + systemReq "bygdata/model/system/request" + "bygdata/utils" "github.com/xuri/excelize/v2" "gorm.io/gorm" ) diff --git a/service/system/sys_initdb.go b/service/system/sys_initdb.go index e450439..488362b 100644 --- a/service/system/sys_initdb.go +++ b/service/system/sys_initdb.go @@ -1,8 +1,8 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system/request" "context" "database/sql" "errors" diff --git a/service/system/sys_initdb_mssql.go b/service/system/sys_initdb_mssql.go index e3c29fb..0ed2ff1 100644 --- a/service/system/sys_initdb_mssql.go +++ b/service/system/sys_initdb_mssql.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/config" + "bygdata/global" + "bygdata/model/system/request" + "bygdata/utils" "context" "errors" "github.com/google/uuid" diff --git a/service/system/sys_initdb_mysql.go b/service/system/sys_initdb_mysql.go index be2b0a6..5cf7c62 100644 --- a/service/system/sys_initdb_mysql.go +++ b/service/system/sys_initdb_mysql.go @@ -6,13 +6,13 @@ import ( "fmt" "path/filepath" - "byg-backend/config" + "bygdata/config" "github.com/gookit/color" - "byg-backend/utils" + "bygdata/utils" - "byg-backend/global" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system/request" "github.com/google/uuid" "gorm.io/driver/mysql" "gorm.io/gorm" diff --git a/service/system/sys_initdb_pgsql.go b/service/system/sys_initdb_pgsql.go index e613e29..82bd1d5 100644 --- a/service/system/sys_initdb_pgsql.go +++ b/service/system/sys_initdb_pgsql.go @@ -6,13 +6,13 @@ import ( "fmt" "path/filepath" - "byg-backend/config" + "bygdata/config" "github.com/gookit/color" - "byg-backend/utils" + "bygdata/utils" - "byg-backend/global" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system/request" "github.com/google/uuid" "gorm.io/driver/postgres" "gorm.io/gorm" diff --git a/service/system/sys_initdb_sqlite.go b/service/system/sys_initdb_sqlite.go index c59d19b..b1bd06b 100644 --- a/service/system/sys_initdb_sqlite.go +++ b/service/system/sys_initdb_sqlite.go @@ -9,10 +9,10 @@ import ( "gorm.io/gorm" "path/filepath" - "byg-backend/config" - "byg-backend/global" - "byg-backend/model/system/request" - "byg-backend/utils" + "bygdata/config" + "bygdata/global" + "bygdata/model/system/request" + "bygdata/utils" ) type SqliteInitHandler struct{} diff --git a/service/system/sys_login_log.go b/service/system/sys_login_log.go index 54ff543..f11ae63 100644 --- a/service/system/sys_login_log.go +++ b/service/system/sys_login_log.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/system" + systemReq "bygdata/model/system/request" ) type LoginLogService struct{} diff --git a/service/system/sys_menu.go b/service/system/sys_menu.go index ffce4c0..adf1a3e 100644 --- a/service/system/sys_menu.go +++ b/service/system/sys_menu.go @@ -1,9 +1,9 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/system" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/system" "errors" "gorm.io/gorm" "strconv" diff --git a/service/system/sys_operation_record.go b/service/system/sys_operation_record.go index 4af1939..f51fb94 100644 --- a/service/system/sys_operation_record.go +++ b/service/system/sys_operation_record.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/global" - "byg-backend/model/common/request" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/common/request" + "bygdata/model/system" + systemReq "bygdata/model/system/request" ) //@author: [granty1](https://github.com/granty1) diff --git a/service/system/sys_params.go b/service/system/sys_params.go index 4cec84e..c9edf64 100644 --- a/service/system/sys_params.go +++ b/service/system/sys_params.go @@ -1,9 +1,9 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system" + systemReq "bygdata/model/system/request" ) type SysParamsService struct{} diff --git a/service/system/sys_skills.go b/service/system/sys_skills.go index ce3278c..f078b5f 100644 --- a/service/system/sys_skills.go +++ b/service/system/sys_skills.go @@ -10,9 +10,9 @@ import ( "sort" "strings" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system" + "bygdata/model/system/request" "gopkg.in/yaml.v3" ) diff --git a/service/system/sys_system.go b/service/system/sys_system.go index b0bd9c0..09d87f4 100644 --- a/service/system/sys_system.go +++ b/service/system/sys_system.go @@ -1,10 +1,10 @@ package system import ( - "byg-backend/config" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/utils" + "bygdata/config" + "bygdata/global" + "bygdata/model/system" + "bygdata/utils" "go.uber.org/zap" ) diff --git a/service/system/sys_user.go b/service/system/sys_user.go index 1ca831a..33ce4a6 100644 --- a/service/system/sys_user.go +++ b/service/system/sys_user.go @@ -5,12 +5,12 @@ import ( "fmt" "time" - "byg-backend/model/common" - systemReq "byg-backend/model/system/request" + "bygdata/model/common" + systemReq "bygdata/model/system/request" - "byg-backend/global" - "byg-backend/model/system" - "byg-backend/utils" + "bygdata/global" + "bygdata/model/system" + "bygdata/utils" "github.com/google/uuid" "gorm.io/gorm" ) diff --git a/service/system/sys_version.go b/service/system/sys_version.go index 322f611..6659505 100644 --- a/service/system/sys_version.go +++ b/service/system/sys_version.go @@ -1,9 +1,9 @@ package system import ( - "byg-backend/global" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system" + systemReq "bygdata/model/system/request" "context" "gorm.io/gorm" ) diff --git a/source/example/file_upload_download.go b/source/example/file_upload_download.go index 3f514ac..47126cc 100644 --- a/source/example/file_upload_download.go +++ b/source/example/file_upload_download.go @@ -1,8 +1,8 @@ package example import ( - "byg-backend/model/example" - "byg-backend/service/system" + "bygdata/model/example" + "bygdata/service/system" "context" "github.com/pkg/errors" "gorm.io/gorm" diff --git a/source/system/api.go b/source/system/api.go index 233ff5a..09f178f 100644 --- a/source/system/api.go +++ b/source/system/api.go @@ -3,8 +3,8 @@ package system import ( "context" - sysModel "byg-backend/model/system" - "byg-backend/service/system" + sysModel "bygdata/model/system" + "bygdata/service/system" "github.com/pkg/errors" "gorm.io/gorm" ) diff --git a/source/system/api_ignore.go b/source/system/api_ignore.go index 85dd0e6..f487d9d 100644 --- a/source/system/api_ignore.go +++ b/source/system/api_ignore.go @@ -1,8 +1,8 @@ package system import ( - sysModel "byg-backend/model/system" - "byg-backend/service/system" + sysModel "bygdata/model/system" + "bygdata/service/system" "context" "github.com/pkg/errors" "gorm.io/gorm" diff --git a/source/system/authorities_menus.go b/source/system/authorities_menus.go index d03c279..3257dd4 100644 --- a/source/system/authorities_menus.go +++ b/source/system/authorities_menus.go @@ -3,8 +3,8 @@ package system import ( "context" - sysModel "byg-backend/model/system" - "byg-backend/service/system" + sysModel "bygdata/model/system" + "bygdata/service/system" "github.com/pkg/errors" "gorm.io/gorm" ) diff --git a/source/system/authority.go b/source/system/authority.go index 7bb1506..3bac2b3 100644 --- a/source/system/authority.go +++ b/source/system/authority.go @@ -1,9 +1,9 @@ package system import ( - sysModel "byg-backend/model/system" - "byg-backend/service/system" - "byg-backend/utils" + sysModel "bygdata/model/system" + "bygdata/service/system" + "bygdata/utils" "context" "github.com/pkg/errors" "gorm.io/gorm" diff --git a/source/system/casbin.go b/source/system/casbin.go index 49275f6..63601c0 100644 --- a/source/system/casbin.go +++ b/source/system/casbin.go @@ -3,7 +3,7 @@ package system import ( "context" - "byg-backend/service/system" + "bygdata/service/system" adapter "github.com/casbin/gorm-adapter/v3" "github.com/pkg/errors" "gorm.io/gorm" diff --git a/source/system/dictionary.go b/source/system/dictionary.go index c2a5590..2b0d9d8 100644 --- a/source/system/dictionary.go +++ b/source/system/dictionary.go @@ -1,8 +1,8 @@ package system import ( - sysModel "byg-backend/model/system" - "byg-backend/service/system" + sysModel "bygdata/model/system" + "bygdata/service/system" "context" "github.com/pkg/errors" "gorm.io/gorm" diff --git a/source/system/dictionary_detail.go b/source/system/dictionary_detail.go index 8a3cd9f..00198b8 100644 --- a/source/system/dictionary_detail.go +++ b/source/system/dictionary_detail.go @@ -1,8 +1,8 @@ package system import ( - sysModel "byg-backend/model/system" - "byg-backend/service/system" + sysModel "bygdata/model/system" + "bygdata/service/system" "context" "fmt" "github.com/pkg/errors" diff --git a/source/system/excel_template.go b/source/system/excel_template.go index a18b4c1..ba13486 100644 --- a/source/system/excel_template.go +++ b/source/system/excel_template.go @@ -1,8 +1,8 @@ package system import ( - sysModel "byg-backend/model/system" - "byg-backend/service/system" + sysModel "bygdata/model/system" + "bygdata/service/system" "context" "github.com/pkg/errors" "gorm.io/gorm" diff --git a/source/system/menu.go b/source/system/menu.go index 98f06fa..360eced 100644 --- a/source/system/menu.go +++ b/source/system/menu.go @@ -3,8 +3,8 @@ package system import ( "context" - . "byg-backend/model/system" - "byg-backend/service/system" + . "bygdata/model/system" + "bygdata/service/system" "github.com/pkg/errors" "gorm.io/gorm" ) diff --git a/source/system/user.go b/source/system/user.go index d012573..4607b21 100644 --- a/source/system/user.go +++ b/source/system/user.go @@ -1,9 +1,9 @@ package system import ( - sysModel "byg-backend/model/system" - "byg-backend/service/system" - "byg-backend/utils" + sysModel "bygdata/model/system" + "bygdata/service/system" + "bygdata/utils" "context" "github.com/google/uuid" "github.com/pkg/errors" diff --git a/task/clearTable.go b/task/clearTable.go index 26034cc..14d854d 100644 --- a/task/clearTable.go +++ b/task/clearTable.go @@ -1,7 +1,7 @@ package task import ( - "byg-backend/model/common" + "bygdata/model/common" "errors" "fmt" "time" diff --git a/utils/ast/ast.go b/utils/ast/ast.go index 9bc9a3e..e55db05 100644 --- a/utils/ast/ast.go +++ b/utils/ast/ast.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/model/system" + "bygdata/model/system" "fmt" "go/ast" "go/parser" diff --git a/utils/ast/ast_gorm.go b/utils/ast/ast_gorm.go index 2409e2a..cd3d55d 100644 --- a/utils/ast/ast_gorm.go +++ b/utils/ast/ast_gorm.go @@ -12,7 +12,7 @@ import ( // AddRegisterTablesAst 自动为 gorm.go 注册一个自动迁移 func AddRegisterTablesAst(path, funcName, pk, varName, dbName, model string) { - modelPk := fmt.Sprintf("byg-backend/model/%s", pk) + modelPk := fmt.Sprintf("bygdata/model/%s", pk) src, err := os.ReadFile(path) if err != nil { fmt.Println(err) diff --git a/utils/ast/ast_init_test.go b/utils/ast/ast_init_test.go index 56211c1..49715b2 100644 --- a/utils/ast/ast_init_test.go +++ b/utils/ast/ast_init_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" ) diff --git a/utils/ast/ast_rollback.go b/utils/ast/ast_rollback.go index f5f7c81..a90ed46 100644 --- a/utils/ast/ast_rollback.go +++ b/utils/ast/ast_rollback.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "bytes" "fmt" "go/ast" @@ -70,7 +70,7 @@ func RollGormBack(pk, model string) { 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 == "\"byg-backend/model/"+pk+"\"" { + if imspec.Path.Value == "\"bygdata/model/"+pk+"\"" { gp = gen imI = i return false diff --git a/utils/ast/ast_test.go b/utils/ast/ast_test.go index 1e20004..f51cf54 100644 --- a/utils/ast/ast_test.go +++ b/utils/ast/ast_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "go/ast" "go/parser" "go/printer" diff --git a/utils/ast/interfaces_base.go b/utils/ast/interfaces_base.go index 6eb4ada..9ce1a86 100644 --- a/utils/ast/interfaces_base.go +++ b/utils/ast/interfaces_base.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "github.com/pkg/errors" "go/ast" "go/format" diff --git a/utils/ast/package_enter_test.go b/utils/ast/package_enter_test.go index 81d0e47..9636206 100644 --- a/utils/ast/package_enter_test.go +++ b/utils/ast/package_enter_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -25,7 +25,7 @@ func TestPackageEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageApiEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "api", "v1", "enter.go"), - ImportPath: `"byg-backend/api/v1/example"`, + ImportPath: `"bygdata/api/v1/example"`, StructName: "ExampleApiGroup", PackageName: "example", PackageStructName: "ApiGroup", @@ -37,7 +37,7 @@ func TestPackageEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageRouterEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "router", "enter.go"), - ImportPath: `"byg-backend/router/example"`, + ImportPath: `"bygdata/router/example"`, StructName: "Example", PackageName: "example", PackageStructName: "RouterGroup", @@ -49,7 +49,7 @@ func TestPackageEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageServiceEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "service", "enter.go"), - ImportPath: `"byg-backend/service/example"`, + ImportPath: `"bygdata/service/example"`, StructName: "ExampleServiceGroup", PackageName: "example", PackageStructName: "ServiceGroup", @@ -99,7 +99,7 @@ func TestPackageEnter_Injection(t *testing.T) { fields: fields{ Type: TypePackageApiEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "api", "v1", "enter.go"), - ImportPath: `"byg-backend/api/v1/example"`, + ImportPath: `"bygdata/api/v1/example"`, StructName: "ExampleApiGroup", PackageName: "example", PackageStructName: "ApiGroup", @@ -110,7 +110,7 @@ func TestPackageEnter_Injection(t *testing.T) { fields: fields{ Type: TypePackageRouterEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "router", "enter.go"), - ImportPath: `"byg-backend/router/example"`, + ImportPath: `"bygdata/router/example"`, StructName: "Example", PackageName: "example", PackageStructName: "RouterGroup", @@ -122,7 +122,7 @@ func TestPackageEnter_Injection(t *testing.T) { fields: fields{ Type: TypePackageServiceEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "service", "enter.go"), - ImportPath: `"byg-backend/service/example"`, + ImportPath: `"bygdata/service/example"`, StructName: "ExampleServiceGroup", PackageName: "example", PackageStructName: "ServiceGroup", diff --git a/utils/ast/package_initialize_gorm_test.go b/utils/ast/package_initialize_gorm_test.go index 1e4deb4..bed6b33 100644 --- a/utils/ast/package_initialize_gorm_test.go +++ b/utils/ast/package_initialize_gorm_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -25,7 +25,7 @@ func TestPackageInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaFileUploadAndDownload", PackageName: "example", IsNew: false, @@ -36,7 +36,7 @@ func TestPackageInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaCustomer", PackageName: "example", IsNew: false, @@ -47,7 +47,7 @@ func TestPackageInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaFileUploadAndDownload", PackageName: "example", IsNew: true, @@ -58,7 +58,7 @@ func TestPackageInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaCustomer", PackageName: "example", IsNew: true, @@ -107,7 +107,7 @@ func TestPackageInitializeGorm_Rollback(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaFileUploadAndDownload", PackageName: "example", IsNew: false, @@ -118,7 +118,7 @@ func TestPackageInitializeGorm_Rollback(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaCustomer", PackageName: "example", IsNew: false, @@ -129,7 +129,7 @@ func TestPackageInitializeGorm_Rollback(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaFileUploadAndDownload", PackageName: "example", IsNew: true, @@ -140,7 +140,7 @@ func TestPackageInitializeGorm_Rollback(t *testing.T) { fields: fields{ Type: TypePackageInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "gorm_biz.go"), - ImportPath: `"byg-backend/model/example"`, + ImportPath: `"bygdata/model/example"`, StructName: "ExaCustomer", PackageName: "example", IsNew: true, diff --git a/utils/ast/package_initialize_router_test.go b/utils/ast/package_initialize_router_test.go index ae57a1e..85306e4 100644 --- a/utils/ast/package_initialize_router_test.go +++ b/utils/ast/package_initialize_router_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -28,7 +28,7 @@ func TestPackageInitializeRouter_Injection(t *testing.T) { fields: fields{ Type: TypePackageInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "router_biz.go"), - ImportPath: `"byg-backend/router"`, + ImportPath: `"bygdata/router"`, AppName: "RouterGroupApp", GroupName: "Example", ModuleName: "exampleRouter", @@ -43,7 +43,7 @@ func TestPackageInitializeRouter_Injection(t *testing.T) { fields: fields{ Type: TypePackageInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "router_biz.go"), - ImportPath: `"byg-backend/router"`, + ImportPath: `"bygdata/router"`, AppName: "RouterGroupApp", GroupName: "Example", ModuleName: "exampleRouter", @@ -105,7 +105,7 @@ func TestPackageInitializeRouter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "router_biz.go"), - ImportPath: `"byg-backend/router"`, + ImportPath: `"bygdata/router"`, AppName: "RouterGroupApp", GroupName: "Example", ModuleName: "exampleRouter", @@ -120,7 +120,7 @@ func TestPackageInitializeRouter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "router_biz.go"), - ImportPath: `"byg-backend/router"`, + ImportPath: `"bygdata/router"`, AppName: "RouterGroupApp", GroupName: "Example", ModuleName: "exampleRouter", diff --git a/utils/ast/package_module_enter_test.go b/utils/ast/package_module_enter_test.go index ab6a5c8..5d2f103 100644 --- a/utils/ast/package_module_enter_test.go +++ b/utils/ast/package_module_enter_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -28,7 +28,7 @@ func TestPackageModuleEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageRouterModuleEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "router", "example", "enter.go"), - ImportPath: `api "byg-backend/api/v1"`, + ImportPath: `api "bygdata/api/v1"`, StructName: "FileUploadAndDownloadRouter", AppName: "ApiGroupApp", GroupName: "ExampleApiGroup", @@ -43,7 +43,7 @@ func TestPackageModuleEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePackageApiModuleEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "api", "v1", "example", "enter.go"), - ImportPath: `"byg-backend/service"`, + ImportPath: `"bygdata/service"`, StructName: "FileUploadAndDownloadApi", AppName: "ServiceGroupApp", GroupName: "ExampleServiceGroup", @@ -117,7 +117,7 @@ func TestPackageModuleEnter_Injection(t *testing.T) { fields: fields{ Type: TypePackageRouterModuleEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "router", "example", "enter.go"), - ImportPath: `api "byg-backend/api/v1"`, + ImportPath: `api "bygdata/api/v1"`, StructName: "FileUploadAndDownloadRouter", AppName: "ApiGroupApp", GroupName: "ExampleApiGroup", @@ -132,7 +132,7 @@ func TestPackageModuleEnter_Injection(t *testing.T) { fields: fields{ Type: TypePackageApiModuleEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "api", "v1", "example", "enter.go"), - ImportPath: `"byg-backend/service"`, + ImportPath: `"bygdata/service"`, StructName: "FileUploadAndDownloadApi", AppName: "ServiceGroupApp", GroupName: "ExampleServiceGroup", diff --git a/utils/ast/plugin_enter_test.go b/utils/ast/plugin_enter_test.go index 3a2b3de..57e1656 100644 --- a/utils/ast/plugin_enter_test.go +++ b/utils/ast/plugin_enter_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -28,7 +28,7 @@ func TestPluginEnter_Injection(t *testing.T) { fields: fields{ Type: TypePluginApiEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "api", "enter.go"), - ImportPath: `"byg-backend/plugin/gva/service"`, + ImportPath: `"bygdata/plugin/gva/service"`, StructName: "User", StructCamelName: "user", ModuleName: "serviceUser", @@ -43,7 +43,7 @@ func TestPluginEnter_Injection(t *testing.T) { fields: fields{ Type: TypePluginRouterEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "router", "enter.go"), - ImportPath: `"byg-backend/plugin/gva/api"`, + ImportPath: `"bygdata/plugin/gva/api"`, StructName: "User", StructCamelName: "user", ModuleName: "userApi", @@ -132,7 +132,7 @@ func TestPluginEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePluginRouterEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "router", "enter.go"), - ImportPath: `"byg-backend/plugin/gva/api"`, + ImportPath: `"bygdata/plugin/gva/api"`, StructName: "User", StructCamelName: "user", ModuleName: "userApi", @@ -147,7 +147,7 @@ func TestPluginEnter_Rollback(t *testing.T) { fields: fields{ Type: TypePluginApiEnter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "api", "enter.go"), - ImportPath: `"byg-backend/plugin/gva/service"`, + ImportPath: `"bygdata/plugin/gva/service"`, StructName: "User", StructCamelName: "user", ModuleName: "serviceUser", diff --git a/utils/ast/plugin_gen_test.go b/utils/ast/plugin_gen_test.go index 78c7e70..d2dcf07 100644 --- a/utils/ast/plugin_gen_test.go +++ b/utils/ast/plugin_gen_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -25,7 +25,7 @@ func TestPluginGenModel_Injection(t *testing.T) { fields: fields{ Type: TypePluginGen, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, PackageName: "model", StructName: "User", IsNew: false, @@ -36,7 +36,7 @@ func TestPluginGenModel_Injection(t *testing.T) { fields: fields{ Type: TypePluginGen, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, PackageName: "model", StructName: "User", IsNew: true, @@ -85,7 +85,7 @@ func TestPluginGenModel_Rollback(t *testing.T) { fields: fields{ Type: TypePluginGen, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, PackageName: "model", StructName: "User", IsNew: false, @@ -96,7 +96,7 @@ func TestPluginGenModel_Rollback(t *testing.T) { fields: fields{ Type: TypePluginGen, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, PackageName: "model", StructName: "User", IsNew: true, diff --git a/utils/ast/plugin_initialize_gorm_test.go b/utils/ast/plugin_initialize_gorm_test.go index 9f68959..86103ee 100644 --- a/utils/ast/plugin_initialize_gorm_test.go +++ b/utils/ast/plugin_initialize_gorm_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -25,7 +25,7 @@ func TestPluginInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePluginInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, StructName: "User", PackageName: "model", IsNew: false, @@ -36,7 +36,7 @@ func TestPluginInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePluginInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, StructName: "User", PackageName: "model", IsNew: true, @@ -47,7 +47,7 @@ func TestPluginInitializeGorm_Injection(t *testing.T) { fields: fields{ Type: TypePluginInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, StructName: "SysUser", PackageName: "model", IsNew: true, @@ -96,7 +96,7 @@ func TestPluginInitializeGorm_Rollback(t *testing.T) { fields: fields{ Type: TypePluginInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, StructName: "User", PackageName: "model", IsNew: false, @@ -107,7 +107,7 @@ func TestPluginInitializeGorm_Rollback(t *testing.T) { fields: fields{ Type: TypePluginInitializeGorm, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"), - ImportPath: `"byg-backend/plugin/gva/model"`, + ImportPath: `"bygdata/plugin/gva/model"`, StructName: "User", PackageName: "model", IsNew: true, diff --git a/utils/ast/plugin_initialize_router_test.go b/utils/ast/plugin_initialize_router_test.go index 9501ae9..9b96b67 100644 --- a/utils/ast/plugin_initialize_router_test.go +++ b/utils/ast/plugin_initialize_router_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -28,7 +28,7 @@ func TestPluginInitializeRouter_Injection(t *testing.T) { fields: fields{ Type: TypePluginInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "router.go"), - ImportPath: `"byg-backend/plugin/gva/router"`, + ImportPath: `"bygdata/plugin/gva/router"`, AppName: "Router", GroupName: "User", PackageName: "router", @@ -43,7 +43,7 @@ func TestPluginInitializeRouter_Injection(t *testing.T) { fields: fields{ Type: TypePluginInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "router.go"), - ImportPath: `"byg-backend/plugin/gva/router"`, + ImportPath: `"bygdata/plugin/gva/router"`, AppName: "Router", GroupName: "U中文", PackageName: "router", @@ -102,7 +102,7 @@ func TestPluginInitializeRouter_Rollback(t *testing.T) { fields: fields{ Type: TypePluginInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "router.go"), - ImportPath: `"byg-backend/plugin/gva/router"`, + ImportPath: `"bygdata/plugin/gva/router"`, AppName: "Router", GroupName: "User", PackageName: "router", @@ -117,7 +117,7 @@ func TestPluginInitializeRouter_Rollback(t *testing.T) { fields: fields{ Type: TypePluginInitializeRouter, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "router.go"), - ImportPath: `"byg-backend/plugin/gva/router"`, + ImportPath: `"bygdata/plugin/gva/router"`, AppName: "Router", GroupName: "U中文", PackageName: "router", diff --git a/utils/ast/plugin_initialize_v2_test.go b/utils/ast/plugin_initialize_v2_test.go index 7120b7f..68bae69 100644 --- a/utils/ast/plugin_initialize_v2_test.go +++ b/utils/ast/plugin_initialize_v2_test.go @@ -1,7 +1,7 @@ package ast import ( - "byg-backend/global" + "bygdata/global" "path/filepath" "testing" ) @@ -24,7 +24,7 @@ func TestPluginInitialize_Injection(t *testing.T) { Type: TypePluginInitializeV2, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "plugin_biz_v2.go"), PluginPath: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "plugin.go"), - ImportPath: `"byg-backend/plugin/gva"`, + ImportPath: `"bygdata/plugin/gva"`, }, wantErr: false, }, @@ -71,7 +71,7 @@ func TestPluginInitialize_Rollback(t *testing.T) { Type: TypePluginInitializeV2, Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "initialize", "plugin_biz_v2.go"), PluginPath: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "plugin.go"), - ImportPath: `"byg-backend/plugin/gva"`, + ImportPath: `"bygdata/plugin/gva"`, }, wantErr: false, }, diff --git a/utils/autocode/template_funcs.go b/utils/autocode/template_funcs.go index 4f8027d..121a73f 100644 --- a/utils/autocode/template_funcs.go +++ b/utils/autocode/template_funcs.go @@ -1,7 +1,7 @@ package autocode import ( - systemReq "byg-backend/model/system/request" + systemReq "bygdata/model/system/request" "fmt" "slices" "strings" diff --git a/utils/captcha/redis.go b/utils/captcha/redis.go index 1f04fe1..6fbebc3 100644 --- a/utils/captcha/redis.go +++ b/utils/captcha/redis.go @@ -4,7 +4,7 @@ import ( "context" "time" - "byg-backend/global" + "bygdata/global" "go.uber.org/zap" ) diff --git a/utils/casbin_util.go b/utils/casbin_util.go index 1d61db7..b12edf0 100644 --- a/utils/casbin_util.go +++ b/utils/casbin_util.go @@ -3,7 +3,7 @@ package utils import ( "sync" - "byg-backend/global" + "bygdata/global" "github.com/casbin/casbin/v2" "github.com/casbin/casbin/v2/model" gormadapter "github.com/casbin/gorm-adapter/v3" diff --git a/utils/claims.go b/utils/claims.go index d9e0e9e..131943b 100644 --- a/utils/claims.go +++ b/utils/claims.go @@ -4,9 +4,9 @@ import ( "net" "time" - "byg-backend/global" - "byg-backend/model/system" - systemReq "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system" + systemReq "bygdata/model/system/request" "github.com/gin-gonic/gin" "github.com/google/uuid" ) diff --git a/utils/directory.go b/utils/directory.go index f89153b..0eeeee1 100644 --- a/utils/directory.go +++ b/utils/directory.go @@ -7,7 +7,7 @@ import ( "reflect" "strings" - "byg-backend/global" + "bygdata/global" "go.uber.org/zap" ) diff --git a/utils/fmt_plus.go b/utils/fmt_plus.go index 11667a0..494f935 100644 --- a/utils/fmt_plus.go +++ b/utils/fmt_plus.go @@ -1,7 +1,7 @@ package utils import ( - "byg-backend/model/common" + "bygdata/model/common" "fmt" "math/rand" "reflect" diff --git a/utils/jwt.go b/utils/jwt.go index 8e468dd..feb2fce 100644 --- a/utils/jwt.go +++ b/utils/jwt.go @@ -5,8 +5,8 @@ import ( "errors" "time" - "byg-backend/global" - "byg-backend/model/system/request" + "bygdata/global" + "bygdata/model/system/request" jwt "github.com/golang-jwt/jwt/v5" ) diff --git a/utils/server.go b/utils/server.go index 4fcbb17..9e68982 100644 --- a/utils/server.go +++ b/utils/server.go @@ -1,7 +1,7 @@ package utils import ( - "byg-backend/global" + "bygdata/global" "runtime" "time" diff --git a/utils/upload/aliyun_oss.go b/utils/upload/aliyun_oss.go index 8ce2553..4b5d199 100644 --- a/utils/upload/aliyun_oss.go +++ b/utils/upload/aliyun_oss.go @@ -5,7 +5,7 @@ import ( "mime/multipart" "time" - "byg-backend/global" + "bygdata/global" "github.com/aliyun/aliyun-oss-go-sdk/oss" "go.uber.org/zap" ) diff --git a/utils/upload/aws_s3.go b/utils/upload/aws_s3.go index 256819a..a65b457 100644 --- a/utils/upload/aws_s3.go +++ b/utils/upload/aws_s3.go @@ -6,7 +6,7 @@ import ( "mime/multipart" "time" - "byg-backend/global" + "bygdata/global" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" diff --git a/utils/upload/cloudflare_r2.go b/utils/upload/cloudflare_r2.go index cfad306..91640e5 100644 --- a/utils/upload/cloudflare_r2.go +++ b/utils/upload/cloudflare_r2.go @@ -6,7 +6,7 @@ import ( "mime/multipart" "time" - "byg-backend/global" + "bygdata/global" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" diff --git a/utils/upload/local.go b/utils/upload/local.go index 08d4c7c..d4f9554 100644 --- a/utils/upload/local.go +++ b/utils/upload/local.go @@ -10,8 +10,8 @@ import ( "sync" "time" - "byg-backend/global" - "byg-backend/utils" + "bygdata/global" + "bygdata/utils" "go.uber.org/zap" ) diff --git a/utils/upload/minio_oss.go b/utils/upload/minio_oss.go index e53a418..5472b84 100644 --- a/utils/upload/minio_oss.go +++ b/utils/upload/minio_oss.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "byg-backend/global" - "byg-backend/utils" + "bygdata/global" + "bygdata/utils" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" "go.uber.org/zap" diff --git a/utils/upload/obs.go b/utils/upload/obs.go index daff91d..b23b386 100644 --- a/utils/upload/obs.go +++ b/utils/upload/obs.go @@ -3,7 +3,7 @@ package upload import ( "mime/multipart" - "byg-backend/global" + "bygdata/global" "github.com/huaweicloud/huaweicloud-sdk-go-obs/obs" "github.com/pkg/errors" ) diff --git a/utils/upload/qiniu.go b/utils/upload/qiniu.go index b5b5560..dc17548 100644 --- a/utils/upload/qiniu.go +++ b/utils/upload/qiniu.go @@ -7,7 +7,7 @@ import ( "mime/multipart" "time" - "byg-backend/global" + "bygdata/global" "github.com/qiniu/go-sdk/v7/auth/qbox" "github.com/qiniu/go-sdk/v7/storage" "go.uber.org/zap" diff --git a/utils/upload/tencent_cos.go b/utils/upload/tencent_cos.go index df2de24..44d33d3 100644 --- a/utils/upload/tencent_cos.go +++ b/utils/upload/tencent_cos.go @@ -9,7 +9,7 @@ import ( "net/url" "time" - "byg-backend/global" + "bygdata/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 8f37837..31448ca 100644 --- a/utils/upload/upload.go +++ b/utils/upload/upload.go @@ -3,7 +3,7 @@ package upload import ( "mime/multipart" - "byg-backend/global" + "bygdata/global" ) // OSS 对象存储接口 diff --git a/utils/validator_test.go b/utils/validator_test.go index b32490b..4acde76 100644 --- a/utils/validator_test.go +++ b/utils/validator_test.go @@ -1,7 +1,7 @@ package utils import ( - "byg-backend/model/common/request" + "bygdata/model/common/request" "testing" )