You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
@echo off
|
|
|
|
|
@echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>
|
|
|
|
|
|
|
|
|
|
set tables=user,user_platform
|
|
|
|
|
set targetDir=.\model
|
|
|
|
|
set templateDir=..\..\doc\template
|
|
|
|
|
|
|
|
|
|
set host=127.0.0.1
|
|
|
|
|
set port=23306
|
|
|
|
|
set dbname=dcg
|
|
|
|
|
set username=root
|
|
|
|
|
set password=root
|
|
|
|
|
|
|
|
|
|
for %%i in (%tables%) do (
|
|
|
|
|
echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>⣺ %dbname% <20>ı<EFBFBD><C4B1><EFBFBD> %%i
|
|
|
|
|
goctl model mysql datasource --url "%username%:%password%@tcp(%host%:%port%)/%dbname%" -t %%i -d %targetDir% --style go_zero --home %templateDir%
|
|
|
|
|
)
|