models

package
v0.0.0-...-f0786df Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

APIResponse Api response

swagger:model ApiResponse

func (*APIResponse) ContextValidate

func (m *APIResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api response based on context it is used

func (*APIResponse) MarshalBinary

func (m *APIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIResponse) UnmarshalBinary

func (m *APIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIResponse) Validate

func (m *APIResponse) Validate(formats strfmt.Registry) error

Validate validates this Api response

type APIVersion

type APIVersion struct {

	// build at
	// Format: date-time
	BuildAt strfmt.DateTime `json:"build_at,omitempty"`

	// githash
	Githash string `json:"githash,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

APIVersion Api version

swagger:model ApiVersion

func (*APIVersion) ContextValidate

func (m *APIVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api version based on context it is used

func (*APIVersion) MarshalBinary

func (m *APIVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIVersion) UnmarshalBinary

func (m *APIVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIVersion) Validate

func (m *APIVersion) Validate(formats strfmt.Registry) error

Validate validates this Api version

type ErrorResponse

type ErrorResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error response based on context it is used

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type Garden

type Garden struct {

	// description
	Description string `json:"description,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// title
	// Example: rose
	// Required: true
	Title *string `json:"title"`

	// owner identifier
	UserID int64 `json:"userId,omitempty"`
}

Garden garden

swagger:model Garden

func (*Garden) ContextValidate

func (m *Garden) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this garden based on context it is used

func (*Garden) MarshalBinary

func (m *Garden) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Garden) UnmarshalBinary

func (m *Garden) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Garden) Validate

func (m *Garden) Validate(formats strfmt.Registry) error

Validate validates this garden

type Gardens

type Gardens []*Garden

Gardens gardens

swagger:model Gardens

func (Gardens) ContextValidate

func (m Gardens) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gardens based on the context it is used

func (Gardens) Validate

func (m Gardens) Validate(formats strfmt.Registry) error

Validate validates this gardens

type GardensResponse

type GardensResponse struct {

	// data
	Data Gardens `json:"data,omitempty"`

	// result set
	ResultSet *ResultSet `json:"result_set,omitempty"`
}

GardensResponse gardens response

swagger:model GardensResponse

func (*GardensResponse) ContextValidate

func (m *GardensResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gardens response based on the context it is used

func (*GardensResponse) MarshalBinary

func (m *GardensResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GardensResponse) UnmarshalBinary

func (m *GardensResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GardensResponse) Validate

func (m *GardensResponse) Validate(formats strfmt.Registry) error

Validate validates this gardens response

type Info

type Info struct {

	// content
	Content string `json:"content,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

Info info

swagger:model Info

func (*Info) ContextValidate

func (m *Info) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this info based on context it is used

func (*Info) MarshalBinary

func (m *Info) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Info) UnmarshalBinary

func (m *Info) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Info) Validate

func (m *Info) Validate(formats strfmt.Registry) error

Validate validates this info

type RefPlant

type RefPlant struct {

	// category
	Category int32 `json:"category,omitempty"`

	// created at
	CreatedAt timeext.Time `json:"createdAt,omitempty"`

	// creater
	Creater string `json:"creater,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// images
	// Required: true
	Images []string `json:"images"`

	// infos
	Infos []*Info `json:"infos"`

	// modified at
	ModifiedAt *timeext.Time `json:"modifiedAt,omitempty"`

	// modifier
	// Min Length: 0
	Modifier *string `json:"modifier,omitempty"`

	// short info
	ShortInfo *ShortInfo `json:"shortInfo,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`
}

RefPlant ref plant

swagger:model RefPlant

func (*RefPlant) ContextValidate

func (m *RefPlant) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ref plant based on the context it is used

func (*RefPlant) MarshalBinary

func (m *RefPlant) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RefPlant) UnmarshalBinary

func (m *RefPlant) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RefPlant) Validate

func (m *RefPlant) Validate(formats strfmt.Registry) error

Validate validates this ref plant

type Response

type Response struct {

	// message
	Message string `json:"message,omitempty"`
}

Response response

swagger:model Response

func (*Response) ContextValidate

func (m *Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this response based on context it is used

func (*Response) MarshalBinary

func (m *Response) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Response) UnmarshalBinary

func (m *Response) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Response) Validate

func (m *Response) Validate(formats strfmt.Registry) error

Validate validates this response

type ResultSet

type ResultSet struct {

	// count
	Count int64 `json:"count,omitempty"`

	// limit
	Limit int64 `json:"limit,omitempty"`

	// offset
	Offset int64 `json:"offset,omitempty"`

	// total
	Total int64 `json:"total,omitempty"`
}

ResultSet result set

swagger:model ResultSet

func (*ResultSet) ContextValidate

func (m *ResultSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this result set based on context it is used

func (*ResultSet) MarshalBinary

func (m *ResultSet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResultSet) UnmarshalBinary

func (m *ResultSet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResultSet) Validate

func (m *ResultSet) Validate(formats strfmt.Registry) error

Validate validates this result set

type ShortInfo

type ShortInfo struct {

	// classifiers
	Classifiers string `json:"classifiers,omitempty"`

	// flowering time
	FloweringTime string `json:"flowering_Time,omitempty"`

	// hight
	Hight string `json:"hight,omitempty"`

	// kind
	Kind string `json:"kind,omitempty"`

	// recommend position
	RecommendPosition string `json:"recommend_Position,omitempty"`

	// regard to light
	RegardToLight string `json:"regard_To_Light,omitempty"`

	// regard to moisture
	RegardToMoisture string `json:"regard_To_Moisture,omitempty"`
}

ShortInfo short info

swagger:model ShortInfo

func (*ShortInfo) ContextValidate

func (m *ShortInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this short info based on context it is used

func (*ShortInfo) MarshalBinary

func (m *ShortInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ShortInfo) UnmarshalBinary

func (m *ShortInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ShortInfo) Validate

func (m *ShortInfo) Validate(formats strfmt.Registry) error

Validate validates this short info

type User

type User struct {

	// email
	Email string `json:"email,omitempty"`

	// first name
	FirstName string `json:"firstName,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// last name
	LastName string `json:"lastName,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// phone
	Phone string `json:"phone,omitempty"`

	// user role
	// Maximum: 2
	// Minimum: 1
	UserRole int32 `json:"userRole,omitempty"`

	// User Status
	UserStatus int32 `json:"userStatus,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

User user

swagger:model User

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user based on context it is used

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type UserLoginPassword

type UserLoginPassword struct {

	// login
	// Required: true
	Login *string `json:"login"`

	// password
	// Required: true
	Password *string `json:"password"`
}

UserLoginPassword user login password

swagger:model UserLoginPassword

func (*UserLoginPassword) ContextValidate

func (m *UserLoginPassword) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user login password based on context it is used

func (*UserLoginPassword) MarshalBinary

func (m *UserLoginPassword) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserLoginPassword) UnmarshalBinary

func (m *UserLoginPassword) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserLoginPassword) Validate

func (m *UserLoginPassword) Validate(formats strfmt.Registry) error

Validate validates this user login password

type UserPlant

type UserPlant struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// garden Id
	// Minimum: 0
	GardenID *int64 `json:"gardenId,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// last watering
	// Format: date-time
	LastWatering strfmt.DateTime `json:"lastWatering,omitempty"`

	// modified at
	// Min Length: 0
	// Format: date-time
	ModifiedAt strfmt.DateTime `json:"modifiedAt,omitempty"`

	// next watering
	// Format: date-time
	NextWatering strfmt.DateTime `json:"nextWatering,omitempty"`

	// photo urls
	// Required: true
	PhotoUrls []string `json:"photoUrls"`

	// plant's identifier from reference
	// Minimum: 0
	PlantReferenceID *int64 `json:"plantReferenceId,omitempty"`

	// When the plant was planted
	// Format: date
	PlantingDate strfmt.Date `json:"plantingDate,omitempty"`

	// title
	// Example: my super rose
	// Required: true
	Title *string `json:"title"`

	// user Id
	UserID int64 `json:"userId,omitempty"`

	// How often you water them
	WateringInterval string `json:"wateringInterval,omitempty"`
}

UserPlant user plant

swagger:model UserPlant

func (*UserPlant) ContextValidate

func (m *UserPlant) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user plant based on context it is used

func (*UserPlant) MarshalBinary

func (m *UserPlant) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserPlant) UnmarshalBinary

func (m *UserPlant) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserPlant) Validate

func (m *UserPlant) Validate(formats strfmt.Registry) error

Validate validates this user plant

type UserPlants

type UserPlants []*UserPlant

UserPlants user plants

swagger:model UserPlants

func (UserPlants) ContextValidate

func (m UserPlants) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user plants based on the context it is used

func (UserPlants) Validate

func (m UserPlants) Validate(formats strfmt.Registry) error

Validate validates this user plants

type UserPlantsResponse

type UserPlantsResponse struct {

	// data
	Data UserPlants `json:"data,omitempty"`

	// result set
	ResultSet *ResultSet `json:"result_set,omitempty"`
}

UserPlantsResponse user plants response

swagger:model UserPlantsResponse

func (*UserPlantsResponse) ContextValidate

func (m *UserPlantsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user plants response based on the context it is used

func (*UserPlantsResponse) MarshalBinary

func (m *UserPlantsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserPlantsResponse) UnmarshalBinary

func (m *UserPlantsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserPlantsResponse) Validate

func (m *UserPlantsResponse) Validate(formats strfmt.Registry) error

Validate validates this user plants response

Jump to

Keyboard shortcuts

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