models

package
v0.0.0-...-9f86afd Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.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       uint64 `json:"id"`
	FullName string `json:"full_name"`
}

type Book

type Book struct {
	Id          uint64     `json:"id"`
	Name        string     `json:"name"`
	Description string     `json:"description"`
	CreatedAt   string     `json:"created_at,omitempty"`
	Publisher   Publisher  `json:"publisher"`
	Language    Language   `json:"language"`
	Authors     []Author   `json:"authors"`
	Categories  []Category `json:"categories"`
}

type Category

type Category struct {
	Id          uint64 `json:"id"`
	Name        string `json:"name"`
	Title       string `json:"title"`
	Description string `json:"description,omitempty"`
}

type Language

type Language struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type Publisher

type Publisher struct {
	Id          uint64 `json:"id"`
	Name        string `json:"name"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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