From ccccab310466e55c9995dddf72c4b306163460ad Mon Sep 17 00:00:00 2001 From: yangyu Date: Wed, 12 Jan 2022 17:10:52 +0800 Subject: [PATCH 1/2] fix bug --- app/other/models/tools/sys_columns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/other/models/tools/sys_columns.go b/app/other/models/tools/sys_columns.go index 34fe27c7..1acc6aba 100644 --- a/app/other/models/tools/sys_columns.go +++ b/app/other/models/tools/sys_columns.go @@ -56,7 +56,7 @@ func (e *SysColumns) GetList(tx *gorm.DB, exclude bool) ([]SysColumns, error) { table := tx.Table("sys_columns") table = table.Where("table_id = ? ", e.TableId) if exclude { - notIn := make([]string, 6) + notIn := make([]string, 0, 6) notIn = append(notIn, "id") notIn = append(notIn, "create_by") notIn = append(notIn, "update_by") From 866714d75e393311291a2525b815106d05226a85 Mon Sep 17 00:00:00 2001 From: siliconhe <920504994@qq.com> Date: Sun, 17 Jul 2022 21:14:26 +0800 Subject: [PATCH 2/2] update doc url of cgo-issue --- README.Zh-cn.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.Zh-cn.md b/README.Zh-cn.md index 1e1f3e6f..ff2b8c95 100644 --- a/README.Zh-cn.md +++ b/README.Zh-cn.md @@ -158,7 +158,7 @@ D:\Code\go-admin>go build cgo: exec gcc: exec: "gcc": executable file not found in %PATH% ``` -[解决cgo问题进入](https://doc.go-admin.dev/guide/other/faq.html#_5-cgo-exec-missing-cc-exec-missing-cc-file-does-not-exist) +[解决cgo问题进入](https://doc.go-admin.dev/zh-CN/guide/faq#cgo-%E7%9A%84%E9%97%AE%E9%A2%98) ::: diff --git a/README.md b/README.md index c151f080..efabf308 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ D:\Code\go-admin>go build cgo: exec gcc: exec: "gcc": executable file not found in %PATH% ``` -[Solve the cgo problem and enter](https://doc.go-admin.dev/guide/other/faq.html#_5-cgo-exec-missing-cc-exec-missing-cc-file-does-not-exist) +[Solve the cgo problem and enter](https://doc.go-admin.dev/guide/faq#cgo-%E7%9A%84%E9%97%AE%E9%A2%98) :::