applyCap.go 440 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "project_management/app/controller"
  5. )
  6. func ApplyCapRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.POST("/apply/addcap", controller.ApplyAddCap)
  9. group.PUT("/apply/cap", controller.UpDateApplyCap)
  10. group.PUT("/apply/sort", controller.UpDateApplyCapSort)
  11. group.DELETE("/apply/cap", controller.DeleteApplyCap)
  12. group.GET("/apply/cap/detail", controller.GetCapDetailByCapID)
  13. }