resources

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

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookResource

type BookResource struct {
	DB          *gorm.DB
	FileStorage utils.MinioFileStorage
}

func (*BookResource) Create

func (br *BookResource) Create(c *gin.Context)

func (*BookResource) DeleteOne

func (br *BookResource) DeleteOne(c *gin.Context)

func (*BookResource) Download

func (br *BookResource) Download(c *gin.Context)
func (br *BookResource) DownloadLink(c *gin.Context)

func (*BookResource) GetList

func (br *BookResource) GetList(c *gin.Context)

func (*BookResource) GetOne

func (br *BookResource) GetOne(c *gin.Context)

type BookStatusResource

type BookStatusResource struct {
	DB *gorm.DB
}

func (BookStatusResource) GetAll

func (bsr BookStatusResource) GetAll(c *gin.Context)

type CreateBookInput

type CreateBookInput struct {
	Name string `json:"name" biding:"required"`
	Mask string `json:"mask" biding:"required"`
}

type GetBookLinkQuery

type GetBookLinkQuery struct {
	Expiry int `form:"expiry" biding:"numeric,max=300"`
}

type GetBookQuery

type GetBookQuery struct {
	Name     string `form:"name"`
	Page     int    `form:"page"`
	PageSize int    `form:"page_size"`
}

type PaginatedResponse

type PaginatedResponse struct {
	Data       interface{} `json:"data"`
	Pagination pagination  `json:"pagination"`
}

Jump to

Keyboard shortcuts

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