model

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameDemoGoods = "demo_goods"
View Source
const TableNameDemoSample = "demo_sample"

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoGoods added in v0.0.18

type DemoGoods struct {
	*cool.Model
	Name string `gorm:"not null" json:"name"`
}

DemoGoods mapped from table <demo_goods>

func NewDemoGoods added in v0.0.18

func NewDemoGoods() *DemoGoods

NewDemoGoods create a new DemoGoods

func (*DemoGoods) GroupName added in v0.0.18

func (*DemoGoods) GroupName() string

GroupName DemoGoods's table group

func (*DemoGoods) TableName added in v0.0.18

func (*DemoGoods) TableName() string

TableName DemoGoods's table name

type DemoSample

type DemoSample struct {
	*cool.Model
}

DemoSample mapped from table <demo_sample>

func NewDemoSample

func NewDemoSample() *DemoSample

NewDemoSample create a new DemoSample

func (*DemoSample) GroupName

func (*DemoSample) GroupName() string

GroupName DemoSample's table group

func (*DemoSample) TableName

func (*DemoSample) TableName() string

TableName DemoSample's table name

Jump to

Keyboard shortcuts

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