common_info

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProjectPackageName = "" //用于一键生成能够正确的import路径,毕竟一键根据数据库生成则没法利用反射获取信息了

Functions

This section is empty.

Types

type DependenceInfo

type DependenceInfo struct {
	PackagePath string //以 ',' 分割多个
	PackageName string //每个类只会有一个包名
}

type IColumn

type IColumn interface {
	Name() string
	Type() string
	Tag() string
}

type ObjectDependence

type ObjectDependence map[string]DependenceInfo

func (*ObjectDependence) GetPackageName

func (o *ObjectDependence) GetPackageName(objectName string) string

func (*ObjectDependence) GetPackagePath

func (o *ObjectDependence) GetPackagePath(objectName string) string

type ObjectInfo

type ObjectInfo map[string][]IColumn

func CastObjectInfo

func CastObjectInfo[T IColumn](src map[string][]T) *ObjectInfo

CastObjectInfo copy from any type of implement IColumn

type ParserInfo

type ParserInfo struct {
	Objects                   *ObjectInfo
	Dependencies              *ObjectDependence
	CurrentObjectsNameByOrder []string
}

func GetParserInfo

func GetParserInfo() *ParserInfo

Jump to

Keyboard shortcuts

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