Files
bj_power/bj_power_wms_client/internal/config/config.go
T

16 lines
583 B
Go
Raw Normal View History

2026-08-28 15:06:01 +08:00
package config
import (
"github.com/zeromicro/go-zero/rest"
)
// Config 库房客户端网关配置:无数据库,业务数据全部经反向代理转发到 WMS 后端(项目C)
type Config struct {
rest.RestConf
// WmsAddr WMS 后端地址,请求经 /api 反向代理转发到这里
2026-08-29 15:30:25 +08:00
WmsAddr string `json:",default=http://127.0.0.1:8890"`
2026-08-28 15:06:01 +08:00
// ApiToken 内部 API Token,转发请求 WMS 时写入请求头 X-API-TOKEN
2026-08-29 15:30:25 +08:00
ApiToken string `json:",default=Hardman_2026"`
2026-08-28 15:06:01 +08:00
// JwtSecret JWT 口令,内部服务签发/校验 JWT 使用
2026-08-29 15:30:25 +08:00
JwtSecret string `json:",optional"`
2026-08-28 15:06:01 +08:00
}