update project name to ksat-mrsb

main
ZGGSONG 2 years ago
parent 08a4f941ea
commit 26bed45161

2
.gitignore vendored

@ -1,4 +1,4 @@
receive-files ksat-mrsb
.idea .idea

@ -7,8 +7,8 @@ RUN mkdir "/app/config"
RUN mkdir "/app/log" RUN mkdir "/app/log"
RUN mkdir "/app/upload" RUN mkdir "/app/upload"
COPY receive-files "/app/receive-files" COPY ksat-mrsb "/app/ksat-mrsb"
EXPOSE 7201 EXPOSE 7201
ENTRYPOINT ["./receive-files"] ENTRYPOINT ["./ksat-mrsb"]

@ -1,6 +1,6 @@
package global package global
import "receive-files/config" import "ksat-mrsb/config"
var ( var (
GLO_CONFIG config.Config GLO_CONFIG config.Config

@ -1,4 +1,4 @@
module receive-files module ksat-mrsb
go 1.18 go 1.18

@ -3,14 +3,13 @@ package main
import ( import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"gopkg.in/natefinch/lumberjack.v2" "gopkg.in/natefinch/lumberjack.v2"
"ksat-mrsb/config"
"ksat-mrsb/global"
"ksat-mrsb/serve"
"net/http" "net/http"
"os" "os"
"receive-files/config"
"receive-files/global"
"receive-files/serve"
) )
// TODO: 程序退出 关闭日志
func init() { func init() {
// 初始化日志 // 初始化日志
logger := &lumberjack.Logger{ logger := &lumberjack.Logger{

@ -6,9 +6,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"ksat-mrsb/model"
"net/http" "net/http"
"net/url" "net/url"
"receive-files/model"
"strings" "strings"
) )

@ -12,11 +12,11 @@ import (
_ "image/png" _ "image/png"
"io" "io"
"io/ioutil" "io/ioutil"
"ksat-mrsb/global"
"ksat-mrsb/serve/core"
"ksat-mrsb/util"
"net/http" "net/http"
"os" "os"
"receive-files/global"
"receive-files/serve/core"
"receive-files/util"
"strconv" "strconv"
"time" "time"
) )

@ -6,9 +6,9 @@ import (
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"io/ioutil" "io/ioutil"
"ksat-mrsb/global"
"ksat-mrsb/model"
"net/http" "net/http"
"receive-files/global"
"receive-files/model"
) )
// //

Loading…
Cancel
Save