Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteComment ¶
Types ¶
type AddCommentData ¶
type Comment ¶
type Comment struct { Id primitive.ObjectID `json:"id" bson:"_id"` UserId primitive.ObjectID `json:"userId" bson:"userId"` CourseId primitive.ObjectID `json:"courseId" bson:"courseId"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` Text string `json:"text" bson:"text"` Rating float64 `json:"rating" bson:"rating"` }
func AddComment ¶
func AddComment(data *AddCommentData) (Comment, error)
func GetComment ¶
func GetComments ¶
func GetComments(query *CommentsQuery) ([]Comment, error)
Click to show internal directories.
Click to hide internal directories.