htsso.go 631 B

1234567891011121314151617181920212223242526272829
  1. package routers
  2. import (
  3. "eta/eta_bridge/controller/haitong"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // InitXiangyu 获取象屿
  7. func InitHTSSO(r *gin.RouterGroup) {
  8. initCRMSSO(r)
  9. //group.GET("user/sync", control.SyncUser)
  10. //group.GET("user/pull", control.PullUser)
  11. //
  12. //// 需要内部鉴权的接口
  13. //initAuthXiangyu(r)
  14. //
  15. //// 指标接口
  16. //initIndexXiangyu(r)
  17. //
  18. //// crm数据接口
  19. //initCrmXiangyu(r)
  20. }
  21. func initCRMSSO(r *gin.RouterGroup) {
  22. controller := new(haitong.SSOLoginController)
  23. //group := r.Group("ht/").Use(middleware.BaseAuthCheck())
  24. group := r.Group("ht/")
  25. group.POST("login", controller.SSOLogin)
  26. }