domain

package
v0.0.0-...-899cb79 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT 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 {
	Name string `json:"name"`
	Age  int64  `json:"age"`
	City string `json:"city"`
}

type AuthorRepository

type AuthorRepository interface {
	SaveAuthor(author Author) error
}

type Book

type Book struct {
	Title    string `json:"title"`
	Author   string `json:"author"`
	Price    int64  `json:"price"`
	Quantity int64  `json:"quantity"`
}

type BookRepository

type BookRepository interface {
	SaveBook(book Book) error
	FindAll() ([]*Book, error)
}

Jump to

Keyboard shortcuts

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