modules

package
v0.0.0-...-cd8b1d2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name               string
	GoType             string
	QueryType          string
	Validate           string
	GraphQLType        string
	GraphQLDescription string
	GraphQLRequired    bool
}

Field is one field of struct

func (*Field) IsBoolean

func (f *Field) IsBoolean() bool

IsBoolean ...

func (*Field) IsIDField

func (f *Field) IsIDField() bool

IsIDField ...

func (*Field) IsInt64

func (f *Field) IsInt64() bool

IsInt64 ...

func (*Field) IsNullTimeField

func (f *Field) IsNullTimeField() bool

IsNullTimeField ...

func (*Field) IsStatusField

func (f *Field) IsStatusField() bool

IsStatusField ...

func (*Field) IsTimeField

func (f *Field) IsTimeField() bool

IsTimeField ...

type Fields

type Fields []Field

Fields list of Field

func (*Fields) GetTotalFields

func (fs *Fields) GetTotalFields() int

GetTotalFields ...

type Module

type Module struct {
	Name          string
	Fields        Fields
	IsHaveGetByID bool
	IsHaveCount   bool
	IsHaveList    bool
	IsHaveInsert  bool
	IsHaveUpdate  bool
	IsHaveDelete  bool
}

Module need to generate

type Modules

type Modules []Module

Modules list of Struct

func GetModules

func GetModules() Modules

GetModules ...

Jump to

Keyboard shortcuts

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