account.go 372 B

123456789101112131415161718192021
  1. package router
  2. import (
  3. "mtp20access/api/v1/account"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func InitAccountPublicRouter(r *gin.RouterGroup) {
  7. accountR := r.Group("Account").Use()
  8. {
  9. accountR.POST("Login", account.Login)
  10. }
  11. }
  12. func InitAccountPrivateRouter(r *gin.RouterGroup) {
  13. accountR := r.Group("Account").Use()
  14. {
  15. accountR.GET("TokenCheck", account.TokenCheck)
  16. }
  17. }