Documentation ¶
Index ¶
- type Handler
- type Store
- func (s *Store) CreateReview(review types.Review) error
- func (s *Store) DeleteReview(id int) error
- func (s *Store) GetAverageRating(userId int, reviewType int) (float64, error)
- func (s *Store) GetReceivedReviewsByUserID(uid int) ([]types.ReceivedReviewReturnPayload, error)
- func (s *Store) GetReviewByID(id int) (*types.Review, error)
- func (s *Store) GetSentReviewsByUserID(uid int) ([]types.SentReviewReturnPayload, error)
- func (s *Store) IsReviewDuplicate(reviewerId, revieweeId, orderId int) (bool, error)
- func (s *Store) ModifyReview(id int, content string, rating float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(reviewStore types.ReviewStore, orderStore types.OrderStore, listingStore types.ListingStore, userStore types.UserStore) *Handler
func (*Handler) RegisterRoutes ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteReview ¶
func (*Store) GetAverageRating ¶
func (*Store) GetReceivedReviewsByUserID ¶
func (s *Store) GetReceivedReviewsByUserID(uid int) ([]types.ReceivedReviewReturnPayload, error)
func (*Store) GetSentReviewsByUserID ¶
func (s *Store) GetSentReviewsByUserID(uid int) ([]types.SentReviewReturnPayload, error)
func (*Store) IsReviewDuplicate ¶
Click to show internal directories.
Click to hide internal directories.