refactor: 重构资产实体和DTO结构类型

将gjson.Json类型替换为具体的结构体和map类型,修正DAO层链式调用,启用SKU元数据校验逻辑
This commit is contained in:
2026-03-22 20:08:32 +08:00
parent 34a1ba79b6
commit 829dc07747
36 changed files with 932 additions and 793 deletions

View File

@@ -17,8 +17,8 @@ rate:
database:
default:
- type: "pgsql"
host: "116.204.74.41"
port: "15432"
host: "localhost"
port: "5432"
user: "postgres"
pass: "123456"
name: "assets"
@@ -34,8 +34,8 @@ database:
deletedAt: "deleted_at" # (可选)软删除时间字段名称
timeMaintainDisabled: false # (可选)是否完全关闭时间更新特性为true时CreatedAt/UpdatedAt/DeletedAt都将失效
- type: "pgsql"
host: "116.204.74.41"
port: "15432"
host: "localhost"
port: "5432"
user: "postgres"
pass: "123456"
name: "assets"
@@ -52,8 +52,8 @@ database:
timeMaintainDisabled: false # (可选)是否完全关闭时间更新特性为true时CreatedAt/UpdatedAt/DeletedAt都将失效
tenant-1:
- type: "pgsql" # 使用自定义驱动,自动赋值创建人/修改人/租户ID
host: "116.204.74.41"
port: "15432"
host: "localhost"
port: "5432"
user: "postgres"
pass: "123456"
name: "tenant"
@@ -72,7 +72,7 @@ database:
redis:
# 集群模式配置方法
default:
address: 116.204.74.41:6379
address: localhost:6379
db: 0
idleTimeout: "60s"
maxConnLifetime: "90s"
@@ -82,7 +82,7 @@ redis:
writeTimeout: "30s"
maxActive: 100
test:
address: 116.204.74.41:6379
address: localhost:6379
db: 1
idleTimeout: "60s"
maxConnLifetime: "90s"
@@ -93,18 +93,31 @@ redis:
maxActive: 100
consul:
address: 116.204.74.41:8500
address: localhost:8500
jaeger:
addr: 116.204.74.41:4318
addr: localhost:4318
nats:
default:
url: "nats://116.204.74.41:4222"
url: "nats://localhost:4222"
# 文件上传服务地址与oss模块minio中的endpoint一致
filePrefix: "116.204.74.41:9000"
cache:
localTTL: 60
redisTTL: 300
redisTTL: 300
gmq:
redis:
primary:
addr: "localhost"
port: "6379"
db: 0
username: ""
password: ""
poolSize: 10
minIdleConn: 5
maxActiveConn: 10
maxRetries: 30