model

package
v0.0.0-...-e6e8425 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameDemoTable = "demo_table"

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoTable

type DemoTable struct {
	*cool.Model
	// Name string `gorm:"column:name;not null;comment:名称" json:"name"`
	Columnstring  string  `gorm:"column:columnstring;not null;comment:列string" json:"columnstring"`
	Columnint     int     `gorm:"column:columnint;not null;comment:列int" json:"columnint"`
	ColumnBool    bool    `gorm:"column:columnbool;not null;comment:列bool" json:"columnbool"`
	ColumnFloat32 float32 `gorm:"column:columnfloat32;not null;comment:列float32" json:"columnfloat32"`
	ColumnFloat64 float64 `gorm:"column:columnfloat64;not null;comment:列float" json:"columnfloat64"`
}

DemoTable mapped from table <demo_table>

func NewDemoTable

func NewDemoTable() *DemoTable

NewDemoTable create a new DemoTable

func (*DemoTable) GroupName

func (*DemoTable) GroupName() string

GroupName DemoTable's table group

func (*DemoTable) TableName

func (*DemoTable) TableName() string

TableName DemoTable's table name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳