This commit is contained in:
白茶清欢 2024-03-08 16:35:03 +08:00
parent ee1ff53593
commit 9120cd2c68
1 changed files with 6 additions and 0 deletions

View File

@ -381,6 +381,12 @@ func (c *common) ToString() string {
//
// Date : 16:25 2024/3/8
func (c *common) Filter(ignoreFieldList []string, rewriteFieldTable map[string]string) map[string]interface{} {
if nil == ignoreFieldList {
ignoreFieldList = make([]string, 0)
}
if nil == rewriteFieldTable {
rewriteFieldTable = make(map[string]string)
}
result := make(map[string]interface{})
ignoreFieldTable := make(map[string]bool)
for _, item := range ignoreFieldList {