17 lines
328 B
Go
17 lines
328 B
Go
package handlers
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
var Comment = &CommentApiHandler{}
|
|
|
|
type CommentApiHandler struct {
|
|
}
|
|
|
|
func (h *CommentApiHandler) AddComment(ctx *gin.Context) {
|
|
// Book.getBook()
|
|
// Book.GetBook(id) -> BookInstance
|
|
// controllers.Book.GetBook(ctx, controllers.NewGetBookRequest(ctx.Param("bn")))
|
|
}
|