models

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 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 ExampleNameModels

type ExampleNameModels struct {
	ID        int        `dbq:"id" json:"id"`
	Name      string     `dbq:"name" json:"name"`
	Status    int        `dbq:"status" json:"status"`
	IsActive  bool       `dbq:"is_active" json:"is_active"`
	TestID    int64      `dbq:"test_id" json:"test_id"`
	StartDate time.Time  `dbq:"start_date" json:"start_date"`
	CreatedAt time.Time  `dbq:"created_at,omitempty" json:"created_at,omitempty"`
	UpdatedAt time.Time  `dbq:"updated_at,omitempty" json:"updated_at,omitempty"`
	DeletedAt *time.Time `dbq:"deleted_at,omitempty" json:"deleted_at,omitempty"`
}

ExampleNameModels example name models struct

func (ExampleNameModels) GetColumns

func (models ExampleNameModels) GetColumns() []string

GetColumns get columns of example name models

func (ExampleNameModels) GetModels

func (models ExampleNameModels) GetModels() interface{}

GetModels get models of example name models

func (ExampleNameModels) GetModelsMap

func (models ExampleNameModels) GetModelsMap() map[string]interface{}

GetModelsMap get models map of example name models

func (ExampleNameModels) GetTableName

func (models ExampleNameModels) GetTableName() string

GetTableName get table name of example name models

func (ExampleNameModels) GetValStruct

func (models ExampleNameModels) GetValStruct(arrColumn []string) []interface{}

GetValStruct get value struct of example name models

Jump to

Keyboard shortcuts

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