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: 0

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