This commit is contained in:
2025-10-24 15:39:20 +08:00
parent c72d0a7aa6
commit a258c360c2
28 changed files with 1335 additions and 351 deletions

View File

@@ -1,7 +1,7 @@
# 设置输出编码为UTF-8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
# 数据库连接信息 - 修改了URL格式
$DB_URL = "tydata:5vg67b3UNHu8@(127.0.0.1:21001)/hm"
$DB_URL = "tydata:5vg67b3UNHu8@(127.0.0.1:21001)/tydata"
$OUTPUT_DIR = "./model"
$TEMPLATE_DIR = "../template"
@@ -24,12 +24,12 @@ $tables = @(
# "agent_wallet",
# "agent_real_name"
# "agent_withdrawal"
"agent_withdrawal_tax"
# "agent_withdrawal_tax"
# "agent_withdrawal_tax_exemption"
# "feature",
# "global_notifications"
# "order",
# "order_refund"
"order_refund"
# "product",
# "product_feature",
# "query",
@@ -58,5 +58,5 @@ $tables = @(
# 为每个表生成模型
foreach ($table in $tables) {
goctl model mysql datasource -url="tydata:5vg67b3UNHu8@tcp(127.0.0.1:21001)/hm" -table="$table" -dir="./model" --home="../template" -cache=true --style=goZero
goctl model mysql datasource -url="tydata:5vg67b3UNHu8@tcp(127.0.0.1:21001)/tydata" -table="$table" -dir="./model" --home="../template" -cache=true --style=goZero
}