chore: 更新配置文件和依赖引用
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"gitea.com/red-future/common/beans"
|
||||
"gitea.com/red-future/common/minio"
|
||||
"gitea.com/red-future/common/utils"
|
||||
"github.com/gogf/gf/v2/container/gset"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
@@ -45,7 +45,8 @@ func New() *sTenant {
|
||||
func (s *sTenant) GetTenantListSearch(ctx context.Context, req *system.TenantListReq) (res *system.TenantListRes, err error) {
|
||||
res = new(system.TenantListRes)
|
||||
err = g.Try(ctx, func(ctx context.Context) {
|
||||
res.ImgAddressPrefix = minio.GetFileAddressPrefix(ctx)
|
||||
res.ImgAddressPrefix, err = utils.GetFileAddressPrefix(ctx)
|
||||
liberr.ErrIsNil(ctx, err, "获取文件地址前缀失败")
|
||||
model := dao.TenantDao.Ctx(ctx)
|
||||
// 根据toke获取用户id
|
||||
userId := service.Context().GetUserId(ctx)
|
||||
|
||||
@@ -31,7 +31,7 @@ database:
|
||||
host: "116.204.74.41"
|
||||
port: "15432"
|
||||
user: "postgres"
|
||||
pass: "123456"
|
||||
pass: "Bjang09@686^*^"
|
||||
name: "admin"
|
||||
role: "master"
|
||||
maxIdle: "5"
|
||||
@@ -44,7 +44,7 @@ database:
|
||||
host: "116.204.74.41"
|
||||
port: "15432"
|
||||
user: "postgres"
|
||||
pass: "123456"
|
||||
pass: "Bjang09@686^*^"
|
||||
name: "admin"
|
||||
role: "slave"
|
||||
maxIdle: "5"
|
||||
@@ -104,8 +104,11 @@ gfcli:
|
||||
noModelComment: true
|
||||
path: "./internal/app/system"
|
||||
|
||||
# 文件上传服务地址,与oss模块minio中的endpoint一致
|
||||
filePrefix: "116.204.74.41:9000"
|
||||
# 文件上传服务地址,与oss模块minio中的endpoint(filePrefix需要加http://)一致
|
||||
filePrefix: "http://116.204.74.41:9000"
|
||||
|
||||
consul:
|
||||
address: 116.204.74.41:8500
|
||||
|
||||
jaeger: #链路追踪
|
||||
addr: 116.204.74.41:4318
|
||||
Reference in New Issue
Block a user