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 ¶
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
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 ¶
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
type ErrorResponse ¶
type ErrorResponse struct { // message Message string `json:"message,omitempty"` }
ErrorResponse error response
swagger:model ErrorResponse
func (*ErrorResponse) ContextValidate ¶
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
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 ¶
ContextValidate validates this garden based on context it is used
func (*Garden) MarshalBinary ¶
MarshalBinary interface implementation
func (*Garden) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Gardens ¶
type Gardens []*Garden
Gardens gardens
swagger:model Gardens
func (Gardens) ContextValidate ¶
ContextValidate validate this gardens based on the context it is used
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 ¶
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
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 ¶
ContextValidate validates this info based on context it is used
func (*Info) MarshalBinary ¶
MarshalBinary interface implementation
func (*Info) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RefPlant ¶
type RefPlant struct { // category Category int32 `json:"category,omitempty"` // created at // Format: date-time CreatedAt strfmt.DateTime `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 // Min Length: 0 // Format: date-time ModifiedAt strfmt.DateTime `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 ¶
ContextValidate validate this ref plant based on the context it is used
func (*RefPlant) MarshalBinary ¶
MarshalBinary interface implementation
func (*RefPlant) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RefPlants ¶
type RefPlants []*RefPlant
RefPlants ref plants
swagger:model RefPlants
func (RefPlants) ContextValidate ¶
ContextValidate validate this ref plants based on the context it is used
type RefPlantsResponse ¶
type RefPlantsResponse struct { // data Data RefPlants `json:"data,omitempty"` // result set ResultSet *ResultSet `json:"result_set,omitempty"` }
RefPlantsResponse ref plants response
swagger:model RefPlantsResponse
func (*RefPlantsResponse) ContextValidate ¶
ContextValidate validate this ref plants response based on the context it is used
func (*RefPlantsResponse) MarshalBinary ¶
func (m *RefPlantsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RefPlantsResponse) UnmarshalBinary ¶
func (m *RefPlantsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Response ¶
type Response struct { // message Message string `json:"message,omitempty"` }
Response response
swagger:model Response
func (*Response) ContextValidate ¶
ContextValidate validates this response based on context it is used
func (*Response) MarshalBinary ¶
MarshalBinary interface implementation
func (*Response) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this result set based on context it is used
func (*ResultSet) MarshalBinary ¶
MarshalBinary interface implementation
func (*ResultSet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this short info based on context it is used
func (*ShortInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*ShortInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this user based on context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
ContextValidate validates this user plant based on context it is used
func (*UserPlant) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserPlant) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserPlants ¶
type UserPlants []*UserPlant
UserPlants user plants
swagger:model UserPlants
func (UserPlants) ContextValidate ¶
ContextValidate validate this user plants based on the context it is used
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 ¶
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