perf: update project name

main
zggsong 2 years ago
parent c3a7b8a72b
commit 0caf71193b

2
.gitignore vendored

@ -1,4 +1,4 @@
luxshare-mrsb
luxshare-daily-report
.idea

@ -13,8 +13,8 @@ RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
COPY luxshare-mrsb "/app/luxshare-mrsb"
COPY luxshare-daily-report "/app/luxshare-daily-report"
EXPOSE 7201
ENTRYPOINT ["./luxshare-mrsb"]
ENTRYPOINT ["./luxshare-daily-report"]

@ -35,7 +35,6 @@ type Config struct {
Quality string
UserName string
PassWord string
UserInfo string
BarkUrl string
}
@ -44,7 +43,6 @@ func getConfig() Config {
config.Quality = viper.GetString("img.quality")
config.UserName = viper.GetString("info.username")
config.PassWord = viper.GetString("info.password")
config.UserInfo = viper.GetString("info.userinfo")
config.BarkUrl = viper.GetString("message.bark.url")
return config
}

@ -1,6 +1,6 @@
package global
import "luxshare-mrsb/config"
import "luxshare-daily-report/config"
var (
GLO_CONFIG config.Config

@ -1,4 +1,4 @@
module luxshare-mrsb
module luxshare-daily-report
go 1.18

@ -1,9 +1,9 @@
package main
import (
"luxshare-mrsb/config"
"luxshare-mrsb/global"
"luxshare-mrsb/serve"
"luxshare-daily-report/config"
"luxshare-daily-report/global"
"luxshare-daily-report/serve"
"net/http"
"os"

@ -6,7 +6,7 @@ import (
"errors"
"fmt"
"io/ioutil"
"luxshare-mrsb/model"
"luxshare-daily-report/model"
"net/http"
"net/url"
"strings"

@ -11,9 +11,9 @@ import (
_ "image/png"
"io"
"io/ioutil"
"luxshare-mrsb/global"
"luxshare-mrsb/serve/core"
"luxshare-mrsb/util"
"luxshare-daily-report/global"
"luxshare-daily-report/serve/core"
"luxshare-daily-report/util"
"net/http"
"os"
"strconv"

@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"luxshare-mrsb/global"
"luxshare-mrsb/model"
"luxshare-daily-report/global"
"luxshare-daily-report/model"
"net/http"
"github.com/fsnotify/fsnotify"

Loading…
Cancel
Save