model

package
v0.0.0-...-6215f49 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*basic.Table
	Imports []string       // 需要导入的包
	PkgName string         // 包名
	Columns []*modelColumn // 表字段
}

func NewModel

func NewModel(table *basic.Table, cols []*basic.Column, pkgName string) *Model

func (*Model) Gen

func (t *Model) Gen(wr io.Writer) error

func (*Model) ModelName

func (t *Model) ModelName() string

func (*Model) ReceiverName

func (t *Model) ReceiverName() string

Jump to

Keyboard shortcuts

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