mysqlpage

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = service.Config{
	Method: "GET",
	Path:   "/mysql-example/products/page",
	Build:  Build,
}

Functions

func Build

func Build(
	requestID meta.RequestId,
	rawHeaders service.RawHeaders,
	rawBody service.RawBody,
	rawParams service.RawParams,
) (
	service.TPL, error,
)

Types

type Product

type Product struct {
	ID   string `json:"id" db:"id"`
	Name string `json:"name" db:"name"`
}

type Service

type Service struct {
	Pattern  string `param:"pattern"`
	Pattern2 string `param:"pattern2"`
	Page     int    `param:"page"`
	Size     int    `param:"size"`
}

func (Service) Result

func (s Service) Result() (interface{}, error)

Jump to

Keyboard shortcuts

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