Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeFieldMaskPaths ¶
func NormalizeFieldMaskPaths(fm *fieldmaskpb.FieldMask)
NormalizeFieldMaskPaths normalizes the paths in the given FieldMask to snake_case
func NormalizePaths ¶
NormalizePaths 将字段路径标准化(简单地为标识符添加反引号,保留 *)。
Types ¶
type Selector ¶
type Selector struct{}
Selector 字段选择器,用于构建 GORM 查询中的字段列表。
func (Selector) BuildSelect ¶
BuildSelect 将 fields 应用到传入的 *gorm.DB,并返回修改后的 *gorm.DB。
Click to show internal directories.
Click to hide internal directories.