This commit is contained in:
2026-02-27 15:46:12 +08:00
parent a8ec1a5aa1
commit 63269dcb0b
58 changed files with 5806 additions and 1766 deletions

View File

@@ -28,7 +28,7 @@ $tables = @(
# "admin_user_role",
# "agent",
# "agent_commission",
"agent_config"
# "agent_config"
# "agent_freeze_task",
# "agent_invite_code",
# "agent_invite_code_usage",
@@ -45,7 +45,7 @@ $tables = @(
# "agent_withdrawal_tax",
# "authorization_document",
# "example",
# "feature",
"feature",
# "global_notifications",
# "order",
# "order_refund",
@@ -57,12 +57,15 @@ $tables = @(
# "query_cleanup_log",
# "user",
# "user_auth"
"whitelist_order",
"whitelist_order_item",
"user_feature_whitelist"
)
# 为每个表生成模型
foreach ($table in $tables) {
Write-Host "正在生成表: $table" -ForegroundColor Green
goctl model mysql datasource -url="bdqr:5vg67b3UNHu8@tcp(127.0.0.1:21001)/bdqr" -table="$table" -dir="./model" --home="$HOME_DIR" -cache=true --style=goZero
goctl model mysql datasource -url="bdqr:8kN7xP9vH2jG5cB@tcp(127.0.0.1:23201)/bdqr" -table="$table" -dir="./model" --home="$HOME_DIR" -cache=true --style=goZero
# 移动生成的文件到目标目录
if (Test-Path $OUTPUT_DIR) {