Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditModel ¶ added in v1.4.0
type AuditModel struct {
Model
CreatedBy string `gorm:"size:64"` // 创建人标识(用户 ID 或账号)
UpdatedBy string `gorm:"size:64"` // 更新人标识(用户 ID 或账号)
}
AuditModel 在基础字段上增加创建人/更新人审计字段。 审计字段需要业务在写入时显式赋值(例如通过中间件从用户上下文填充)。
Click to show internal directories.
Click to hide internal directories.