schema

package
v0.0.0-...-26782db Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 2 Imported by: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	UUID      string    `json:"uuid"`                                  // Record ID
	Code      string    `json:"code" binding:"required"`               // Code
	Name      string    `json:"name" binding:"required"`               // Name
	Memo      string    `json:"memo"`                                  // Remarks
	Status    int       `json:"status" binding:"required,max=2,min=1"` // Status (1: Enable 2: Disable)
	Creator   string    `json:"creator"`                               // Creator
	CreatedAt time.Time `json:"created_at"`                            // Creation time
}

Example - Example object

type ExampleQueryOptions

type ExampleQueryOptions struct {
	PageParam *schema.PaginationParam // Paging parameter
}

ExampleQueryOptions - Example object query optional parameter item

type ExampleQueryParam

type ExampleQueryParam struct {
	Code     string // CODE
	Status   int    // Status (1: Enable 2: Disable)
	LikeCode string // Number (fuzzy query)
	LikeName string // Name (fuzzy query)
}

ExampleQueryParam - Query conditions

type ExampleQueryResult

type ExampleQueryResult struct {
	Data       []*Example
	PageResult *schema.PaginationResult
}

ExampleQueryResult - Example object query result

Jump to

Keyboard shortcuts

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