generate

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAPI

func GenAPI(ctx context.Context, pkgName, moduleName, name, comment, pkColumn string) error

GenAPI 生成API

func GenAPIContent

func GenAPIContent(ctx context.Context, pkgName, moduleName, name, comment, pkColumn string) (*bytes.Buffer, error)

GenAPIContent 生成API内容

func GenDB

func GenDB(ctx context.Context, pkgName, moduleName, name, comment, table string) error

GenDB 生成DB

func GenDBContent

func GenDBContent(ctx context.Context, pkgName, moduleName, name, comment, table string) (*bytes.Buffer, error)

GenDBContent 生成DB内容

func GenJS

func GenJS(ctx context.Context, moduleName, name, comment, pk string) error

GenJS 生成JS

func GenJSContent

func GenJSContent(ctx context.Context, name, comment, pk string) (*bytes.Buffer, error)

GenJSContent 生成API内容

func GenModel

func GenModel(ctx context.Context, pkgName, moduleName, table, name, comment, pk, pkGo string, columns []model.Columns) error

GenModel 生成model实现文件

func GenModelContent

func GenModelContent(ctx context.Context, pkgName, moduleName, table, name, comment, pk, pkGo string, columns []model.Columns) (*bytes.Buffer, error)

GenModelContent 生成model实现文件

func GenParam

func GenParam(ctx context.Context, moduleName, name string, columns []model.Columns) error

GenParam 生成参数

func GenParamContent

func GenParamContent(ctx context.Context, name string, columns []model.Columns) (*bytes.Buffer, error)

GenParamContent 生成param实现文件

func GenRouter

func GenRouter(ctx context.Context, pkgName, moduleName, name, comment string) error

GenRouter 生成Router

func GenRouterContent

func GenRouterContent(ctx context.Context, pkgName, moduleName, name, comment string) (*bytes.Buffer, error)

GenRouterContent 生成Router内容

func GenService

func GenService(ctx context.Context, pkgName, moduleName, name, comment, pkGo string) error

GenService 生成service实现文件

func GenServiceContent

func GenServiceContent(ctx context.Context, pkgName, moduleName, name, comment, pkGo string) (*bytes.Buffer, error)

GenServiceContent 生成service实现文件内容

func GenVue

func GenVue(ctx context.Context, moduleName, businessName, name, comment, id string, columns []model.Columns) error

GenVue 生成vue

func GenVueContent

func GenVueContent(ctx context.Context, moduleName, businessName, name, comment, id string, columns []model.Columns) (*bytes.Buffer, error)

GenVueContent 生成API内容

Types

This section is empty.

Jump to

Keyboard shortcuts

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