Documentation ¶
Index ¶
- func DeleteComment(ctx *gin.Context)
- func GetComment(ctx *gin.Context, comment *models.Comment)
- func GetCommentRating(ctx *gin.Context, model *models.CommentRating)
- func GetSubjectGrade(ctx *gin.Context, grade *models.Record)
- func GetSubjectReview(ctx *gin.Context, review *models.SubjectReview)
- func GetSubjectVerification(ctx *gin.Context, verification bool)
- func PublishComment(ctx *gin.Context, model *models.Comment)
- func RateComment(ctx *gin.Context)
- func ReportComment(ctx *gin.Context)
- func UpdateSubjectReview(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComment ¶
GetComment takes the model comment and presents its response view object.
func GetCommentRating ¶
func GetCommentRating(ctx *gin.Context, model *models.CommentRating)
GetCommentRating takes the model comment rating and presents its response view object.
func GetSubjectGrade ¶
GetSubjectGrade takes the grade model and presents its response view object
func GetSubjectReview ¶
func GetSubjectReview(ctx *gin.Context, review *models.SubjectReview)
GetSubjectReview takes the review model and presents its response view object
func GetSubjectVerification ¶ added in v1.6.0
GetSubjectVerification takes the verification bool and presents it as a response view object
A true verification means that the user has completed the subject
func PublishComment ¶
PublishComment takes the model comment and presents its response view object
func UpdateSubjectReview ¶
UpdateSubjectReview is a dummy view method
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.