models

package
v0.0.0-...-9978ad0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerExtended

type CustomerExtended struct {
	CustomerShort
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
}

func (CustomerExtended) GeoPoint

func (j CustomerExtended) GeoPoint() (point geo.Point, err error)

func (*CustomerExtended) MarshalJSON

func (j *CustomerExtended) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*CustomerExtended) MarshalJSONBuf

func (j *CustomerExtended) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*CustomerExtended) UnmarshalJSON

func (j *CustomerExtended) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*CustomerExtended) UnmarshalJSONFFLexer

func (j *CustomerExtended) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CustomerShort

type CustomerShort struct {
	UserID int    `json:"user_id"`
	Name   string `json:"name"`
}

func (*CustomerShort) MarshalJSON

func (j *CustomerShort) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*CustomerShort) MarshalJSONBuf

func (j *CustomerShort) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*CustomerShort) UnmarshalJSON

func (j *CustomerShort) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*CustomerShort) UnmarshalJSONFFLexer

func (j *CustomerShort) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

Jump to

Keyboard shortcuts

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