account.go 841 B

1234567891011121314151617181920212223242526272829
  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. accountR.POST("HandleASignCompleted", account.HandleASignCompleted)
  11. accountR.GET("HandleWillFace", account.HandleWillFace)
  12. }
  13. }
  14. func InitAccountPrivateRouter(r *gin.RouterGroup) {
  15. accountR := r.Group("Account").Use()
  16. {
  17. accountR.GET("TokenCheck", account.TokenCheck)
  18. accountR.GET("Loginout", account.Loginout)
  19. accountR.GET("QueryUserESignRecord", account.QueryUserESignRecord)
  20. accountR.POST("AddUser", account.AddUser)
  21. accountR.POST("CreateContractAndAddSigner", account.CreateContractAndAddSigner)
  22. accountR.POST("SignCompleted", account.SignCompleted)
  23. accountR.POST("WillFace", account.WillFace)
  24. }
  25. }