model

package
v0.0.0-...-436daa5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID    string  `json:"id"`
	Name  string  `json:"name"`
	Books []*Book `json:"books,omitempty"`
}

type AuthorQueryInput

type AuthorQueryInput struct {
	ID string `json:"id"`
}

type AuthorsQueryInput

type AuthorsQueryInput struct {
	IDs []string `json:"IDs"`
}

type Book

type Book struct {
	ID            string  `json:"id"`
	Title         string  `json:"title"`
	Author        *Author `json:"author"`
	PublishedDate string  `json:"publishedDate"`
}

type BookQueryInput

type BookQueryInput struct {
	ID string `json:"id"`
}

type BooksQueryInput

type BooksQueryInput struct {
	IDs []string `json:"IDs"`
}

type CreateAuthorInput

type CreateAuthorInput struct {
	Name string `json:"name"`
}

type CreateBookInput

type CreateBookInput struct {
	Title         string `json:"title"`
	AuthorID      string `json:"authorId"`
	PublishedDate string `json:"publishedDate"`
}

type CreateOrderInput

type CreateOrderInput struct {
	OrderLines []*OrderLineInput `json:"orderLines"`
	TotalPrice int               `json:"totalPrice"`
	OrderDate  string            `json:"orderDate"`
}

type DeleteAuthorInput

type DeleteAuthorInput struct {
	ID string `json:"id"`
}

type DeleteBookInput

type DeleteBookInput struct {
	ID string `json:"id"`
}

type DeleteOrderInput

type DeleteOrderInput struct {
	ID string `json:"id"`
}

type Mutation

type Mutation struct {
}

type Order

type Order struct {
	ID         string       `json:"id"`
	OrderLines []*OrderLine `json:"orderLines"`
	Quantity   int          `json:"quantity"`
	TotalPrice int          `json:"totalPrice"`
	OrderDate  string       `json:"orderDate"`
}

type OrderLine

type OrderLine struct {
	BookID   string `json:"bookID"`
	Quantity int    `json:"quantity"`
}

type OrderLineInput

type OrderLineInput struct {
	BookID   string `json:"bookID"`
	Quantity int    `json:"quantity"`
}

type OrderQueryInput

type OrderQueryInput struct {
	ID string `json:"id"`
}

type OrdersQueryInput

type OrdersQueryInput struct {
	IDs []string `json:"IDs"`
}

type Query

type Query struct {
}

type UpdateAuthorInput

type UpdateAuthorInput struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type UpdateBookInput

type UpdateBookInput struct {
	ID            string `json:"id"`
	Title         string `json:"title"`
	AuthorID      string `json:"authorId"`
	PublishedDate string `json:"publishedDate"`
}

type UpdateOrderInput

type UpdateOrderInput struct {
	ID         string            `json:"id"`
	OrderLines []*OrderLineInput `json:"orderLines,omitempty"`
	OrderDate  string            `json:"orderDate"`
	TotalPrice int               `json:"totalPrice"`
}

Jump to

Keyboard shortcuts

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