From 6e2c0d870632e3a8d564b4b1fb061d791270cb5c Mon Sep 17 00:00:00 2001 From: john Date: Thu, 4 Jun 2020 17:29:16 +0800 Subject: [PATCH] comment and readme update --- README.MD | 2 +- README_ZH.MD | 2 +- database/gdb/gdb_model_fields.go | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 8bceb479d..3955f5f32 100644 --- a/README.MD +++ b/README.MD @@ -38,7 +38,7 @@ golang version >= 1.11 1. **Community Package** - The community packages are contributed and maintained by community members, which are stored in `gogf` organization. Some of the community packages are separated from the `gf` repository, which are not of common usage or are with heavy dependencies. + The community packages are contributed and maintained by community members, which are hosted in `gogf` organization. Some of the community packages are separated from the `gf` repository, which are not of common usage or are with heavy dependencies. # Architecture
diff --git a/README_ZH.MD b/README_ZH.MD index 840a5958d..d37757587 100644 --- a/README_ZH.MD +++ b/README_ZH.MD @@ -53,7 +53,7 @@ golang版本 >= 1.11 1. **社区模块** - 社区模块主要由社区贡献并维护,大部分也是由`gf`主仓库的贡献者提供及维护,存放于`gogf`组织下,与`gf`主仓库处于同一级别。有的社区模块是从`gf`主仓库中剥离出来单独维护的模块,这些模块并不是特别常用,或者对外部依赖较重。 + 社区模块主要由社区贡献并维护,大部分也是由`gf`主仓库的贡献者提供及维护,存放于`gogf`空间下,与`gf`主仓库处于同一级别。有的社区模块是从`gf`主仓库中剥离出来单独维护的模块,这些模块并不是特别常用,或者对外部依赖较重。 # 架构 diff --git a/database/gdb/gdb_model_fields.go b/database/gdb/gdb_model_fields.go index c28df6524..580b57fc7 100644 --- a/database/gdb/gdb_model_fields.go +++ b/database/gdb/gdb_model_fields.go @@ -13,6 +13,7 @@ import ( ) // Filter marks filtering the fields which does not exist in the fields of the operated table. +// Note that this function supports only single table operations. func (m *Model) Filter() *Model { if gstr.Contains(m.tables, " ") { panic("function Filter supports only single table operations") @@ -30,6 +31,7 @@ func (m *Model) Fields(fields string) *Model { } // FieldsEx sets the excluded operation fields of the model, multiple fields joined using char ','. +// Note that this function supports only single table operations. func (m *Model) FieldsEx(fields string) *Model { if gstr.Contains(m.tables, " ") { panic("function FieldsEx supports only single table operations")