table

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

type Delete struct {
	ID        string `form:"id"`
	TableName string `form:"table_name"`
	DbType    string `form:"db_type,default=mysql"`
	// contains filtered or unexported fields
}

func NewDeleteLogic

func NewDeleteLogic(c *view.Config) Delete

func (*Delete) Delete

func (h *Delete) Delete(ctx *serve.BaseContext) (interface{}, error)

type Insert

type Insert struct {
	TableName string `json:"table_name"`
	DbType    string `json:"db_type,default=mysql"`

	InsertData map[string]interface{} `json:"insert_data"`
	// contains filtered or unexported fields
}

func NewInsertLogic

func NewInsertLogic(c *view.Config) Insert

func (*Insert) Insert

func (h *Insert) Insert(ctx *serve.BaseContext) (interface{}, error)

type List

type List struct {
	TableName string `json:"table_name"`
	DbType    string `json:"db_type,default=mysql"`

	db.MysqlQueryParams
	// contains filtered or unexported fields
}

func NewListLogic

func NewListLogic(c *view.Config) List

func (*List) List

func (h *List) List(ctx *serve.BaseContext) (resp interface{}, err error)

type Update

type Update struct {
	TableName  string                 `json:"table_name"`
	DbType     string                 `json:"db_type,default=mysql"`
	ID         interface{}            `json:"id"`
	UpdateData map[string]interface{} `json:"update_data"`
	// contains filtered or unexported fields
}

func NewUpdateLogic

func NewUpdateLogic(c *view.Config) Update

func (*Update) Update

func (h *Update) Update(ctx *serve.BaseContext) (resp interface{}, err error)

type ViewTable

type ViewTable struct {
	DbType string `form:"db_type,default=mysql"`
	// contains filtered or unexported fields
}

func NewViewTableLogic

func NewViewTableLogic(c *view.Config) ViewTable

func (*ViewTable) ViewTable

func (h *ViewTable) ViewTable(ctx *serve.BaseContext) (interface{}, error)

Jump to

Keyboard shortcuts

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