common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	ID        uuid.UUID  `gorm:"primary_key;" json:"id" example:"6ba7b810-9dad-11d1-80b4-00c04fd430c8"`
	CreatedAt time.Time  `json:"createdAt" example:"2021-11-30T04:17:20.14Z"`
	UpdatedAt time.Time  `json:"updatedAt" example:"2021-11-30T04:17:20.14Z"`
	DeletedAt *time.Time `json:"deletedAt" example:"2021-11-30T04:17:20.14Z"`
}

func (*Base) BeforeCreate

func (base *Base) BeforeCreate(tx *gorm.DB) (err error)

type BaseExerpt

type BaseExerpt struct {
	ID        uuid.UUID `gorm:"primary_key;" json:"id" example:"6ba7b810-9dad-11d1-80b4-00c04fd430c8"`
	CreatedAt time.Time `json:"createdAt" example:"2021-11-30T04:17:20.14Z"`
	UpdatedAt time.Time `json:"updatedAt" example:"2021-11-30T04:17:20.14Z"`
}

Jump to

Keyboard shortcuts

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