feat: temp upload

This commit is contained in:
fallen-angle
2022-04-13 19:48:10 +08:00
parent 80ca1cd46e
commit fc347a4140
15 changed files with 155 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ package global
import (
"errors"
"fmt"
"nCovTrack-Backend/config"
"github.com/baidubce/bce-sdk-go/services/bos"
"net/http"
"github.com/gin-gonic/gin"
@@ -13,12 +13,13 @@ import (
)
var (
ServerSettings config.ServerConfig
ServerSettings ServerConfig
Db *gorm.DB
RootRouter *gin.RouterGroup
Logger *zap.SugaredLogger
HttpClient map[string]*http.Client
Redis *redis.Client
BosClient *bos.Client
)
func GetListenOn() string {
@@ -37,7 +38,14 @@ const (
CHINA_NCOV_STATISTIC_URL = "https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5"
ENV_NOLOG = "nolog"
TOKEN_EXPIRE_DAYS = 15
FACKER_HOST = "http://myhost.fallen-angle.com:5000/"
REGISTER_REDIS_KEY = "register_key"
CHANGEPWD_REDIS_KEY = "changepwd_key"
)
var (
ROLE_ID_MAP = map[int]string{
0: "SYSTEM",
}
)