fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# 设置输出编码为UTF-8
|
||||
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
||||
# 数据库连接信息 - 修改了URL格式
|
||||
$DB_URL = "hm: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="hm: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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user