schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Countries

type Countries []*Country

Countries - Country list

type Country

type Country struct {
	Code      string          `json:"code" binding:"required"` // Country's Code
	Name      string          `json:"name" binding:"required"` // Native
	Native    string          `json:"native"`                  // Native language
	Phone     string          `json:"phone"`                   // Phone number
	Continent string          `json:"continent"`               // Continent where country located
	Capital   string          `json:"capital"`                 // Country's Capital
	Currency  json.RawMessage `json:"currency"`                // Country's Currency
	Languages json.RawMessage `json:"languages"`               // Used languages
	Timezones json.RawMessage `json:"timezones"`               // Country's timezones
	LatLng    json.RawMessage `json:"latlng"`                  // Country's geo center
	Emoji     string          `json:"emoji"`                   // Emoji flag
	EmojiU    string          `json:"emojiU"`                  // Emoji flag
}

Country - Country object

type CountryQueryOptions

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

CountryQueryOptions - Countries object query optional parameter item

type CountryQueryParam

type CountryQueryParam struct {
	Code        string // CODE
	Name        string
	Native      string
	Phone       string
	Continent   string // Continent
	Capital     string // Capital
	Currency    string
	Languages   string // Languages
	LikeCode    string // Number (fuzzy query)
	LikeName    string // Name (fuzzy query)
	LikeCapital string // Name (fuzzy query)
	LikeNative  string // Name (fuzzy query)
}

CountryQueryParam - Query conditions

type CountryQueryResult

type CountryQueryResult struct {
	Data       []*Country
	PageResult *schema.PaginationResult
}

CountryQueryResult - Countries object query result

type Language

type Language struct {
	Code    string `json:"code"`                    // Code
	Name    string `json:"name" binding:"required"` // Name
	Native  string `json:"native"`                  // Remarks
	Rtl     bool   `json:"rtl"`                     // RTL
	Default bool   `json:"default"`                 // Default language for project
	Active  bool   `json:"active"`                  // Status language can be added as content
}

Languages - Languages object

type LanguageQueryOptions

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

LanguagesQueryOptions - Languages object query optional parameter item

type LanguageQueryParam

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

LanguagesQueryParam - Query conditions

type LanguageQueryResult

type LanguageQueryResult struct {
	Data       []*Language
	PageResult *schema.PaginationResult
}

LanguagesQueryResult - Languages object query result

type Languages

type Languages []*Language

Languages - Language list

Jump to

Keyboard shortcuts

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