imports

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullBoolPtr

func NullBoolPtr(Bool *bool) sql.NullBool

func NullBoolToPtr

func NullBoolToPtr(Bool sql.NullBool) *bool

func NullFloat64Ptr

func NullFloat64Ptr(Float64 *float64) sql.NullFloat64

func NullFloat64ToPtr

func NullFloat64ToPtr(Float64 sql.NullFloat64) *float64

func NullInt16Ptr

func NullInt16Ptr(Int16 *int16) sql.NullInt16

func NullInt16ToPtr

func NullInt16ToPtr(Int16 sql.NullInt16) *int16

func NullInt32Ptr

func NullInt32Ptr(Int32 *int32) sql.NullInt32

func NullInt32ToPtr

func NullInt32ToPtr(Int32 sql.NullInt32) *int32

func NullInt64Ptr

func NullInt64Ptr(Int64 *int64) sql.NullInt64

func NullInt64ToPtr

func NullInt64ToPtr(Int64 sql.NullInt64) *int64

func NullStringPtr

func NullStringPtr(String *string) sql.NullString

func NullStringToPtr

func NullStringToPtr(String sql.NullString) *string

func NullTimePtr

func NullTimePtr(Time *time.Time) sql.NullTime

func NullTimeToPtr

func NullTimeToPtr(Time sql.NullTime) *time.Time

Types

type Model

type Model struct {
	ID        uint           `gorm:"primaryKey"`
	CreatedAt int64          `gorm:"autoCreateTime:milli"`
	UpdatedAt int64          `gorm:"autoUpdateTime:milli"`
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

type Response

type Response struct {
	Status  string      `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
	Cursor  uint        `json:"cursor,omitempty"`
}

Jump to

Keyboard shortcuts

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