This commit is contained in:
eson 2023-09-08 19:01:29 +08:00
parent b85c7a019f
commit 692220b31b

View File

@ -47,6 +47,7 @@ import (
// return nil
// }
// tableStructPointer 表结构 updateMetadata 可以是json的[]byte也可以结构体
func MetadataPATCH(tx *gorm.DB, module string, tableStructPointer any, updateMetadata any, WhereKeysCond string, value ...any) error {
stype := reflect.TypeOf(tableStructPointer)
if stype.Kind() == reflect.Pointer {