knowledge.go 334 B

1234567891011121314
  1. package routers
  2. import (
  3. "eta_gn/eta_bridge/controller/knowledge"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func InitKnowledgeRouter(r *gin.RouterGroup) {
  7. control := new(knowledge.KnowledgeController)
  8. group := r.Group("knowledge/")
  9. group.POST("report/save", control.ReportSave)
  10. group.POST("viewpoint/acquire", control.ViewPointAcquire)
  11. }