sso_service.go 304 B

123456789101112131415161718
  1. package services
  2. import (
  3. sso2 "eta/eta_mini_crm_ht/utils/rpc/sso"
  4. )
  5. const (
  6. crmSource = "weapp"
  7. )
  8. func SSOLogin(code string) (resp sso2.UserResp, err error) {
  9. req := &sso2.LoginRequest{
  10. Code: code,
  11. Source: crmSource,
  12. }
  13. ssoService := sso2.GetSSOService()
  14. return ssoService.SSOLogin(req)
  15. }