audit and harden workspace
This commit is contained in:
@@ -4,10 +4,10 @@ Port: 12410
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=47.109.77.183 user=postgres password=CHANGE_ME dbname=ec_mall port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
- host=127.0.0.1 user=postgres password=CHANGE_ME dbname=ec_mall port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/
|
||||
Cache: redis://null:CHANGE_ME@127.0.0.1:6379/
|
||||
|
||||
# 微服务设置
|
||||
MicroService:
|
||||
@@ -21,7 +21,7 @@ Gateway:
|
||||
Port: 12409
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
SecretKey: CHANGE_ME
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
|
||||
@@ -4,10 +4,10 @@ Port: 12410
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=47.109.77.183 user=postgres password=CHANGE_ME dbname=ec_mall port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
- host=127.0.0.1 user=postgres password=CHANGE_ME dbname=ec_mall port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/
|
||||
Cache: redis://null:CHANGE_ME@127.0.0.1:6379/
|
||||
|
||||
# 微服务设置
|
||||
MicroService:
|
||||
@@ -21,7 +21,7 @@ Gateway:
|
||||
Port: 12409
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
SecretKey: CHANGE_ME
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
|
||||
@@ -4,10 +4,10 @@ Port: 12410
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=47.109.77.183 user=postgres password=CHANGE_ME dbname=ec_mall port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
- host=127.0.0.1 user=postgres password=CHANGE_ME dbname=ec_mall port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/
|
||||
Cache: redis://null:CHANGE_ME@127.0.0.1:6379/
|
||||
|
||||
# 微服务设置
|
||||
MicroService:
|
||||
@@ -21,7 +21,7 @@ Gateway:
|
||||
Port: 12409
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
SecretKey: CHANGE_ME
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
|
||||
@@ -62,5 +62,3 @@ require (
|
||||
gorm.io/driver/postgres v1.6.2 // indirect
|
||||
gorm.io/gorm v1.31.2
|
||||
)
|
||||
|
||||
replace git.apinb.com/bsm-sdk/core => D:/work/bsm-sdk/core
|
||||
|
||||
@@ -8,6 +8,7 @@ import "strings"
|
||||
// 移除空格,转换为小写,确保键值的唯一性和一致性
|
||||
// 参数:
|
||||
// - key: 原始键值
|
||||
//
|
||||
// 返回:
|
||||
// - 格式化后的键值
|
||||
func FormatKey(key string) string {
|
||||
|
||||
Reference in New Issue
Block a user