logic

package
v0.0.0-...-aa2c1ea Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityInfo

type EntityInfo struct {
	Name   string
	Fields []FieldInfo
}

EntityInfo 生成实体文件的信息

type FieldInfo

type FieldInfo struct {
	FieldName      string
	TypeStr        string
	GormMappedInfo string
}

FieldInfo 生成实体字段信息

type GeneratorLogic

type GeneratorLogic struct {
}

GeneratorLogic 生成文件逻辑

func (GeneratorLogic) CreateEntityFile

func (t GeneratorLogic) CreateEntityFile(output string, tableName string, packageName string)

CreateEntityFile 创建实体文件

type TableLogic

type TableLogic struct {
}

func (TableLogic) GetEntityInfo

func (t TableLogic) GetEntityInfo(name string) *EntityInfo

GetEntityInfo 获取实体文件生成信息

Jump to

Keyboard shortcuts

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