review

package
v0.0.0-...-e4a802b Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPutRatingInputInvalid = errors.New("the ReviewInput is invalid. The struct and your fields cann't be NIL. Check all fields or see more about in documentation")
)

Functions

func PutReview

func PutReview(ctx context.Context, reviewInput *ReviewInput, db PutReviewRepository) error

Types

type PutReviewRepository

type PutReviewRepository interface {
	PutNewReview(ctx context.Context, itemId, comment, curstomerId, orderId string) error
}

type ReviewInput

type ReviewInput struct {
	ItemId     string `json:"item_id"`
	Comment    string `json:"comment"`
	CustomerId string `json:"customer_id"`
	OrderId    string `json:"order_id"`
}

Jump to

Keyboard shortcuts

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