models

package
v0.0.0-...-ed9b52c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	Id        int64  `gorm:"primaryKey" json:"id" form:"id"`
	CreatedAt MyTime `json:"created_at"`
}

type JsonTime

type JsonTime time.Time

func (JsonTime) MarshalJSON

func (this JsonTime) MarshalJSON() ([]byte, error)

type MyTime

type MyTime struct {
	time.Time
}

func (MyTime) MarshalJSON

func (t MyTime) MarshalJSON() ([]byte, error)

func (*MyTime) Scan

func (t *MyTime) Scan(v interface{}) error

func (MyTime) Value

func (t MyTime) Value() (driver.Value, error)

type Tabler

type Tabler interface {
	TableName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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