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
Click to show internal directories.
Click to hide internal directories.