model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 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 Model

type Model struct {
	Id        uint          `json:"id" gorm:"column:id"`
	Del       uint          `json:"del" gorm:"column:del"`
	CreatedAt util.JsonTime `json:"created_at" gorm:"column:created_at"`
	UpdatedAt util.JsonTime `json:"updated_at" gorm:"column:updated_at"`
}

func (*Model) BeforeCreate

func (model *Model) BeforeCreate(s *gorm.Scope) error

func (*Model) BeforeUpdate

func (model *Model) BeforeUpdate(s *gorm.Scope) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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