package dto

type AddReviewRequest struct {
	AstrologerID uint `json:"astrologerId"`

	// The session this review is about, sent by the rating screen the app
	// opens when a consultation ends. Optional, so the existing
	// review-an-astrologer flow and astromall reviews are unaffected.
	//
	// Without it the admin approving a payout for one session is shown the
	// customer's latest review of that astrologer, which may be months old
	// and about a different session.
	ConsultationID *uint `json:"consultationId,omitempty"`

	AstromallProductID *uint   `json:"astromallProductId,omitempty"`
	Rating             float64 `json:"rating" binding:"required"`
	Review             string  `json:"review" binding:"required"`
	IsPublic           bool    `json:"isPublic"`
}
