books

package
v0.0.0-...-28f78e3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	gorm.Model
	Name   string `json:"name"`
	Detail string `json:"detail"`
	Price  uint64 `json:"price"`
	Img    []byte `json:"img"`
}

func (*Book) Delete

func (p *Book) Delete() *errors.ApiErr

Delete - book

func (*Book) Get

func (p *Book) Get() *errors.ApiErr

Get - book

func (*Book) PartialUpdate

func (p *Book) PartialUpdate() *errors.ApiErr

PartialUpdate - book

func (*Book) Save

func (p *Book) Save() *errors.ApiErr

Save - book

func (*Book) Update

func (p *Book) Update() *errors.ApiErr

Update - book

func (*Book) Validate

func (b *Book) Validate() *errors.ApiErr

Jump to

Keyboard shortcuts

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