account.go 530 B

123456789101112131415161718192021222324
  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. accountR.GET("Loginout", account.Loginout)
  17. accountR.GET("QueryUserESignRecord", account.QueryUserESignRecord)
  18. accountR.POST("AddUser", account.AddUser)
  19. }
  20. }