openapi

package
v0.0.0-...-0964d17 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cultivation

type Cultivation struct {
	ID                  int        `json:"id"`
	CreatedAt           time.Time  `json:"created_at"`
	UpdatedAt           time.Time  `json:"updated_at"`
	DeletedAt           *time.Time `json:"deleted_at"`
	Plant               Plant      `json:"plant"`
	NickName            string     `json:"nick_name"`
	StartCultivatingAt  *time.Time `json:"start_cultivating_at"`
	FinishCultivatingAt *time.Time `json:"finish_cultivating_at"`
	Record              record     `json:"record"`
}

type Example

type Example struct {
	ID        int        `json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at"`
	Name      string     `json:"name"`
}

type Harvesting

type Harvesting struct {
	ID        int        `json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at"`
}

type Plant

type Plant struct {
	ID           int           `json:"id"`
	CreatedAt    time.Time     `json:"created_at"`
	UpdatedAt    time.Time     `json:"updated_at"`
	DeletedAt    *time.Time    `json:"deleted_at"`
	Name         string        `json:"name"`
	NickName     string        `json:"nick_name"`
	Price        int           `json:"price"`
	Period       int           `json:"period"`
	Difficulty   int           `json:"difficulty"`
	Description  string        `json:"description"`
	KitName      string        `json:"kit_name"`
	Season       Season        `json:"season"`
	Temperatures []Temperature `json:"temperatures"`
	Waters       []Water       `json:"waters"`
}

type Season

type Season struct {
	From int `json:"from"`
	To   int `json:"to"`
}

type Temperature

type Temperature struct {
	ID    int     `json:"id"`
	Name  string  `json:"name"`
	Value float32 `json:"value"`
}

type User

type User struct {
	ID           int           `json:"id"`
	CreatedAt    time.Time     `json:"created_at"`
	UpdatedAt    time.Time     `json:"updated_at"`
	DeletedAt    *time.Time    `json:"deleted_at"`
	Uid          string        `json:"uid"`
	Name         string        `json:"name"`
	Cultivations []Cultivation `json:"cultivations"`
}

type Water

type Water struct {
	Id    int     `json:"id"`
	Name  string  `json:"name"`
	Value float32 `json:"value"`
}

type Watering

type Watering struct {
	ID        int        `json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at"`
}

Jump to

Keyboard shortcuts

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