purchase.go 302 B

1234567891011121314
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/purchase"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitPurchase(r *gin.Engine) {
  8. rGroup := r.Group("api/purchase").Use(middleware.Token())
  9. rGroup.GET("/list", purchase.List)
  10. rGroup.GET("/detail", purchase.Detail)
  11. }