app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Code generated by Lorca. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var FS = &fs{}

Functions

func Gen added in v1.0.1

func Gen() error

Gen Gen

func Run

func Run() error

Run Run

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application 应用结构体

func (*Application) CreateProvider

func (app *Application) CreateProvider(c *config.Config) map[string]interface{}

CreateProvider 创建数据源

func (*Application) Custom

func (app *Application) Custom(code int, msg string, data interface{}) map[string]interface{}

Custom Custom

func (*Application) Error

func (app *Application) Error(msg string) map[string]interface{}

Error Error

func (*Application) Generate

func (app *Application) Generate(r *builder.GenerateRequest) map[string]interface{}

Generate 生成代码

func (*Application) GetConfig added in v1.0.1

func (app *Application) GetConfig() map[string]interface{}

GetConfig 取配置信息

func (*Application) GetTables

func (app *Application) GetTables() map[string]interface{}

GetTables 取数据表列表

func (*Application) GetTemplates

func (app *Application) GetTemplates() map[string]interface{}

GetTemplates 取模板列表

func (*Application) HasProvider

func (app *Application) HasProvider() map[string]interface{}

HasProvider 是否已创建数据源

func (*Application) Ok

func (app *Application) Ok(data interface{}) map[string]interface{}

Ok Ok

type GenOptions added in v1.0.1

type GenOptions struct {
	Template string            `long:"template" description:"模板名称" required:"true"`
	Table    string            `long:"table" description:"表名" required:"true"`
	Env      map[string]string `long:"env" description:"自定义变量"`
}

GenOptions 生成的参数

Jump to

Keyboard shortcuts

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