chore:添加新的配置要求

This commit is contained in:
martin committed 2026-07-25 19:51:13 +08:00
1 parent 9374c64bad
commit c35136bcf1
2 files changed
+51

No files matched your search

+40
View File
@@ -19,6 +19,46 @@ gfcli:
daoPath: "./internal/dao"
doPath: "./internal/model/do"
entityPath: "./internal/model/entity"
# 金额 decimal 化:全局 NUMERIC → decimal.Decimal
typeMapping:
decimal:
type: decimal.Decimal
import: github.com/shopspring/decimal
numeric:
type: decimal.Decimal
import: github.com/shopspring/decimal
# 可空金额列 → *decimal.Decimal
fieldMapping:
bil_wallets.warning_threshold:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_pricing.per_request_price:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_tenant_models.custom_input_price:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_tenant_models.custom_output_price:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_tenant_models.per_request_price:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_tenant_models.custom_cache_read_price:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_tenant_models.custom_cache_creation_price:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
mdl_tenant_models.discount_ratio:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
api_keys.total_quota:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
tnt_projects.budget:
type: "*decimal.Decimal"
import: github.com/shopspring/decimal
ctrl:
- apiPath: "./api"
outPath: "./internal/controller"
+11
View File
@@ -32,6 +32,17 @@ database:
maxOpen: 100
maxLifetime: "30s"
# 审计日志独立数据库(可选)
# 启用后 aud_request_logs(大模型请求审计)写入独立库,其余审核表仍在主库。
# 建表脚本见 docs/audit-db-schema.sql,需在审计库手动执行。
# audit:
# type: "pgsql"
# link: "pgsql:user:pass@tcp(host:port)/team-api-audit?sslmode=disable"
# timezone: "Asia/Shanghai"
# maxIdle: 10
# maxOpen: 50
# maxLifetime: "5m"
# Redis
redis:
default: