model

package
v0.0.0-...-f3d84ad Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Table         string `db:"TABLE_NAME"`
	Name          string `db:"COLUMN_NAME"`
	Type          string `db:"COLUMN_TYPE"`
	ColumnKey     string `db:"COLUMN_KEY"`
	Comment       string `db:"COLUMN_COMMENT"`
	Default       string `db:"COLUMN_DEFAULT"`
	AutoIncrement int    `db:"AUTO_INCREMENT" `
}

type Controller

type Controller struct {
	PKG      string
	Name     string
	Route    string
	VarName  string
	FileName string
	Model    *Model
}

type Field

type Field struct {
	Name             string
	Type             string
	OpName           string
	OpVar            string
	Comment          bool
	ColumnAnnotation bool
	JSONTag          bool
	JSONTagName      string
	Column           *Column
	HaveDefault      bool
	IgnoreDefault    bool
	Default          string
}

type Mapper

type Mapper struct {
	PKG      string
	Name     string
	VarName  string
	FileName string
	Batis    string
	Model    *Model
}

type Model

type Model struct {
	PKG             string
	Name            string
	FileName        string
	Comment         bool
	Table           *Table
	Fields          []*Field
	DefaultFields   []*Field
	NoDefaultFields []*Field
	HaveId          bool
	Ids             []*Field
	ImportTime      bool
	IntId           bool
	IdCount         int
	AutoIncrement   bool
}

type Service

type Service struct {
	PKG      string
	Name     string
	VarName  string
	FileName string
	Model    *Model
}

type Table

type Table struct {
	Name    string `db:"TABLE_NAME"`
	Comment string `db:"TABLE_COMMENT"`
	Columns []*Column
}

Jump to

Keyboard shortcuts

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