appUser.go 700 B

123456789101112131415161718192021
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "project_management/app/controller"
  5. )
  6. func AppUserRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.POST("/regist", controller.RegistApply)
  9. group.POST("/appuser", controller.AddAppUser)
  10. group.POST("/appuserlist", controller.GetAppUserList)
  11. group.PUT("/appuser", controller.UpdateAppUser)
  12. group.DELETE("/appuser", controller.DeleteAppUserByID)
  13. group.POST("/accountlogin", controller.LoginAppUser)
  14. group.POST("/codelogin", controller.LoginAppUserByCode)
  15. // 根据appid获取应用详情
  16. group.GET("/apply", controller.GetApplyByAPPID)
  17. // 根据应用名称获取应用详情
  18. group.GET("/apply/cap", controller.GetApplyCapList)
  19. }