trackable

package
v0.0.0-...-5abfebf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedBy

type CreatedBy struct {
	CreatedBy string `gorm:"not null"`
}

CreatedBy represents the created by field

func (*CreatedBy) BeforeCreate

func (t *CreatedBy) BeforeCreate(ctx *gorm.DB) (err error)

BeforeCreate sets the created by field

type UpdatedBy

type UpdatedBy struct {
	UpdatedBy string
}

UpdatedBy represents the updated by field

func (*UpdatedBy) BeforeUpdate

func (t *UpdatedBy) BeforeUpdate(ctx *gorm.DB) (err error)

BeforeUpdate sets the updated by field

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL