From 2f4a71dae44bf2fbcc427b8eea456c0eddeea168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=8F=E5=86=9B?= <346944475@qq.com> Date: Sun, 27 Oct 2019 22:18:24 +0800 Subject: [PATCH] =?UTF-8?q?foreign=20key=20=E5=A4=96=E9=94=AE=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 +++++++++++---------- README_zh_cn.md | 23 ++++++++++++----------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index b4b41b6..b5c5070 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,19 @@ -------- -## 1. Configure default configuration items through the current directory config. toml file +## 1. Configure default configuration items through the current directory config.yml file ``` -out_dir = "." # out dir -singular_table = false # Table name plural (big Camel-Case):gorm.SingularTable -simple = false #simple output -isJsonTag = true # Whether to mark JSON or not +out_dir : "." # out dir +singular_table : false # Table name plural (big Camel-Case):gorm.SingularTable +simple : false #simple output +is_json_tag : true # Whether to mark JSON or not +is_foreign_key : true # Whether to mark foreign key or not [mysql_info] - host = "127.0.0.1" - port = 3306 - username = "root" - password = "qwer" - database = "oauth_db" + host : "127.0.0.1" + port : 3306 + username : "root" + password : "qwer" + database : "oauth_db" ``` ## 2. get help diff --git a/README_zh_cn.md b/README_zh_cn.md index 70a8a40..6535ab5 100644 --- a/README_zh_cn.md +++ b/README_zh_cn.md @@ -6,18 +6,19 @@ [English](README.md) -------- -## 1. 通过当前目录config.toml文件配置默认配置项 +## 1. 通过当前目录 config.yml 文件配置默认配置项 ``` -out_dir = "." # 输出目录 -singular_table = false # 表名复数,是否大驼峰构建 参考:gorm.SingularTable -simple = false #简单输出 -isJsonTag = true #是否打json标记 -[mysql_info] - host = "127.0.0.1" - port = 3306 - username = "root" - password = "qwer" - database = "oauth_db" +out_dir : "." # 输出目录 +singular_table : false # 表名复数,是否大驼峰构建 参考:gorm.SingularTable +simple : false #简单输出 +isJsonTag : true #是否打json标记 +mysql_info : + host : "127.0.0.1" + port : 3306 + username : "root" + password : "qwer" + database : "oauth_db" + ``` ## 2. 可以使用命令行工具更新配置项