feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
[program:bsm-finance-wallet]
command=/data/app/bsm-finance-wallet
directory=/data/app
autostart=true
autorestart=true
user=root
redirect_stderr=true
stdout_logfile=/data/app/logs/finance-wallet.log

View File

@@ -0,0 +1,79 @@
Service: "{ServiceKey}"
Port: 12238
Databases:
Driver: postgres
Source:
- postgres://postgres:CHANGE_ME@47.109.77.183:5432/bsm_dev?sslmode=disable&TimeZone=Asia/Shanghai
# cache DB的选择请在后面直接带参数不带会自动HASH计算选择DB库。
# DB库设置例redis://null:Weidong1214@139.159.232.50:6379/12代表DB12
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/
Etcd:
Hosts:
- "127.0.0.1:2379"
Key: service.{Workspace}.{ServiceKey}.rpc
Gateway:
Enable: true
Port: 12239
## 服务调用
#Notify:
# Etcd:
# Hosts:
# - 127.0.0.1:2379
# Key: service.{Workspace}.notify.rpc
#
#Material:
# Etcd:
# Hosts:
# - 127.0.0.1:2379
# Key: service.{Workspace}.material.rpc
MicroService:
Enable: false
Anonymous:
- wallet.wechat.WxCallback
- wallet.payment.Callback
- wallet.payment.Hello
# 日志记录
Log:
ServiceName: {ServiceKey}
Mode: file
Path: logs/{ServiceKey}
Stat: false
# 性能监控
Prometheus:
Host: 127.0.0.1
Port: 22238
Path: /metrics
# 链路追踪
# Telemetry:
# Name: {Workspace}.{ServiceKey}.{RuntimeMode}
# Endpoint: http://121.37.208.46:14268/api/traces
# Sampler: 1.0
# Batcher: jaeger
# MQ Pulsar
#Pulsar:
# Endpoints: 127.0.0.1
# Token: 9091
# Namespaces: {Workspace}
WeChat:
AppID: wx9a2f163207219776
AppSecret:
SerialNo: 209F629E63E56D2366361969B51FBA0ADCF69F55
APIV3Key: MakeSupplyChainFinance1123581321
PrivateKey: E:/working/ServerData/wechat_cert/apiclient_key.pem
NotifyURL:
Currency: CNY
MchID: 1670561983
SubMchID:
OpenID:

View File

@@ -0,0 +1,68 @@
Name: {ServiceKey}
ListenOn: 0.0.0.0:12238
Dsn: postgres://postgres:CHANGE_ME@47.109.77.183:5432/{Workspace}_prod?sslmode=disable&TimeZone=Asia/Shanghai
# cache DB的选择请在后面直接带参数不带会自动HASH计算选择DB库。
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/
Etcd:
Hosts:
- 192.168.0.83:2379
Key: service.{Workspace}.{ServiceKey}.rpc
# 服务调用
Notify:
Etcd:
Hosts:
- 192.168.5.161:2379
Key: service.{Workspace}.notify.rpc
# 匿名访问清单,自动注入网关层
# 匿名访问清单,自动注入网关层
Anonymous:
Key: anonymous.{Workspace}
Urls:
- wallet.Check.Hello
- wallet.Check.Updates
- wallet.Data.Configure
- wallet.Data.Areas
- wallet.Data.Tags
# 日志记录
Log:
ServiceName: {ServiceKey}
Mode: file
Path: logs/{ServiceKey}
Stat: false
# 性能监控
Prometheus:
Host: 127.0.0.1
Port: 22238
Path: /metrics
# 链路追踪
Telemetry:
Name: {Workspace}.{ServiceKey}.{RuntimeMode}
Endpoint: http://192.168.0.85:14268/api/traces
Sampler: 1.0
Batcher: jaeger
WeChat:
AppID: wx9a2f163207219776
AppSecret:
SerialNo: 209F629E63E56D2366361969B51FBA0ADCF69F55
APIV3Key: MakeSupplyChainFinance1123581321
PrivateKey: /usr/local/cert/wechat/apiclient_key.pem
NotifyURL: https://srv.make-w.com/wallet.Payment.Callback
Currency: CNY
MchID: 1670561983
SubMchID:
OpenID:
# MQ Pulsar
#Pulsar:
# Endpoints: 127.0.0.1
# Token: 9091
# Namespaces: {Workspace}

View File

@@ -0,0 +1,61 @@
Name: {ServiceKey}
ListenOn: 0.0.0.0:12238
Dsn: postgres://postgres:CHANGE_ME@47.109.77.183:5432/{Workspace}_test?sslmode=disable&TimeZone=Asia/Shanghai
# cache DB的选择请在后面直接带参数不带会自动HASH计算选择DB库。
# DB库设置例redis://null:Weidong1214@127.0.0.1:6379/12代表DB12
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/
Etcd:
Hosts:
- 127.0.0.1:2379
Key: service.{Workspace}.{ServiceKey}.rpc
# 服务调用
Notify:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: service.{Workspace}.notify.rpc
Material:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: service.{Workspace}.material.rpc
# 匿名访问清单,自动注入网关层
Anonymous:
Key: anonymous.{Workspace}
Urls:
- wallet.wechat.WxCallback
- wallet.payment.Callback
# 日志记录
Log:
ServiceName: {ServiceKey}
Mode: file
Path: logs/{ServiceKey}
Stat: false
# 性能监控
Prometheus:
Host: 127.0.0.1
Port: 22238
Path: /metrics
# 链路追踪
Telemetry:
Name: {Workspace}.{ServiceKey}.{RuntimeMode}
Endpoint: http://192.168.0.85:14268/api/traces
Sampler: 1.0
Batcher: jaeger
# MQ Pulsar
#Pulsar:
# Endpoints: 127.0.0.1
# Token: 9091
# Namespaces: {Workspace}