defaultreview

package
v0.0.0-...-244d273 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultReviewModel

type DefaultReviewModel struct {
	PK          string `json:"pk"`
	SK          string `json:"sk"`
	Rate        uint8  `json:"rate"`
	Review      string `json:"review"`
	Order       int    `json:"order"`
	Description string `json:"description"`
}

func NewDefaultReviewModel

func NewDefaultReviewModel(item map[string]*dynamodb.AttributeValue) *DefaultReviewModel

func NewDefaultReviewModelList

func NewDefaultReviewModelList(items []map[string]*dynamodb.AttributeValue) []*DefaultReviewModel

func (*DefaultReviewModel) LoadKeys

func (d *DefaultReviewModel) LoadKeys()

type DefaultReviewRepository

type DefaultReviewRepository interface {
	Add(review *DefaultReviewModel) error
	Delete(key models.HashRange) error
	GetDefaultReviews(rate uint8) ([]*DefaultReviewModel, error)
}

func NewRepo

func NewRepo() DefaultReviewRepository

Directories

Path Synopsis
handlers
add

Jump to

Keyboard shortcuts

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