From 26bed451617baf2f0a47f78a3e5fe04125ffd1d8 Mon Sep 17 00:00:00 2001 From: ZGGSONG Date: Mon, 17 Oct 2022 08:46:46 +0800 Subject: [PATCH] update project name to ksat-mrsb --- .gitignore | 2 +- Dockerfile | 4 ++-- global/global.go | 2 +- go.mod | 2 +- main.go | 7 +++---- serve/core/core.go | 2 +- serve/serve.go | 6 +++--- util/util.go | 4 ++-- 8 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 8070d96..79cbf3d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -receive-files +ksat-mrsb .idea diff --git a/Dockerfile b/Dockerfile index 67641db..c51f428 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ RUN mkdir "/app/config" RUN mkdir "/app/log" RUN mkdir "/app/upload" -COPY receive-files "/app/receive-files" +COPY ksat-mrsb "/app/ksat-mrsb" EXPOSE 7201 -ENTRYPOINT ["./receive-files"] \ No newline at end of file +ENTRYPOINT ["./ksat-mrsb"] \ No newline at end of file diff --git a/global/global.go b/global/global.go index b572d26..f11c563 100644 --- a/global/global.go +++ b/global/global.go @@ -1,6 +1,6 @@ package global -import "receive-files/config" +import "ksat-mrsb/config" var ( GLO_CONFIG config.Config diff --git a/go.mod b/go.mod index 20b8f72..2a2dd25 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module receive-files +module ksat-mrsb go 1.18 diff --git a/main.go b/main.go index 96157e7..16a1ade 100644 --- a/main.go +++ b/main.go @@ -3,14 +3,13 @@ package main import ( log "github.com/sirupsen/logrus" "gopkg.in/natefinch/lumberjack.v2" + "ksat-mrsb/config" + "ksat-mrsb/global" + "ksat-mrsb/serve" "net/http" "os" - "receive-files/config" - "receive-files/global" - "receive-files/serve" ) -// TODO: 程序退出 关闭日志 func init() { // 初始化日志 logger := &lumberjack.Logger{ diff --git a/serve/core/core.go b/serve/core/core.go index 4ffe0bf..56bf96b 100644 --- a/serve/core/core.go +++ b/serve/core/core.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" "io/ioutil" + "ksat-mrsb/model" "net/http" "net/url" - "receive-files/model" "strings" ) diff --git a/serve/serve.go b/serve/serve.go index 398f86f..6217652 100644 --- a/serve/serve.go +++ b/serve/serve.go @@ -12,11 +12,11 @@ import ( _ "image/png" "io" "io/ioutil" + "ksat-mrsb/global" + "ksat-mrsb/serve/core" + "ksat-mrsb/util" "net/http" "os" - "receive-files/global" - "receive-files/serve/core" - "receive-files/util" "strconv" "time" ) diff --git a/util/util.go b/util/util.go index 6745fe3..5f683e4 100644 --- a/util/util.go +++ b/util/util.go @@ -6,9 +6,9 @@ import ( "github.com/fsnotify/fsnotify" log "github.com/sirupsen/logrus" "io/ioutil" + "ksat-mrsb/global" + "ksat-mrsb/model" "net/http" - "receive-files/global" - "receive-files/model" ) //