user.go 251 B

123456789101112
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "project_management/app/controller"
  5. )
  6. func UserRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.POST("/user/sendcode", controller.SendCode)
  9. group.POST("/user/login", controller.Login)
  10. }