model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Model2Map

func Model2Map(obj interface{}, ignoreEmpty bool) map[string]interface{}

Types

type ModelStruct

type ModelStruct struct {
	TableName          string
	CustomizeTableName string
	PrimaryKey         string
	DeletedAtColumn    string
	FieldAttrMap       map[string]string
	SubTagMap          map[string]map[string]string
}

the struct attributes

func ParseStruct

func ParseStruct(d interface{}) (ModelStruct, interface{})

func (ModelStruct) GetPrimaryKeyAttr

func (m ModelStruct) GetPrimaryKeyAttr() string

func (ModelStruct) GetTableName

func (m ModelStruct) GetTableName() string

Jump to

Keyboard shortcuts

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