like.go 268 B

123456789101112
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/like"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitLike(r *gin.Engine) {
  8. rGroup := r.Group("api/like").Use(middleware.Token())
  9. rGroup.POST("/set", like.SetLike) //点赞设置
  10. }